[PATCH 0/8] Fix OOB access and overflow bugs in display, audio and SCSI device emulation

Tristan Madani posted 8 patches 4 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20261025173625.3372689-1-tristan@talencesecurity.com
Maintainers: Gerd Hoffmann <kraxel@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, Helge Deller <deller@gmx.de>, "Hervé Poussineau" <hpoussin@reactos.org>, Aleksandar Rikalo <arikalo@gmail.com>, BALATON Zoltan <balaton@eik.bme.hu>, Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>, Paolo Bonzini <pbonzini@redhat.com>, Fam Zheng <fam@euphon.net>
hw/audio/gusemu_hal.c |  6 ++++++
hw/display/artist.c   |  2 +-
hw/display/ati_2d.c   | 25 ++++++++++++++++++++-----
hw/display/g364fb.c   |  8 +++++++-
hw/display/sm501.c    | 14 ++++++++++++--
hw/display/tcx.c      |  8 ++++++++
hw/scsi/ncr53c710.c   |  6 ++++++
7 files changed, 60 insertions(+), 9 deletions(-)
[PATCH 0/8] Fix OOB access and overflow bugs in display, audio and SCSI device emulation
Posted by Tristan Madani 4 weeks ago
This series fixes eight security bugs across display, audio, and SCSI
device emulation backends. All were found by manual source code audit
and reported via GitLab confidential issues (since made public per
maintainer request).

Summary of fixes:

  - Patches 1-2: ATI Rage128 2D blitter integer overflow and
    width-vs-stride mismatch leading to heap OOB writes
  - Patch 3: G364 framebuffer top_of_screen OOB read
  - Patch 4: SM501 framebuffer/cursor address OOB reads
  - Patch 5: NCR710 SCRIPTS engine infinite loop (CVE-2023-0330 variant)
  - Patch 6: TCX blitter source address OOB read (host memory disclosure)
  - Patch 7: Artist display off-by-one OOB read
  - Patch 8: GUS 16-bit DMA heap and stack buffer overflow

Each patch includes a Resolves: tag pointing to the corresponding
GitLab issue. Patches 1-2, 6, and 8 are Cc'd to qemu-stable as they
fix the most severe bugs (heap OOB write, host memory disclosure,
heap overflow).

Tristan Madani (8):
  hw/display/ati: fix integer overflow in Rage128 2D blit bounds check
  hw/display/ati: reject 2D blit when width exceeds stride
  hw/display/g364fb: validate top_of_screen against VRAM size
  hw/display/sm501: validate framebuffer and cursor addresses
  hw/scsi/ncr53c710: add instruction count limit to SCRIPTS engine
  hw/display/tcx: validate blit source address against VRAM size
  hw/display/artist: fix off-by-one in VRAM read bounds check
  hw/audio/gus: fix 16-bit DMA heap and stack buffer overflow

 hw/audio/gusemu_hal.c |  6 ++++++
 hw/display/artist.c   |  2 +-
 hw/display/ati_2d.c   | 25 ++++++++++++++++++++-----
 hw/display/g364fb.c   |  8 +++++++-
 hw/display/sm501.c    | 14 ++++++++++++--
 hw/display/tcx.c      |  8 ++++++++
 hw/scsi/ncr53c710.c   |  6 ++++++
 7 files changed, 60 insertions(+), 9 deletions(-)

-- 
2.53.0
Re: [PATCH 0/8] Fix OOB access and overflow bugs in display, audio and SCSI device emulation
Posted by Peter Maydell 3 weeks, 6 days ago
On Sun, 25 Oct 2026 at 19:14, Tristan Madani <tristmd@gmail.com> wrote:
>
> This series fixes eight security bugs across display, audio, and SCSI
> device emulation backends. All were found by manual source code audit
> and reported via GitLab confidential issues (since made public per
> maintainer request).
>
> Summary of fixes:
>
>   - Patches 1-2: ATI Rage128 2D blitter integer overflow and
>     width-vs-stride mismatch leading to heap OOB writes
>   - Patch 3: G364 framebuffer top_of_screen OOB read
>   - Patch 4: SM501 framebuffer/cursor address OOB reads
>   - Patch 5: NCR710 SCRIPTS engine infinite loop (CVE-2023-0330 variant)
>   - Patch 6: TCX blitter source address OOB read (host memory disclosure)
>   - Patch 7: Artist display off-by-one OOB read
>   - Patch 8: GUS 16-bit DMA heap and stack buffer overflow
>
> Each patch includes a Resolves: tag pointing to the corresponding
> GitLab issue. Patches 1-2, 6, and 8 are Cc'd to qemu-stable as they
> fix the most severe bugs (heap OOB write, host memory disclosure,
> heap overflow).

Have you read our AI policy?

https://www.qemu.org/docs/master/devel/code-provenance.html#use-of-ai-generated-content

-- PMM