FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

FreeBSD -- Race condition in ELF core dump segment counting

Affected packages
15.1 <= FreeBSD-kernel < 15.1_2
15.0 <= FreeBSD-kernel < 15.0_12
14.4 <= FreeBSD-kernel < 14.4_8

Details

VuXML ID ced14fa7-8bb8-11f1-a6ab-bc241121aa0a
Discovery 2026-07-29
Entry 2026-07-30

Problem Description:

The ELF core dump code counted the number of dumpable VM map entries, allocated a buffer for the corresponding program headers, then iterated over the map a second time to populate them. A process sharing the address space via rfork(2) can mutate the map between the two passes, causing the second pass to write program headers past the end of the buffer.

Impact:

An unprivileged local user sharing an address space with a process that dumps core can trigger an out-of-bounds write on the kernel heap, potentially leading to privilege escalation.

References

CVE Name CVE-2026-58088
FreeBSD Advisory SA-26:55.elf