CVE-2021-47521
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2021-47521 is a use-after-free vulnerability discovered in the Linux kernel's CAN (Controller Area Network) subsystem, specifically in the ems_pcmcia_add_card() function of the SJA1000 driver. The vulnerability was disclosed on May 24, 2024, affecting multiple versions of the Linux kernel from version 3.2 through various 6.x releases (NVD).

Technical details

The vulnerability occurs in the Linux kernel's CAN SJA1000 driver when handling PCMCIA cards. The issue arises when the last channel is not available, causing the 'dev' object to be freed while still being referenced. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, indicating local access requirements with potential for high impact on confidentiality, integrity, and availability (NVD).

Impact

The vulnerability could lead to use-after-free conditions in the Linux kernel's CAN subsystem, potentially resulting in system crashes, information disclosure, or privilege escalation. The high CVSS score indicates serious potential consequences if exploited (Red Hat).

Exploitability

The vulnerability requires local access with low attack complexity and low privileges to exploit. No user interaction is needed for exploitation, though the attacker must have local access to the system (NVD).

Mitigation and workarounds

A fix has been implemented by modifying the ems_pcmcia_add_card() function to use 'pdev->irq' instead of the freed 'dev->irq' and adding a check to ensure at least one channel is set up before proceeding. The fix has been incorporated into various Linux kernel versions through patches (Kernel Patch).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-80913NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel6.12
NoYesSep 04, 2026
CVE-2026-80905NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel
NoYesSep 04, 2026
CVE-2026-80898NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel6.18
NoYesSep 04, 2026
CVE-2026-80897NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesSep 04, 2026
CVE-2026-80892NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesSep 04, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management