CVE-2021-47372
net: macb: fix use after free on rmmod
Check your servers for CVE-2021-47372
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-47372 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:
net: macb: fix use after free on rmmod
plat_dev->dev->platform_data is released by platform_device_unregister(), use of pclk and hclk is a use-after-free. Since device unregister won't need a clk device we adjust the function call sequence to fix this issue.
[ 31.261225] BUG: KASAN: use-after-free in macb_remove+0x77/0xc6 [macb_pci] [ 31.275563] Freed by task 306: [ 30.276782] platform_device_release+0x25/0x80
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, 10 Sep 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
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 83a77e9ec4150ee4acc635638f7dedd9da523a26, before a7d521cc726f30b8e679a6f36d04b18a8ab3c536 affected from 83a77e9ec4150ee4acc635638f7dedd9da523a26, before 46670fb832ee80943715df618632ca13c2e96f2b affected from 83a77e9ec4150ee4acc635638f7dedd9da523a26, before 1da750d1e2140ef43d64d17f301ff6f41b45541e affected from 83a77e9ec4150ee4acc635638f7dedd9da523a26, before 7721221e87d25c9840d9ca6b986dbdc410d5ce2b affected from 83a77e9ec4150ee4acc635638f7dedd9da523a26, before 4ad6f2d23b0f6ac0d3e5f3102a4256d1c86c90f5 affected from 83a77e9ec4150ee4acc635638f7dedd9da523a26, before d82d5303c4c539db86588ffb5dc5b26c3f1513e8
Other versions: unaffected
|
| Linux |
affected 4.10 unaffected before 4.10 unaffected from 4.14.249 up to and including 4.14.* unaffected from 4.19.209 up to and including 4.19.* unaffected from 5.4.150 up to and including 5.4.* unaffected from 5.10.70 up to and including 5.10.* unaffected from 5.14.9 up to and including 5.14.* unaffected 5.15 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-47372 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47372
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-47372
trivy image --scanners vuln IMAGE | grep CVE-2021-47372
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/a7d521cc726f30b8e679a6f36d04b18a8ab3c536 git.kernel.org
- https://git.kernel.org/stable/c/46670fb832ee80943715df618632ca13c2e96f2b git.kernel.org
- https://git.kernel.org/stable/c/1da750d1e2140ef43d64d17f301ff6f41b45541e git.kernel.org
- https://git.kernel.org/stable/c/7721221e87d25c9840d9ca6b986dbdc410d5ce2b git.kernel.org
- https://git.kernel.org/stable/c/4ad6f2d23b0f6ac0d3e5f3102a4256d1c86c90f5 git.kernel.org
- https://git.kernel.org/stable/c/d82d5303c4c539db86588ffb5dc5b26c3f1513e8 git.kernel.org
Source: the record CVE-2021-47372 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