Skip to content

Commit 98882f5

Browse files
authored
Merge pull request #17 from cisco-sbg/CLAM-2696-ole2-decrypt-overread-1.4
Fix bounds check in OLE2 decryption (1.4.2)
2 parents 0542087 + 1de7092 commit 98882f5

7 files changed

+24
-8
lines changed

CMakeLists.txt

+1-1
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.4.1"
25+
VERSION "1.4.2"
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})

Cargo.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Jenkinsfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ properties(
1010
parameters(
1111
[
1212
string(name: 'VERSION',
13-
defaultValue: '1.4.1',
13+
defaultValue: '1.4.2',
1414
description: 'ClamAV version string'),
1515
string(name: 'FRAMEWORK_BRANCH',
1616
defaultValue: '1.4',

NEWS.md

+15
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,21 @@
33
Note: This file refers to the official packages. Things described here may
44
differ slightly from third-party binary packages.
55

6+
## 1.4.2
7+
8+
ClamAV 1.4.2 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+
621
## 1.4.1
722

823
ClamAV 1.4.1 is a critical patch release with the following fixes:

libclamav/bytecode_api.h

+1
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ enum FunctionalityLevels {
194194

195195
FUNC_LEVEL_1_4 = 210, /**< LibClamAV release 1.4.0 */
196196
FUNC_LEVEL_1_4_1 = 211, /**< LibClamAV release 1.4.1 */
197+
FUNC_LEVEL_1_4_2 = 212, /**< LibClamAV release 1.4.2 */
197198
};
198199

199200
/**

libclamav/ole2_extract.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1836,7 +1836,7 @@ static cl_error_t handler_otf_encrypted(ole2_header_t *hdr, property_t *prop, co
18361836
}
18371837
bytesRead += blockSize;
18381838

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

libclamav/others.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
* in re-enabling affected modules.
7070
*/
7171

72-
#define CL_FLEVEL 211
72+
#define CL_FLEVEL 212
7373
#define CL_FLEVEL_DCONF CL_FLEVEL
7474
#define CL_FLEVEL_SIGTOOL CL_FLEVEL
7575

0 commit comments

Comments
 (0)