Local root escalation via unlocked socket-option race
Published May 11, 2021 · Updated Aug 3, 2024
A race condition in Linux kernel 5.11 through 5.12.2 allows local users to escalate privileges to root through CAN ISO-TP sockets. isotp_setsockopt() checks the bound flag without the socket lock, so a concurrent bind can register a CAN receiver before SF_BROADCAST is copied into the socket, causing isotp_release() to skip can_rx_unregister(). Local low-privileged access is required; the demonstrated path also relies on user namespaces, virtual CAN, CAN ISO-TP, and an address leak before overwriting sk_error_report() to run a root ROP chain.
Summary
What happened
A race condition in Linux kernel 5.11 through 5.12.2 allows local users to escalate privileges to root through CAN ISO-TP sockets. isotp_setsockopt() checks the bound flag without the socket lock, so a concurrent bind can register a CAN receiver before SF_BROADCAST is copied into the socket, causing isotp_release() to skip can_rx_unregister(). Local low-privileged access is required; the demonstrated path also relies on user namespaces, virtual CAN, CAN ISO-TP, and an address leak before overwriting sk_error_report() to run a root ROP chain.
The record
- CVE
- CVE-2021-32606
- Published
- May 11, 2021
- Updated
- Aug 3, 2024
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-416, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- May 11, 2021CVE publishedPublication date reported by the CVE source.
- Aug 3, 2024Record 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?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
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
- CVE-2021-32606 CAN ISO-TP local privilege-escalation exploitfunctional · 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