CVE-2026-58088 PUBLISHED

Race condition in ELF core dump segment counting

Assigner: freebsd
Reserved: 29.06.2026 Published: 19.08.2026 Updated: 19.08.2026

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.

Product Status

Vendor FreeBSD
Product FreeBSD
Versions Default: unknown
  • affected from 15.1-RELEASE to p2 (excl.)
  • affected from 15.0-RELEASE to p12 (excl.)
  • affected from 14.4-RELEASE to p8 (excl.)

Credits

  • Maik Muench of Secfault Security finder

References

Problem Types

  • CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') CWE
  • CWE-787: Out-of-bounds Write CWE