CVE-2026-3994rui314 mold Object File input-files.cc initialize_sections heap-based overflow
A vulnerability was detected in rui314 mold up to 2.40.4. This issue affects the function mold::ObjectFilemold::X86_64::initialize_sections of the file src/input-files.cc of the component Object File Handler. Performing a manipulation results in heap-based buffer overflow. Attacking locally is a requirement. The exploit is now public and may be used. The project was informed of the problem early through an issue report but has not responded yet.
What to do
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | mold | Fix pending | UBUNTU-CVE-2026-3994 | |
| Ubuntu 26.04 | mold | Under investigation | UBUNTU-CVE-2026-3994 | |
| Ubuntu 25.10 | mold | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-3994 | |
| Ubuntu 24.04 | mold | Under investigation | UBUNTU-CVE-2026-3994 | |
| Ubuntu 22.04 | mold | Under investigation | UBUNTU-CVE-2026-3994 | |
| Debian 13 | mold | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2026-3994 | |
| Debian 12 | mold | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2026-3994 |
What the vendor says
As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- rui314 mold: affected: 2.40.0, 2.40.1, 2.40.2, 2.40.3, 2.40.4
References
- https://vuldb.com/?id.350476
- https://vuldb.com/?ctiid.350476
- https://vuldb.com/?submit.769772
- https://github.com/rui314/mold/issues/1548
- https://github.com/oneafter/0209/blob/main/mo2/repro
- https://github.com/rui314/mold/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.