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.
Problem types
Product status
2.40.1
2.40.2
2.40.3
2.40.4
Timeline
| 2026-03-11: | Advisory disclosed |
| 2026-03-11: | VulDB entry created |
| 2026-03-11: | VulDB entry last update |
Credits
Oneafter (VulDB User)
References
vuldb.com/?id.350476 (VDB-350476 | rui314 mold Object File input-files.cc initialize_sections heap-based overflow)
vuldb.com/?ctiid.350476 (VDB-350476 | CTI Indicators (IOB, IOC, IOA))
vuldb.com/?submit.769772 (Submit #769772 | rui314 mold mold 2.40.4 and main-branch Heap-based Buffer Overflow)
github.com/rui314/mold/issues/1548
github.com/oneafter/0209/blob/main/mo2/repro
github.com/rui314/mold/