Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| rui314 | mold | 2.40.0, 2.40.1, 2.40.2, 2.40.3, 2.40.4 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 13 | mold | No fix yet | — |
| Debian 12 | mold | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | mold | No fix yet | — |
| Ubuntu 26.04 LTS | mold | No fix yet | — |
| Ubuntu 25.10 | mold | No fix yet | — |
| Ubuntu 24.04 LTS | mold | No fix yet | — |
| Ubuntu 22.04 LTS | mold | No fix yet | — |
References
- VDB-350476 | rui314 mold Object File input-files.cc initialize_sections heap-based overflow vdb-entry technical-description
- VDB-350476 | CTI Indicators (IOB, IOC, IOA) signature permissions-required
- Submit #769772 | rui314 mold mold 2.40.4 and main-branch Heap-based Buffer Overflow third-party-advisory
- https://github.com/rui314/mold/issues/1548 issue-tracking
- https://github.com/oneafter/0209/blob/main/mo2/repro exploit
- https://github.com/rui314/mold/ product