Skip to content

CVE-2026-39855 osslsigncode has an Integer Underflow in PE Page Hash Calculation Can Cause Out-of-Bounds Read

MediumCVSS 5.5 EPSS 0.15%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

Description

osslsigncode is a tool that implements Authenticode signing and timestamping. Prior to 2.13, an integer underflow vulnerability exists in osslsigncode version 2.12 and earlier in the PE page-hash computation code (pe_page_hash_calc()). When page hash processing is performed on a PE file, the function subtracts hdrsize from pagesize without first validating that pagesize >= hdrsize. If a malicious PE file sets SizeOfHeaders (hdrsize) larger than SectionAlignment (pagesize), the subtraction underflows and produces a very large unsigned length. The code allocates a zero-filled buffer of pagesize bytes and then attempts to hash pagesize - hdrsize bytes from that buffer. After the underflow, this results in an out-of-bounds read from the heap and can crash the process. The vulnerability can be triggered while signing a malicious PE file with page hashing enabled (-ph), or while verifying a malicious signed PE file that already contains page hashes. Verification of an already signed file does not require the verifier to pass -ph. This vulnerability is fixed in 2.13.

Upgrade path

8 packages: 2 fixed, 5 with no fix yet.

PackageAffectedFixed inStatus
cbl-mariner osslsigncode(CBL-Mariner 2.0) All versions No fix listed No fix yet
debian/osslsigncode(Debian 12) = 2.5-4; = 2.8-1; = 2.8-2; = 2.9-1 +9 more No fix listed No fix yet
debian/osslsigncode(Debian 13) = 2.9-2; = 2.10-1; = 2.11-1; = 2.12-1 +4 more No fix listed No fix yet
ubuntu/osslsigncode(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/osslsigncode(Ubuntu 24.04) All versions No fix listed No fix yet
debian/osslsigncode(Debian 14) < 2.13-1; = 2.9-2; = 2.10-1; = 2.11-1 +1 more 2.13-1 Fixed
osslsigncode project osslsigncode < 2.13 2.13 Fixed
mtrojnar osslsigncode = < 2.13 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
cbl-mariner osslsigncode(CBL-Mariner:2.0) All versions No fix listed
mtrojnar osslsigncode = < 2.13 No fix listed
debian/osslsigncode(Debian:12) All versions No fix listed
debian/osslsigncode(Debian:12) = 2.10-1 No fix listed
debian/osslsigncode(Debian:12) = 2.11-1 No fix listed
debian/osslsigncode(Debian:12) = 2.12-1 No fix listed
debian/osslsigncode(Debian:12) = 2.13-1 No fix listed
debian/osslsigncode(Debian:12) = 2.13-2 No fix listed
debian/osslsigncode(Debian:12) = 2.14-1 No fix listed
debian/osslsigncode(Debian:12) = 2.5-4 No fix listed
debian/osslsigncode(Debian:12) = 2.8-1 No fix listed
debian/osslsigncode(Debian:12) = 2.8-2 No fix listed
debian/osslsigncode(Debian:12) = 2.9-1 No fix listed
debian/osslsigncode(Debian:12) = 2.9-1~bpo12+1 No fix listed
debian/osslsigncode(Debian:12) = 2.9-2 No fix listed
debian/osslsigncode(Debian:13) All versions No fix listed
debian/osslsigncode(Debian:13) = 2.10-1 No fix listed
debian/osslsigncode(Debian:13) = 2.11-1 No fix listed
debian/osslsigncode(Debian:13) = 2.12-1 No fix listed
debian/osslsigncode(Debian:13) = 2.13-1 No fix listed
debian/osslsigncode(Debian:13) = 2.13-2 No fix listed
debian/osslsigncode(Debian:13) = 2.14-1 No fix listed
debian/osslsigncode(Debian:13) = 2.9-2 No fix listed
debian/osslsigncode(Debian:14) < 2.13-1 2.13-1
debian/osslsigncode(Debian:14) = 2.10-1 No fix listed
Show 6 more
ProductAffected versionsFixed in
debian/osslsigncode(Debian:14) = 2.11-1 No fix listed
debian/osslsigncode(Debian:14) = 2.12-1 No fix listed
debian/osslsigncode(Debian:14) = 2.9-2 No fix listed
ubuntu/osslsigncode(Ubuntu:22.04) All versions No fix listed
ubuntu/osslsigncode(Ubuntu:24.04) All versions No fix listed
osslsigncode project osslsigncode < 2.13 2.13

References