CVE-2021-47521
can: sja1000: fix use after free in ems_pcmcia_add_card()
Check your servers for CVE-2021-47521
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-47521 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.5% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 29 May 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from fd734c6f25aea4b2b44b045e489aec67b388577e, before cbd86110546f7f730a1f5d7de56c944a336c15c4 affected from fd734c6f25aea4b2b44b045e489aec67b388577e, before 1dd5b819f7e406dc15bbc7670596ff25261aaa2a affected from fd734c6f25aea4b2b44b045e489aec67b388577e, before c8718026ba287168ff9ad0ccc4f9a413062cba36 affected from fd734c6f25aea4b2b44b045e489aec67b388577e, before ccf070183e4655824936c0f96c4a2bcca93419aa affected from fd734c6f25aea4b2b44b045e489aec67b388577e, before 1a295fea90e1acbe80c6d4940f5ff856edcd6bec affected from fd734c6f25aea4b2b44b045e489aec67b388577e, before 923f4dc5df679f678e121c20bf2fd70f7bf3e288 affected from fd734c6f25aea4b2b44b045e489aec67b388577e, before 474f9a8534f5f89841240a7e978bafd6e1e039ce affected from fd734c6f25aea4b2b44b045e489aec67b388577e, before 3ec6ca6b1a8e64389f0212b5a1b0f6fed1909e45
Other versions: unaffected
|
| Linux |
affected 3.2 unaffected before 3.2 unaffected from 4.4.295 up to and including 4.4.* unaffected from 4.9.293 up to and including 4.9.* unaffected from 4.14.258 up to and including 4.14.* unaffected from 4.19.221 up to and including 4.19.* unaffected from 5.4.165 up to and including 5.4.* unaffected from 5.10.85 up to and including 5.10.* unaffected from 5.15.8 up to and including 5.15.* unaffected 5.16 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2021-47521 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47521
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2021-47521
trivy image --scanners vuln IMAGE | grep CVE-2021-47521
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/cbd86110546f7f730a1f5d7de56c944a336c15c4 git.kernel.org
- https://git.kernel.org/stable/c/1dd5b819f7e406dc15bbc7670596ff25261aaa2a git.kernel.org
- https://git.kernel.org/stable/c/c8718026ba287168ff9ad0ccc4f9a413062cba36 git.kernel.org
- https://git.kernel.org/stable/c/ccf070183e4655824936c0f96c4a2bcca93419aa git.kernel.org
- https://git.kernel.org/stable/c/1a295fea90e1acbe80c6d4940f5ff856edcd6bec git.kernel.org
- https://git.kernel.org/stable/c/923f4dc5df679f678e121c20bf2fd70f7bf3e288 git.kernel.org
- https://git.kernel.org/stable/c/474f9a8534f5f89841240a7e978bafd6e1e039ce git.kernel.org
- https://git.kernel.org/stable/c/3ec6ca6b1a8e64389f0212b5a1b0f6fed1909e45 git.kernel.org
Source: the record CVE-2021-47521 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse