LiveActive security incident?Get immediate response
CVE Record

CVE-2021-47519: can: m_can: m_can_read_fifo: fix memory leak in error branch

In the Linux kernel, the following vulnerability has been resolved: can: m_can: m_can_read_fifo: fix memory leak in error branch In m_can_read_fifo(), if the second call to m_can_fifo_read() fails, the function jump to the out_fail label and returns without calling m_can_receive_skb(). This means that the skb previously allocated by alloc_can_skb() is not freed. In other terms, this is a memory leak. This patch adds a goto label to destroy the skb if an error occurs. Issue was found with GCC -fanalyzer, please follow the link below for details.

HighCVSS 7.5Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

This Linux kernel issue leaks memory in the m_can CAN driver when a FIFO read error path is hit. The reported impact is availability only: repeated failures could consume memory and degrade or crash affected systems. It matters most for Linux deployments using CAN hardware or the m_can driver.

Executive priority

Treat as high priority for embedded, automotive, industrial, or appliance Linux systems using CAN. For general servers without CAN or the m_can driver, urgency is lower but should still follow normal kernel patching cadence.

Technical view

CVE-2021-47519 is a CWE-401 memory leak in m_can_read_fifo(). If a second m_can_fifo_read() call fails, the function exits without freeing the skb allocated by alloc_can_skb(). The fix adds cleanup logic to destroy the skb on that error path.

Likely exposure

Exposure appears limited to Linux kernels in the affected 5.15/5.16-era ranges that include and use the m_can CAN driver. The source bundle does not show impact for systems without this driver or CAN functionality enabled.

Exploitation context

CISA KEV status is false in the provided bundle, and no cited source states active exploitation. The CVSS vector rates this as network-accessible, low-complexity, unauthenticated, and availability-impacting, but the sources do not provide exploit details.

Researcher notes

The source evidence is concise: it identifies a missing skb free on an error branch and references stable kernel commits. It does not establish a practical exploit path, affected distributions, or active attacks, so validation should focus on kernel version and driver presence.

Mitigation direction

  • Apply Linux vendor kernel updates containing the referenced stable fixes.
  • Prioritize systems using CAN hardware or the m_can driver.
  • Check distribution advisories for fixed kernel package versions.
  • Reboot into the updated kernel after patching where required.
  • If patching is delayed, review vendor guidance for driver-specific risk reduction.

Validation and detection

  • Inventory running kernel versions across Linux assets.
  • Check whether the m_can driver is enabled, built, or loaded.
  • Verify the kernel includes fix commit 75a422165477dd12d2d20aa7c9ee7c9a281c9908 or equivalent.
  • Verify the kernel includes fix commit 31cb32a590d62b18f69a9a6d433f4e69c74fdd56 or equivalent.
  • Review monitoring for unexplained memory pressure on CAN-enabled systems.
Prepared
Confidence
medium
Sources
4

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-401: 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-47519 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.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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
2ADP providers
3Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: yesTechnical Impact: partial

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.5CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H3.93.6CISA-ADP

Vulnerability scoring details

Base CVSS 3.1 score

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

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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
CVECVE Program Container
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinuxe39381770ec9ca3c51d8b9bd9cc6e01d78ea974a, e39381770ec9ca3c51d8b9bd9cc6e01d78ea974aunaffected
LinuxLinux5.15, 0, 5.15.8, 5.16affected
Weakness

CWE details

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

CWE-401 · source CWE mapping

Missing Release of Memory after Effective Lifetime

Missing Release of Memory after Effective Lifetime represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.