CVE-2026-58088
JSON

7.4high

Race condition in ELF core dump segment counting

Severity
7.4high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.11% (higher than 1% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
freebsd

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. 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.

Affected

Product or packageVersionsReported by
FreeBSD FreeBSDfrom 15.1-RELEASE before p2, from 15.0-RELEASE before p12, from 14.4-RELEASE before p8, 14.4, 15.0, 15.1CVE List, NVD

Classification

CWE-362CWE-787

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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. 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.

NVD (es)

El código de volcado de memoria ELF contó el número de entradas de mapa de VM volcables, asignó un búfer para los encabezados de programa correspondientes y luego iteró sobre el mapa una segunda vez para poblarlos. Un proceso que comparte el espacio de direcciones a través de rfork(2) puede mutar el mapa entre las dos pasadas, haciendo que la segunda pasada escriba encabezados de programa más allá del final del búfer. Un usuario local sin privilegios que comparte un espacio de direcciones con un proceso que vuelca memoria puede desencadenar una escritura fuera de límites en el heap del kernel, lo que podría llevar a una escalada de privilegios.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-58088 changed 2026-08-20CVE Terms of Use
NVDCVE-2026-58088 changed 2026-10-27Public domain