LiveActive security incident?Get immediate response
CVE Record

CVE-2021-47668: can: dev: can_restart: fix use after free bug

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.

HighCVSS 7.8Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

This is a Linux kernel use-after-free in CAN network device restart handling. A local user could potentially cause serious confidentiality, integrity, or availability impact on affected systems. The business concern is highest for Linux systems using CAN, such as embedded, automotive, industrial, or lab environments.

Executive priority

Treat as high priority where Linux systems use CAN or allow untrusted local users. For general servers without CAN exposure, validate applicability first, then patch through normal kernel security maintenance.

Technical view

The flaw is in can_restart. After netif_rx_ni(skb), the skb memory may no longer be safe to dereference, but the code still reads the aliased can_frame length for rx_bytes. The fix reorders accounting before handing off the skb.

Likely exposure

Exposure appears limited to affected Linux kernels where the CAN networking subsystem is present and reachable by a local authenticated user. The source bundle lists Linux kernel versions and stable fix commits, but affected-range detail is not fully normalized here.

Exploitation context

The CVSS vector is local, low complexity, low privilege, no user interaction, with high confidentiality, integrity, and availability impact. The source bundle says KEV is false and provides no evidence of active exploitation.

Researcher notes

The root issue is a lifetime bug: cf aliases skb memory after netif_rx_ni(skb). Avoid inferring remote exploitability; the provided vector is local. The listed version data is hard to interpret, so verify against kernel stable commits and distribution backports.

Mitigation direction

  • Apply vendor or distribution kernel updates that include the referenced stable fixes.
  • Prioritize CAN-enabled embedded, automotive, industrial, and multi-user Linux systems.
  • Restrict local shell access and CAN interface access until patched.
  • Check vendor guidance for exact affected kernel package mappings.

Validation and detection

  • Inventory Linux kernel versions across servers, images, appliances, and embedded devices.
  • Identify hosts with CAN networking support enabled or CAN hardware attached.
  • Confirm whether installed vendor kernels include the can_restart use-after-free fix.
  • Track remediation through distribution security advisories and kernel package changelogs.
Prepared
Confidence
medium
Sources
9

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-416: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-47668 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
3Timeline events
1ADP providers
8Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.8CVSS 3.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H1.85.9CISA-ADP

Vulnerability scoring details

Base CVSS 3.1 score

7.8High
CVSS 3.1 vector shape for CVE-2021-47668Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
cvssV3_1other:ssvc
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinux39549eef3587f1c1e8c65c88a2400d10fd30ea17, 39549eef3587f1c1e8c65c88a2400d10fd30ea17, 39549eef3587f1c1e8c65c88a2400d10fd30ea17, 39549eef3587f1c1e8c65c88a2400d10fd30ea17, 39549eef3587f1c1e8c65c88a2400d10fd30ea17, 39549eef3587f1c1e8c65c88a2400d10fd30ea17, 39549eef3587f1c1e8c65c88a2400d10fd30ea17unaffected
LinuxLinux2.6.31, 0, 4.4.254, 4.9.254, 4.14.218, 4.19.171, 5.4.93, 5.10.11, 5.11affected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-416 · source CWE mapping

Use After Free

Use After Free represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.