Thread View: linux.debian.bugs.dist
1 messages
1 total messages
Started by Salvatore Bonaccorso
Mon, 09 Nov 2026 22:30
Bug#1153504: netsurf: heap out-of-bounds write in bundled libnsbmp bitmap decoder (CVE request)
Author: Salvatore Bonaccorso
Date: Mon, 09 Nov 2026 22:30
Date: Mon, 09 Nov 2026 22:30
47 lines
3825 bytes
3825 bytes
Control: tags -1 + moreinfo Hi, On Mon, Nov 09, 2026 at 05:23:11PM +0800, fuckth3w0r1d wrote: > Package: netsurf > Version: 3.11-2 > Severity: normal > Tags: security upstream > X-Debbugs-CC: security@debian.org > > A heap out-of-bounds write exists in the libnsbmp copy bundled in the > netsurf source package (libnsbmp/src/libnsbmp.c). A crafted BMP makes > the decoder compute a wrapped row stride in uint32_t (swidth = > sizeof(uint32_t) * width) and then write scanlines past the allocated > pixel buffer. The same wrapped value is used by the per-row bounds > check, so the check does not stop the write. > > On the official i386 packages the out-of-bounds dwords overlap heap > objects, including the nsfb_t plotter function table. This is reachable > from an image loaded from the local filesystem or fetched over HTTP. > With ASLR enabled I verified code execution (arbitrary command) in the > browser process, with the privileges of the user opening the image; if > the guessed PIE base is wrong the process crashes instead. > > Affected and tested: > * trixie: netsurf-fb 3.11-2, netsurf-gtk 3.11-2 > * bookworm: netsurf-fb 3.10-1+b3, netsurf-gtk 3.10-1+b3 > * upstream libnsbmp (0.1.7, commit 3e54099) and current master are > still affected > > I have also reported this to security@netsurf-browser.org. The detailed > write-up (root cause, affected code locations, exploitability analysis > and suggested fix) is attached. A proof-of-concept is available > privately to the security team on request; I would prefer not to publish > exploit details before a fix or a coordinated disclosure date. > > Please assign a CVE identifier for this issue (or advise whether it > should be requested from MITRE), and let me know the planned fix and > disclosure timeline. I am happy to test a proposed patch. Once upstream contacted through security@netsurf-browser.org has validated the report and confirms the issue, in agreement with upstream check who will request a CVE (from MITRE). Regards, Salvatore
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads