CVE-2026-58094
FreeBSD · FreeBSD
A time of check time of use race condition in the FreeBSD FIOSSHMLPGCNF ioctl operation allows an unprivileged local user to escalate privileges by configuring conflicting largepage memory settings.
Executive summary
A race condition vulnerability in the FreeBSD kernel allows local unprivileged users to escalate privileges, posing a significant risk to system integrity.
Vulnerability
The vulnerability is a Time of check Time of use (CWE-367) race condition within the FIOSSHMLPGCNF ioctl handler. Because the kernel fails to hold the rangelock during the configuration check, two concurrent processes can trigger inconsistent states in shared memory objects, which an attacker can leverage to gain unauthorized elevated privileges.
Business impact
The ability for a local unprivileged user to escalate privileges to root level represents a total compromise of system confidentiality, integrity, and availability. With a CVSS score of 7.8, this vulnerability is classified as High severity. Successful exploitation allows an attacker to bypass standard security controls, potentially leading to full system takeover, unauthorized data access, or the deployment of persistent malware.
Remediation
Immediate Action: Administrators must update their FreeBSD systems to the patched versions specified in the vendor advisory (FreeBSD-SA-26:63.posixshm.asc) as soon as possible.
Proactive Monitoring: Security teams should monitor system logs for suspicious process activity, particularly those attempting to invoke ioctl operations on shared memory objects or unusual privilege escalation attempts.
Compensating Controls: While kernel-level race conditions are difficult to mitigate externally, applying strict access controls to prevent untrusted users from executing arbitrary code on the host remains a primary defensive strategy.
Exploitation status
Public Exploit Available: No
Analyst recommendation
Given the potential for complete system compromise, organizations running the affected FreeBSD versions should prioritize this update within their standard patch management lifecycle. The risk of local privilege escalation is significant in multi-user environments or systems where user-space applications are exposed to untrusted input. Apply the provided vendor patches immediately to eliminate the underlying race condition.
More FreeBSD CVEs
Sources
Originally found and disclosed by tsune of GMO Cybersecurity by Ierae, Inc. working with TrendAI Zero Day Initiative, per the CVE Program record.