CVE-2021-47521

can: sja1000: fix use after free in ems_pcmcia_add_card()

HIGH
7.8
CVSS Score
Published: May 24, 2024 at 03:09 PM UTC
Updated: June 17, 2026 at 04:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: can: sja1000: fix use after free in ems_pcmcia_add_card() If the last channel is not available then "dev" is freed. Fortunately, we can just use "pdev->irq" instead. Also we should check if at least one channel was set up.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.2 ≤ v < 4.14.2583.2 ≤ v < 4.19.2213.2 ≤ v < 4.4.2953.2 ≤ v < 4.9.2933.2 ≤ v < 5.10.853.2 ≤ v < 5.15.83.2 ≤ v < 5.163.2 ≤ v < 5.4.1654.10 ≤ v < 4.14.2584.15 ≤ v < 4.19.2214.20 ≤ v < 5.4.1654.5 ≤ v < 4.9.2935.11 ≤ v < 5.15.85.5 ≤ v < 5.10.853.2fd734c6f25aea4b2b44b045e489aec67b388577e
Vendor states this is fixed in 1a295fea90e1acbe80c6d4940f5ff856edcd6bec (fixed)
Vendor states this is fixed in 1dd5b819f7e406dc15bbc7670596ff25261aaa2a (fixed)
Vendor states this is fixed in 3ec6ca6b1a8e64389f0212b5a1b0f6fed1909e45 (fixed)
Vendor states this is fixed in 474f9a8534f5f89841240a7e978bafd6e1e039ce (fixed)
Vendor states this is fixed in 923f4dc5df679f678e121c20bf2fd70f7bf3e288 (fixed)
Vendor states this is fixed in c8718026ba287168ff9ad0ccc4f9a413062cba36 (fixed)
Vendor states this is fixed in cbd86110546f7f730a1f5d7de56c944a336c15c4 (fixed)
Vendor states this is fixed in ccf070183e4655824936c0f96c4a2bcca93419aa (fixed)
Vendor states this is fixed in 3.2 (unaffected)
Vendor states this is fixed in 4.14.258 (unaffected)
Vendor states this is fixed in 4.19.221 (unaffected)
Vendor states this is fixed in 4.4.295 (unaffected)
Vendor states this is fixed in 4.9.293 (unaffected)
Vendor states this is fixed in 5.10.85 (unaffected)
Vendor states this is fixed in 5.15.8 (unaffected)
Vendor states this is fixed in 5.16 (unaffected)
Vendor states this is fixed in 5.4.165 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1a295fea90e1acbe80c6d4940f5ff856edcd6bec
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1dd5b819f7e406dc15bbc7670596ff25261aaa2a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3ec6ca6b1a8e64389f0212b5a1b0f6fed1909e45
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/474f9a8534f5f89841240a7e978bafd6e1e039ce
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/923f4dc5df679f678e121c20bf2fd70f7bf3e288
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c8718026ba287168ff9ad0ccc4f9a413062cba36
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cbd86110546f7f730a1f5d7de56c944a336c15c4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ccf070183e4655824936c0f96c4a2bcca93419aa

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card