CVE-2021-47372 json
net: macb: fix use after free on rmmod
published 2024-05-21 2 y ago modified 2026-06-17 4 mo ago also EUVD-2021-34377
- cvss
- 7.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 15%
- public exploits
- 0
- none known
Summary
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
Patch / fix
- Linux Linux 4.14.249, 4.19.209, 5.4.150, 5.10.70, 5.14.9, 5.15
- linux Debian 14, Debian 13, Debian 12 5.14.9-1
debian advisories DEBIAN-CVE-2021-47372
- linux Ubuntu 18.04 LTS 4.15.0-163.171
- linux Ubuntu 20.04 LTS 5.4.0-91.102
- linux-aws Ubuntu 18.04 LTS 4.15.0-1116.123
- linux-aws Ubuntu 20.04 LTS 5.4.0-1060.63
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1058.62
- linux-ibm Ubuntu 20.04 LTS 5.4.0-1008.9
- linux-kvm Ubuntu 18.04 LTS 4.15.0-1103.105
- linux-kvm Ubuntu 20.04 LTS 5.4.0-1050.52
ubuntu advisories UBUNTU-CVE-2021-47372
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-syms SLES for SAP 12 SP5, SLES 12 SP5 4.12.14-122.222.1
- kernel-source SLES for SAP 12 SP5, SLES 12 SP5 4.12.14-122.222.1
- kernel-default SLES for SAP 12 SP5, SLES 12 SP5, SLE Workstation Extension 12 SP5 +2 more 4.12.14-122.222.1
- kernel-obs-build SLE Software Development Kit 12 SP5 4.12.14-122.222.1
- kernel-rt SLE Micro 5.2, SLE Micro 5.1 5.3.18-150300.175.1
- kernel-source-rt SLE Micro 5.2, SLE Micro 5.1 5.3.18-150300.175.1
- kernel-rt SLE Real Time 12 SP5 4.12.14-10.191.1
- kernel-syms-rt SLE Real Time 12 SP5 4.12.14-10.191.1
suse advisories SUSE-SU-2024:2561-1SUSE-SU-2024:2384-1SUSE-SU-2024:2381-1SUSE-SU-2024:2365-1SUSE-SU-2024:2362-1SUSE-SU-2024:2360-1
- git.kernel.org/stable/c/a7d521cc726f30b8e679a6f36d04b18a8ab3c536 commit
- git.kernel.org/stable/c/46670fb832ee80943715df618632ca13c2e96f2b commit
- git.kernel.org/stable/c/1da750d1e2140ef43d64d17f301ff6f41b45541e commit
- git.kernel.org/stable/c/7721221e87d25c9840d9ca6b986dbdc410d5ce2b commit
- git.kernel.org/stable/c/4ad6f2d23b0f6ac0d3e5f3102a4256d1c86c90f5 commit
- git.kernel.org/stable/c/d82d5303c4c539db86588ffb5dc5b26c3f1513e8 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-47372 updated cvss 4.4
kernel: net: macb: fix use after free on rmmod
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.24% chance of exploitation in the next 30 days, higher than 15% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-416 Use After Free
- Technology feeds
References
-
git.kernel.org
/stable/c/a7d521cc726f30b8e679a6f36d04b18a8ab3c536
patch
-
git.kernel.org
/stable/c/46670fb832ee80943715df618632ca13c2e96f2b
patch
-
git.kernel.org
/stable/c/1da750d1e2140ef43d64d17f301ff6f41b45541e
patch
-
git.kernel.org
/stable/c/7721221e87d25c9840d9ca6b986dbdc410d5ce2b
patch
-
git.kernel.org
/stable/c/4ad6f2d23b0f6ac0d3e5f3102a4256d1c86c90f5
patch
-
git.kernel.org
/stable/c/d82d5303c4c539db86588ffb5dc5b26c3f1513e8
patch
Sources
- CVE List CVE-2021-47372
- NVD CVE-2021-47372
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.