Skip to content

Commit 9a2c642

Browse files
authored
Merge pull request #18 from cisco-sbg/CLAM-2696-ole2-decrypt-overread-1.0
Fix bounds check in OLE2 decryption (1.0.8)
2 parents 8b02662 + 1ea9993 commit 9a2c642

File tree

7 files changed

+26
-6
lines changed

7 files changed

+26
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ string(TIMESTAMP TODAY "%Y%m%d")
2222
set(VERSION_SUFFIX "")
2323

2424
project( ClamAV
25-
VERSION "1.0.7"
25+
VERSION "1.0.8"
2626
DESCRIPTION "ClamAV open source email, web, and end-point anti-virus toolkit." )
2727

2828
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ properties(
1010
parameters(
1111
[
1212
string(name: 'VERSION',
13-
defaultValue: '1.0.7',
13+
defaultValue: '1.0.8',
1414
description: 'ClamAV version string'),
1515
string(name: 'FRAMEWORK_BRANCH',
1616
defaultValue: '1.0',

NEWS.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,25 @@
33
Note: This file refers to the official packages. Things described here may
44
differ slightly from third-party binary packages.
55

6+
## 1.0.8
7+
8+
ClamAV 1.0.8 is a patch release with the following fixes:
9+
10+
- [CVE-2025-20128](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-20128):
11+
Fixed a possible buffer overflow read bug in the OLE2 file parser that could
12+
cause a denial-of-service (DoS) condition.
13+
14+
This issue was introduced in version 1.0.0 and affects all currently
15+
supported versions. It will be fixed in:
16+
- 1.4.2
17+
- 1.0.8
18+
19+
Thank you to OSS-Fuzz for identifying this issue.
20+
21+
- ClamOnAcc: Fixed an infinite loop when a watched directory does not exist.
22+
This is a backport of a fix from ClamAV 1.3.0.
23+
- [GitHub pull request](https://github.com/Cisco-Talos/clamav/pull/1426)
24+
625
## 1.0.7
726

827
ClamAV 1.0.7 is a patch release with the following fixes:

libclamav/bytecode_api.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ enum FunctionalityLevels {
171171
FUNC_LEVEL_1_0_5 = 165, /**< LibClamAV release 1.0.5 */
172172
FUNC_LEVEL_1_0_6 = 166, /**< LibClamAV release 1.0.6 */
173173
FUNC_LEVEL_1_0_7 = 167, /**< LibClamAV release 1.0.7 */
174+
FUNC_LEVEL_1_0_8 = 168, /**< LibClamAV release 1.0.8 */
174175
};
175176

176177
/**

libclamav/ole2_extract.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1835,7 +1835,7 @@ static cl_error_t handler_otf_encrypted(ole2_header_t *hdr, property_t *prop, co
18351835
}
18361836
bytesRead += blockSize;
18371837

1838-
for (; writeIdx <= (leftover + bytesToWrite) - 16; writeIdx += 16, decryptDstIdx += 16) {
1838+
for (; writeIdx + 16 <= leftover + bytesToWrite; writeIdx += 16, decryptDstIdx += 16) {
18391839
rijndaelDecrypt(rk, nrounds, &(buff[writeIdx]), &(decryptDst[decryptDstIdx]));
18401840
}
18411841

libclamav/others.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
* in re-enabling affected modules.
7474
*/
7575

76-
#define CL_FLEVEL 167
76+
#define CL_FLEVEL 168
7777
#define CL_FLEVEL_DCONF CL_FLEVEL
7878
#define CL_FLEVEL_SIGTOOL CL_FLEVEL
7979

win32/res/common.rc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
#define REPO_VERSION VERSION
77
#endif
88

9-
#define RES_VER_Q 1,0,7,0
10-
#define RES_VER_S "ClamAV 1.0.7"
9+
#define RES_VER_Q 1,0,8,0
10+
#define RES_VER_S "ClamAV 1.0.8"
1111

1212
VS_VERSION_INFO VERSIONINFO
1313
FILEVERSION RES_VER_Q

0 commit comments

Comments
 (0)