Local root escalation via AIO credential refcount overflow
Published Feb 15, 2024 · Updated Mar 28, 2025
Use-after-free in the FreeBSD kernel allows local users to gain root privileges through crafted asynchronous I/O requests. aio_aqueue retains the calling thread's ucred reference when queueing fails, so repeated failures wrap the reference count and permit premature credential reuse. An unprivileged local process on an affected release can reach this error path and replace its live credential with a forged root credential.
Summary
What happened
Use-after-free in the FreeBSD kernel allows local users to gain root privileges through crafted asynchronous I/O requests. aio_aqueue retains the calling thread's ucred reference when queueing fails, so repeated failures wrap the reference count and permit premature credential reuse. An unprivileged local process on an affected release can reach this error path and replace its live credential with a forged root credential.
The record
- CVE
- CVE-2022-23090
- Published
- Feb 15, 2024
- Updated
- Mar 28, 2025
- Vendor
- The FreeBSD Project
- Product
- FreeBSD
- Classifications
- CWE-416, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Feb 15, 2024CVE publishedPublication date reported by the CVE source.
- Mar 28, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=12.3-RELEASE <p6
- Affected versionversion=13.0 <13.0_p12
- Affected versionversion=13.0-RELEASE <p12
- Affected versionversion=13.1 <13.1_p1
- Affected versionversion=13.1-RELEASE <p1
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- FreeBSD aio_aqueue local privilege-escalation proof of conceptfunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo