Skip to main content

Linux Kernel CVE-2021-47668

HIGH
Use After Free (CWE-416)
2025-04-17 416baaa9-dc9f-4396-8d5f-8c081fb06d67
8.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain CAN bus physical or logical access
  2. Delivery
    Inject sustained CAN error frames to trigger bus-off
  3. Exploit
    Kernel schedules can_restart() workqueue
  4. Execution
    netif_rx_ni(skb) transfers skb ownership to network stack
  5. Persist
    UAF read of freed cf->len pointer
  6. Impact
    Kernel memory corruption or panic

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires adjacent network access to an active CAN bus interface on a system running a vulnerable Linux kernel with CAN driver support loaded. The CAN interface must be operational and the attacker must be able to induce a bus-off condition by injecting sufficient CAN bus error frames to exceed the hardware error counter threshold - this requires direct CAN bus connectivity (e.g., physical access to an OBD-II port, industrial fieldbus tap, or logical access via a CAN-over-IP gateway). No kernel-level privileges are required to interact with the CAN bus at the network layer, but CAN bus access itself is inherently constrained to proximity or authorized network access. Systems with no CAN hardware, disabled CAN kernel modules, or where ip link set canX down has been issued are not affected. The vulnerable code path is not reachable from general TCP/IP or Ethernet network traffic.

Impact

The NVD-assigned CVSS 8.8 (AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) appears significantly overstated for this specific vulnerability. The UAF occurs in a statistics accounting read path - reading cf->len from potentially freed memory - which is a weak exploitation primitive compared to kernel UAF write scenarios. In most configurations this would most likely manifest as a kernel panic rather than a reliable confidentiality or integrity breach, making C:H/I:H difficult to justify from the description alone. Against this, EPSS at 0.06% (20th percentile) is extremely low, no POC has been published, and CISA KEV contains no entry for this CVE. The notable gap between CVSS 8.8 and EPSS 0.06% is consistent with a theoretically high-severity kernel bug that is practically very difficult to weaponize. The adjacent network attack vector (AV:A) further constrains exposure to environments with direct CAN bus connectivity - automotive, industrial control, and embedded systems - rather than general enterprise infrastructure. Real-world risk is considerably lower than the raw CVSS implies; this is primarily a kernel stability defect with a theoretical but undemonstrated escalation path.

Exploit ScenarioDerived

An attacker with physical or logical access to a CAN bus connected to a vulnerable Linux system deliberately injects a sustained high rate of CAN bus errors, causing the error counter to exceed the bus-off threshold and triggering the kernel's can_restart() workqueue. During the restart sequence the use-after-free dereference occurs as the kernel reads from freed skb memory, most likely producing a kernel panic and system crash. No public POC exists, and reliable exploitation beyond denial-of-service would require additional memory-reuse primitives that are not evident from the available description.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Aug 04, 2026

Use-after-free memory corruption in the Linux kernel CAN subsystem's can_restart() function allows an attacker with adjacent CAN bus access to trigger kernel memory corruption via a post-free dereference of socket buffer memory. Affected are Linux kernel versions across multiple stable branches through 5.11-rc4, confirmed by seven upstream patch commits and three SUSE enterprise security advisories issued in May 2025. No active exploitation has been confirmed - the vulnerability is absent from CISA KEV, EPSS is 0.06% (20th percentile), and no public POC is known - making this primarily a kernel stability risk rather than an active threat.

Earlier versions of this analysis (1)
v1 Mar 28, 2026 - 18:37 CVSS 7.8

RemediationAI

Apply the upstream kernel patches backported to multiple stable branches via commits 03f16c507, 08ab95178, 260925a0b, 593c072b7, 92668d28c, ac48ef158, and bbc6847b9 (full URLs available at https://git.kernel.org/stable/). SUSE enterprise users should apply SUSE-SU-2025:01600, SUSE-SU-2025:01633, or SUSE-SU-2025:1574 as appropriate for their distribution release. Exact fixed upstream kernel release version numbers were not independently confirmed from available data - consult your Linux distribution's errata or kernel changelog for specific patched package versions. As a compensating control where immediate patching is not feasible, unloading CAN kernel modules (rmmod can_dev; rmmod can) will prevent the vulnerable code path from executing, at the cost of disabling all CAN interface functionality. Restricting physical access to CAN bus interfaces (e.g., OBD-II ports, industrial fieldbus connectors) and segmenting CAN networks reduces the adjacent-network attack surface.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in the CAN (Controller Area Network) subsystem driver core within the can_restart() function, which executes on a deferred workqueue when a CAN interface recovers from a bus-off condition. During restart, the function allocates a socket buffer (skb), constructs a CAN error frame using a can_frame pointer cf that aliases the skb's data region, and then transfers ownership of the skb to the network stack via netif_rx_ni(skb). This call may immediately free or reassign the skb's memory; however, the code subsequently reads cf->len to update receive byte statistics (stats->rx_bytes += cf->len), constituting a CWE-416 use-after-free. CPE data identifies the vulnerable component as cpe:2.3:o:linux:linux_kernel:* across multiple stable branches, explicitly including 5.11-rc1 through 5.11-rc4. The fix is a trivial line reorder: capture cf->len before calling netif_rx_ni(), eliminating the post-transfer dereference.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 8.8 HIGH
AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 6.4 MEDIUM

AV:A for mandatory CAN bus adjacency; AC:H because bus-off triggering requires sustained error injection; C:L/I:L not H given a stats-path UAF read rather than a reliable write or data-exfil primitive; A:H for likely kernel panic.

3.1 AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H
4.0 AV:A/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
SUSE 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Red Hat 5.5 MEDIUM

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Adjacent
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Analysis Updated
Aug 04, 2026 - 10:39 vuln.today
v2 - CVSS changed
CVSS changed
Aug 04, 2026 - 10:23 NVD
7.8 (HIGH) 8.8 (HIGH)
Patch released
Mar 28, 2026 - 18:37 nvd
Patch available
CVE Published
Apr 17, 2025 - 18:15 nvd
HIGH 7.8

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

can: dev: can_restart: fix use after free bug

After calling netif_rx_ni(skb), dereferencing skb is unsafe. Especially, the can_frame cf which aliases skb memory is accessed after the netif_rx_ni() in: stats->rx_bytes += cf->len;

Reordering the lines solves the issue.

Executive ViewAI

Why It Matters

A use-after-free vulnerability in the Linux kernel CAN subsystem (CVSS 8.8) affects systems using vulnerable kernel versions through 5.11-rc4, creating a kernel stability and potential denial-of-service risk for organizations deploying CAN-based network infrastructure in automotive and industrial environments. No active exploitation has been confirmed; however, the high severity rating and confirmed patch availability warrant prompt assessment and patching of systems in critical environments.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 80% exploitable
Prevalence
Ubiquitous
Linux kernel runs in the vast majority of server, embedded, and IoT deployments worldwide
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Controlled
Automatable· derived
No
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.11:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.11:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.11:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.11:rc4:*:*:*:*:*:*

Vendor StatusVendor

SUSE

Severity: High
Product Status
Container suse/sle-micro-rancher/5.2:latest Image SLES15-SP3-Micro-5-2-BYOS-Azure Image SLES15-SP3-Micro-5-2-BYOS-EC2-HVM Image SLES15-SP3-Micro-5-2-BYOS-GCE Affected
Image SLES12-SP5-Azure-BYOS Image SLES12-SP5-Azure-HPC-BYOS Image SLES12-SP5-EC2-BYOS Image SLES12-SP5-EC2-ECS-On-Demand Image SLES12-SP5-EC2-On-Demand Image SLES12-SP5-GCE-BYOS Image SLES12-SP5-GCE-On-Demand Affected
Image SLES12-SP5-Azure-SAP-BYOS Image SLES12-SP5-Azure-SAP-On-Demand Image SLES12-SP5-EC2-SAP-BYOS Image SLES12-SP5-EC2-SAP-On-Demand Image SLES12-SP5-GCE-SAP-BYOS Image SLES12-SP5-GCE-SAP-On-Demand Image SLES12-SP5-SAP-Azure-LI-BYOS-Production Image SLES12-SP5-SAP-Azure-VLI-BYOS-Production Affected
Image SLES15-SP3-SAP-Azure-LI-BYOS-Production Image SLES15-SP3-SAP-Azure-VLI-BYOS-Production Affected
SUSE Enterprise Storage 7.1 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy