Time-of-check Time-of-use (TOCTOU) Race Condition in FreeBSD - CVE-2026-58094
Published: August 26, 2026
Vulnerability details
The vulnerability allows a local user to escalate privileges.
The vulnerability exists due to a time-of-check time-of-use race condition in the FIOSSHMLPGCNF ioctl handler for POSIX shared memory largepage objects when configuring the page size of a largepage shared memory object. A local user can trigger concurrent configuration operations to escalate privileges.
The issue occurs because the check for an existing page size configuration was performed without holding the rangelock, allowing conflicting page sizes to be set on the same object and leaving it in an inconsistent state.