Kernel compromise via freed CAN frame access
Published Apr 17, 2025 · Updated Aug 5, 2026
Use-after-free in the Linux CAN restart path allows adjacent attackers to crash or compromise affected kernels through CAN bus errors. In drivers/net/can/dev.c, can_restart calls netif_rx_ni(skb), which can free the socket buffer, before reading cf->len from its aliased CAN frame. Reachability requires access to the same CAN segment and automatic bus-off recovery; forced bus-off invokes the faulty restart path without a host account.
Summary
What happened
Use-after-free in the Linux CAN restart path allows adjacent attackers to crash or compromise affected kernels through CAN bus errors. In drivers/net/can/dev.c, can_restart calls netif_rx_ni(skb), which can free the socket buffer, before reading cf->len from its aliased CAN frame. Reachability requires access to the same CAN segment and automatic bus-off recovery; forced bus-off invokes the faulty restart path without a host account.
The record
- CVE
- CVE-2021-47668
- Published
- Apr 17, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1499
- Attack vector
- adjacent
- Privileges
- unauthenticated
Timeline
How it unfolded
- Apr 17, 2025CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record 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=2.6.31
- Affected versionversion=39549eef3587f1c1e8c65c88a2400d10fd30ea17 <03f16c5075b22c8902d2af739969e878b0879c94
- Affected versionversion=39549eef3587f1c1e8c65c88a2400d10fd30ea17 <08ab951787098ae0b6c0364aeea7a8138226f234
- Affected versionversion=39549eef3587f1c1e8c65c88a2400d10fd30ea17 <260925a0b7d2da5449f8ecfd02c1405e0c8a45b8
- Affected versionversion=39549eef3587f1c1e8c65c88a2400d10fd30ea17 <593c072b7b3c4d7044416eb039d9ad706bedd67a
- Affected versionversion=39549eef3587f1c1e8c65c88a2400d10fd30ea17 <92668d28c7e6a7a2ba07df287669ffcdf650c421
- Affected versionversion=39549eef3587f1c1e8c65c88a2400d10fd30ea17 <ac48ef15826e83f4206c47add61072e8fc76d328
- Affected versionversion=39549eef3587f1c1e8c65c88a2400d10fd30ea17 <bbc6847b9b8978b520f62fbc7c68c54ef0f8d282
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.
Public exploit references
No public exploit references are available in this record.
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