Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-111139 Overview
CVE-2026-111139 is an out-of-bounds read vulnerability in the NetSurf libnsbmp library through version 0.1.7. The flaw resides in the bmp_decode_mask() function and is triggered when an application calls bmp_decode() on a crafted ICO file. When the inner bitmap width is not a multiple of 8, the decoder reads one byte past the end of the image buffer, producing a heap over-read. The condition can crash any application that embeds libnsbmp for ICO parsing, including browsers and image viewers. The vulnerability is tracked as [CWE-125: Out-of-bounds Read].
Critical Impact
Processing a malicious ICO file causes a heap over-read in bmp_decode_mask() that can crash applications using libnsbmp.
Affected Products
- NetSurf libnsbmp through version 0.1.7
- Applications that link libnsbmp for ICO or BMP decoding
- The NetSurf web browser and related NetSurf project components bundling libnsbmp
Discovery Timeline
- 2026-10-15 - CVE-2026-111139 published to the National Vulnerability Database (NVD)
- 2026-10-16 - Last updated in the NVD database
Technical Details for CVE-2026-111139
Vulnerability Analysis
The libnsbmp library decodes Windows bitmap and icon formats for the NetSurf browser. ICO files embed a bitmap that includes a 1-bit AND mask used for transparency. The bmp_decode_mask() function iterates across the mask row to combine transparency bits with the decoded pixel data. The function assumes the mask row length aligns to a byte boundary, but ICO images allow arbitrary widths. When the inner bitmap width is not a multiple of 8, the loop reads one additional byte beyond the allocated image buffer. The read occurs on the heap and does not corrupt memory, but it crosses the buffer boundary and can trigger a crash depending on allocator layout and page boundaries.
Root Cause
The root cause is a boundary calculation error in bmp_decode_mask(). The decoder derives the number of mask bytes per row from the bitmap width without rounding to the next full byte for widths that are not multiples of 8. The final iteration of the mask walk dereferences one byte past the end of the buffer. See the referenced source range in the GitHub Code Snippet for libnsbmp for the affected loop.
Attack Vector
Exploitation requires a user to open or process a crafted ICO file through an application that calls bmp_decode(). The CVSS vector indicates a local attack vector with user interaction. There is no authentication requirement. Impact is limited to availability; the vulnerability does not leak sensitive memory to the attacker and does not provide code execution. Technical write-up details are available in the HackMD libnsbmp RLE Exploit notes and the VulnCheck Advisory for libnsbmp.
No verified proof-of-concept code is published for this advisory. The vulnerability mechanism is described in prose above; refer to the external references for additional technical analysis.
Detection Methods for CVE-2026-111139
Indicators of Compromise
- Repeated application crashes in processes that handle ICO or favicon content, especially the NetSurf browser or tools built on libnsbmp
- ICO files with inner bitmap widths that are not multiples of 8 arriving from untrusted sources
- AddressSanitizer or Valgrind reports flagging a heap-buffer-overflow read of one byte in bmp_decode_mask()
Detection Strategies
- Scan software inventories for binaries that statically or dynamically link libnsbmp at versions up to and including 0.1.7
- Fuzz ICO decoding paths with widths that are not byte-aligned and run under memory sanitizers to surface the over-read
- Monitor crash telemetry and core dumps for faults inside bmp_decode_mask() or adjacent image-decoding frames
Monitoring Recommendations
- Collect application crash reports from endpoints and correlate recurring faults in image-decoding code paths
- Alert on process termination signals in browsers or viewers immediately after retrieval of an ICO or favicon resource
- Track package manager advisories for libnsbmp and NetSurf and generate tickets when vulnerable versions remain deployed
How to Mitigate CVE-2026-111139
Immediate Actions Required
- Identify all applications that bundle or link libnsbmp through 0.1.7 and prioritize them for update
- Restrict ingestion of ICO files from untrusted sources until patched builds are deployed
- Rebuild dependent software against a patched libnsbmp release once the upstream NetSurf project publishes it
Patch Information
At the time of publication, no fixed release is listed in the NVD entry. Monitor the GitHub libnsbmp Repository and the NetSurf libnsbmp Source Archive index for a post-0.1.7 release that corrects the mask row length calculation in bmp_decode_mask(). The VulnCheck Advisory for libnsbmp tracks fix status.
Workarounds
- Disable or avoid ICO decoding features in applications that embed libnsbmp where feasible
- Validate ICO content at a security gateway and drop files whose declared inner bitmap width is not a multiple of 8 pending a patch
- Run image-decoding workloads inside sandboxed or isolated processes so a crash in bmp_decode_mask() does not affect the host application
# Configuration example
# Enumerate installed libnsbmp versions on Debian/Ubuntu systems
dpkg -l | grep -i libnsbmp
# Enumerate installed libnsbmp versions on RPM-based systems
rpm -qa | grep -i libnsbmp
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

