Local privilege escalation via M_CAN use-after-free
Published Feb 26, 2025 · Updated Aug 5, 2026
Use-after-free in the Linux kernel M_CAN driver allows local users to gain kernel privileges through a configured CAN interface. The M_CAN 3.0.x m_can_tx_handler() path calls can_put_echo_skb(), which clones and frees the socket buffer before later reads of its length and data. An unprivileged local process can trigger the deterministic flaw by sending AF_CAN frames when an M_CAN interface is already up with CAN FD enabled, enabling kernel privilege escalation or a kernel panic.
Summary
What happened
Use-after-free in the Linux kernel M_CAN driver allows local users to gain kernel privileges through a configured CAN interface. The M_CAN 3.0.x m_can_tx_handler() path calls can_put_echo_skb(), which clones and frees the socket buffer before later reads of its length and data. An unprivileged local process can trigger the deterministic flaw by sending AF_CAN frames when an M_CAN interface is already up with CAN FD enabled, enabling kernel privilege escalation or a kernel panic.
The record
- CVE
- CVE-2022-49275
- Published
- Feb 26, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Feb 26, 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=3.18
- Affected versionversion=80646733f11c2e9de3b6339f7e635047e6087280 <08d90846e438ac22dc56fc49ec0b0d195831c5ed
- Affected versionversion=80646733f11c2e9de3b6339f7e635047e6087280 <2e8e79c416aae1de224c0f1860f2e3350fa171f8
- Affected versionversion=80646733f11c2e9de3b6339f7e635047e6087280 <31417073493f302d26ab66b3abc098d43227b835
- Affected versionversion=80646733f11c2e9de3b6339f7e635047e6087280 <4db7d6f481990dd179a9ee7126dc7aa31ea4fff3
- Affected versionversion=80646733f11c2e9de3b6339f7e635047e6087280 <7728d937ec403a1ceff9483023252d2cb8777f81
- Affected versionversion=80646733f11c2e9de3b6339f7e635047e6087280 <869016a2938ac44f7b2fb7fc22c89edad99eb9b3
- Affected versionversion=80646733f11c2e9de3b6339f7e635047e6087280 <d3892a747ab16b1eb6593a19d29f62c3b3f020ac
- Affected versionversion=80646733f11c2e9de3b6339f7e635047e6087280 <d93ed9aff64968f4cdad690712eb4f48ae537bde
- Affected versionversion=80646733f11c2e9de3b6339f7e635047e6087280 <f43e64076ff1b1dcb893fb77ad1204105f710a29
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