Bug 2444313 - CVE-2026-29022 dosbox-staging: dr_libs: Heap buffer overflow via crafted WAV files [fedora-42]
Summary: CVE-2026-29022 dosbox-staging: dr_libs: Heap buffer overflow via crafted WAV ...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: dosbox-staging
Version: 42
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Yaakov Selkowitz
QA Contact:
URL:
Whiteboard: {"flaws": ["239c750c-7ae9-4870-a8e3-d...
Depends On:
Blocks: CVE-2026-29022
TreeView+ depends on / blocked
 
Reported: 2026-03-04 05:32 UTC by Vipul Nair
Modified: 2026-03-04 06:12 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vipul Nair 2026-03-04 05:32:19 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

Comment 1 Ben Beasley 2026-03-04 06:12:16 UTC
Let me supply the details that are missing here.

The CVE report is here: https://www.cve.org/CVERecord?id=CVE-2026-29022

The bug is in dr_wav, and is fixed in 0.14.5 via https://github.com/mackron/dr_libs/commit/8a7258cc66b49387ad58cc5b81568982a3560d49. Unfortunately, the bundled dr_wav here is 0.13.11, and there are significant API changes in all three dr_* libs from dr_flac 0.12.x to 0.13.x, dr_mp3 0.6.x to 0.7.x, and dr_wav 0.13.x. If I remember correctly, this is why dosbox-staging is bundling dr_libs rather than using the system package.

I found that the fix for this particular issue was easy enough to cherry-pick to dr_wav 0.13.17, at least; see https://src.fedoraproject.org/rpms/dr_libs/c/0ee60144d4480605bb152bd6094680630775b98a?branch=f42. I just had to omit the version number and changelog parts of the diff. So you could, if you like, try using that as a downstream patch for your bundled dr_wav header.

This is not the only potentially security-relevant issue fixed since dr_flac 0.12.x / dr_mp3 0.6.x / dr_wav 0.13.x. It is just the only one that has been assigned a CVE, as far as I know. In the long run, dosbox-staging upstream ought to be encouraged to upgrade their vendored dr_libs headers and fix any API incompatibilities with the latest versions.


Note You need to log in before you can comment on or make changes to this bug.