Local root escalation via CAN BCM use-after-free
Published Mar 3, 2022 · Updated Aug 3, 2024
Use-after-free flaws in Linux Kernel 2.6.25 through 5.13-rc6 allow local users to execute arbitrary code with root privileges via CAN BCM sockets. bcm_release() frees struct bcm_sock and struct bcm_op while bcm_rx_handler() or its timeout handler can still use them, permitting heap-sprayed data to redirect kernel control flow. Exploitation requires local low-privileged access, CAN BCM socket operations, and winning a race; success can overwrite kernel data and grant root control.
Summary
What happened
Use-after-free flaws in Linux Kernel 2.6.25 through 5.13-rc6 allow local users to execute arbitrary code with root privileges via CAN BCM sockets. bcm_release() frees struct bcm_sock and struct bcm_op while bcm_rx_handler() or its timeout handler can still use them, permitting heap-sprayed data to redirect kernel control flow. Exploitation requires local low-privileged access, CAN BCM socket operations, and winning a race; success can overwrite kernel data and grant root control.
The record
- CVE
- CVE-2021-3609
- Published
- Mar 3, 2022
- Updated
- Aug 3, 2024
- Vendor
- The Linux Kernel Organization
- Product
- Linux Kernel
- Classifications
- CWE-362, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Mar 3, 2022CVE 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?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=Affects kernel v2.6.25 to v5.13-rc6
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
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.
Weakness, pattern, technique
Public exploit references
- CVE-2021-3609 CAN BCM local privilege escalationfunctional · 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