Memory corruption via unreferenced J1939 session skb
Published May 21, 2024 · Updated Aug 5, 2026
Use-after-free in the Linux Kernel J1939 transport subsystem allows attackers to corrupt kernel memory by racing CTS processing. The session queue lookup in net/can/j1939/transport.c returns an sk_buff without incrementing its reference count, so concurrent CTS-driven removal frees the buffer while callers still use it. Reachability requires an active J1939 transport session and either an unauthenticated CAN peer or an unprivileged local AF_CAN socket; successful reuse permits kernel-memory reads or writes, while dereference can panic the system.
Summary
What happened
Use-after-free in the Linux Kernel J1939 transport subsystem allows attackers to corrupt kernel memory by racing CTS processing. The session queue lookup in net/can/j1939/transport.c returns an sk_buff without incrementing its reference count, so concurrent CTS-driven removal frees the buffer while callers still use it. Reachability requires an active J1939 transport session and either an unauthenticated CAN peer or an unprivileged local AF_CAN socket; successful reuse permits kernel-memory reads or writes, while dereference can panic the system.
The record
- CVE
- CVE-2021-47232
- Published
- May 21, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1068, T1499
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- May 21, 2024CVE 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=5.4
- Affected versionversion=9d71dd0c70099914fcd063135da3c580865e924c <1071065eeb33d32b7d98c2ce7591881ae7381705
- Affected versionversion=9d71dd0c70099914fcd063135da3c580865e924c <2030043e616cab40f510299f09b636285e0a3678
- Affected versionversion=9d71dd0c70099914fcd063135da3c580865e924c <22cba878abf646cd3a02ee7c8c2cef7afe66a256
- Affected versionversion=9d71dd0c70099914fcd063135da3c580865e924c <509ab6bfdd0c76daebbad0f0af07da712116de22
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.
Weakness, pattern, technique
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