Article View: linux.debian.bugs.dist
Article #3937Bug#1153504: netsurf: heap out-of-bounds write in bundled libnsbmp bitmap decoder (CVE request)
From: 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
Technical Details
Message-ID:
<NXG2d-aTve-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<NXG2d-aTve-3@gated-at.bofh.it> <NXG2d-aTve-3@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Salvatore Bonaccorso <carnil@debian.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1153504: netsurf: heap out-of-bounds write in bundled libnsbmp bitmap decoder (CVE request) Date: Mon, 09 Nov 2026 23:30:01 +0100 Message-ID: <NXG2d-aTve-1@gated-at.bofh.it> References: <NXG2d-aTve-3@gated-at.bofh.it> <NXG2d-aTve-3@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Nov 9 22:21:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Salvatore Bonaccorso <carnil@debian.org>, 1153504@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: vince@debian.org X-Debian-Pr-Message: followup 1153504 X-Debian-Pr-Package: netsurf X-Debian-Pr-Keywords: security upstream X-Debian-Pr-Source: netsurf MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Debian-User: carnil X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2001723 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 47 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 9 Nov 2026 23:18:34 +0100 X-Original-Message-ID: <avJGumNCGeWF2OwL@eldamar.lan> X-Original-References: <CAEpSfiiKWk9=8QDX_it0zfvrgiMGaPvRyS4ehF5DQkfSdS34wQ@mail.gmail.com> <CAEpSfiiKWk9=8QDX_it0zfvrgiMGaPvRyS4ehF5DQkfSdS34wQ@mail.gmail.com>