Article View: linux.debian.bugs.dist
Article #4211Bug#1145423: Bug#1144644: Subject: antiword: heap out-of-bounds write during OLE PPS name decoding
From: Olly Betts
Date: Thu, 12 Nov 2026 02:40
Date: Thu, 12 Nov 2026 02:40
37 lines
4056 bytes
4056 bytes
On Thu, Sep 17, 2026 at 02:55:28PM +0000, vulnreport wrote:
> A follow-up on the https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1145423 :
If you have a follow-up for a bug, please send it to that bug not to the
-done address for a different bug, or it's very likely to get missed.
I've corrected the address in Cc in my reply and quoted the useful parts.
> The engineer replayed the provided PoC with antiword 0.37-18 and
> managed to reproduce the vGet8FontInfo crash.
That's expected as #1145423 is still open (it's not a security bug, and
a crash that only happens on a malformed input file is lower priority).
As I explained, I fixed the OOB write but not the OOB read which your
reproducer also triggers, so I split the OOB read off as #1145423.
> Per analysis, this is caused by an OOB read on the 512-byte stack
> array aucFpage in vGet8ChrInfo. The function trusts two bytes read
> from the file (iFodo and iLen) without checking them against the size
> of aucFpage, and those values are passed to the function vGet8FontInfo
> (1st and 4th arguments).
>
> In vGet8FontInfo, iBytes bounds only iFodoOff, but the index to the
> aucGrpprl array is calculated by iFodo + iFodoOff. The base offset
> iFodo is never checked and this causes the OOB at this line:
>
> switch (usGetWord(iFodo + iFodoOff, aucGrpprl))
>
> To fix this bug, at prop8.c:1470, properly bound the iLen value to BIG_BLOCK_SIZE, like the following:
>
> if (iLen > BIG_BLOCK_SIZE - 1 - iFodo) {
> iLen = BIG_BLOCK_SIZE - 1 - iFodo;
> }
Thanks, will take a look when I get a chance.
Cheers,
Olly
Technical Details
Message-ID:
<NYsTf-blgp-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomodReferences:
<Nvvzz-cRFq-3@gated-at.bofh.it> <Nvvzz-cRFq-1@gated-at.bofh.it> <NvLkZ-d2oQ-1@gated-at.bofh.it> <Nvvzz-cRFq-3@gated-at.bofh.it> <NYsTf-blgp-3@gated-at.bofh.it> <NYsTf-blgp-5@gated-at.bofh.it> <NYsTf-blgp-7@gated-at.bofh.it> <Nvvzz-cRFq-3@gated-at.bofh.it> <NYsTf-blgp-7@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod From: Olly Betts <olly@survex.com> Newsgroups: linux.debian.bugs.dist Subject: Bug#1145423: Bug#1144644: Subject: antiword: heap out-of-bounds write during OLE PPS name decoding Date: Thu, 12 Nov 2026 03:40:01 +0100 Message-ID: <NYsTf-blgp-1@gated-at.bofh.it> References: <Nvvzz-cRFq-3@gated-at.bofh.it> <Nvvzz-cRFq-1@gated-at.bofh.it> <NvLkZ-d2oQ-1@gated-at.bofh.it> <Nvvzz-cRFq-3@gated-at.bofh.it> <NYsTf-blgp-3@gated-at.bofh.it> <NYsTf-blgp-5@gated-at.bofh.it> <NYsTf-blgp-7@gated-at.bofh.it> <Nvvzz-cRFq-3@gated-at.bofh.it> <NYsTf-blgp-7@gated-at.bofh.it> X-Original-To: vulnreport <vulnreport@quarkslab.com> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Thu Nov 12 02:33:07 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.45 Reply-To: Olly Betts <olly@survex.com>, 1145423@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: olly@survex.com X-Debian-Pr-Message: followup 1145423 X-Debian-Pr-Package: antiword X-Debian-Pr-Keywords: upstream X-Debian-Pr-Source: antiword MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2002146 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 37 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Salvatore Bonaccorso <carnil@debian.org>, 1145423@bugs.debian.org, security@debian.org X-Original-Date: Thu, 12 Nov 2026 02:30:45 +0000 X-Original-Message-ID: <avUk1QkP60NH2nyn@survex.com> X-Original-References: <PR0P264MB38817455E21DB78C6BE0983ADAA72@PR0P264MB3881.FRAP264.PROD.OUTLOOK.COM> <aovXNIVUvfrau47t@survex.com> <aozDQMMlxEDXYRue@survex.com> <PR0P264MB38817455E21DB78C6BE0983ADAA72@PR0P264MB3881.FRAP264.PROD.OUTLOOK.COM> <ao1P6Xni68XIxP0b@eldamar.lan> <ao4IdHHRkdiEuTIE@survex.com> <PR0P264MB38812675AD5C16EFD8460D9EDAB82@PR0P264MB3881.FRAP264.PROD.OUTLOOK.COM> <PR0P264MB38817455E21DB78C6BE0983ADAA72@PR0P264MB3881.FRAP264.PROD.OUTLOOK.COM> <PR0P264MB38812675AD5C16EFD8460D9EDAB82@PR0P264MB3881.FRAP264.PROD.OUTLOOK.COM>