CVE-2026-39856 osslsigncode has an Out-of-Bounds Read via Unvalidated Section Bounds in PE Page Hash Calculation
- 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 out-of-bounds read vulnerability exists in osslsigncode version 2.12 and earlier in the PE page-hash computation code (pe_page_hash_calc()). When processing PE sections for page hashing, the function uses PointerToRawData and SizeOfRawData values from section headers without validating that the referenced region lies within the mapped file. An attacker can craft a PE file with section headers that point beyond the end of the file. When osslsigncode computes page hashes for such a file, it may attempt to hash data from an invalid memory region, causing an out-of-bounds read and potentially crashing 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
| Product | Affected versions | Fixed 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
- MSRC Security Update Guide vendor-advisory
- Release Notes vendor-advisory
- https://github.com/mtrojnar/osslsigncode/security/advisories/GHSA-rjrx-chvw-8jw8 patch vendor-advisory
- https://github.com/mtrojnar/osslsigncode/commit/92f8761b4770f76a36731969b5040ce3b9a09570 patch
- https://github.com/mtrojnar/osslsigncode/releases/tag/2.13 product release-notes
- Debian Security Tracker CVE-2026-39856 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org