FreeBSD
TOCTOU race in POSIX shared memory large page configuration
The FIOSSHMLPGCNF ioctl(2) operation configures the page size for a largepage shared memory object. This is intended to be used immediately after creating the object, before any memory is allocated for the object. The handler checked whether a page size had already been configured without holding the rangelock. Two concurrent callers could both observe an unconfigured object and set conflicting page sizes, leaving the object in an inconsistent state. An unprivileged local user can exploit this race to escalate privileges.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.8high · scored by CISA ADP · CWE-367
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
FreeBSD FreeBSD
- >= 15.1-RELEASE, < p3
- >= 15.0-RELEASE, < p13
- >= 14.4-RELEASE, < p9
Fixed in p3, p13, p9
Mitigation
Upgrade FreeBSD to p3 or p13 or p9 or later.
References
- Vendor advisory security.freebsd.org/advisories/FreeBSD-SA-26:63.posixsh…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.