
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2021-47372 is a use-after-free vulnerability discovered in the Linux kernel's network driver component, specifically in the MACB (Microchip/Atmel MAC-Bus) PCI driver. The vulnerability was identified and resolved in 2021, affecting multiple versions of the Linux kernel up to versions 4.14.249, 4.19.209, 5.4.150, 5.10.70, and 5.14.9 (NVD).
The vulnerability occurs in the macb_remove function of the MACB PCI driver when unregistering the platform device. The issue arises because plat_dev->dev->platform_data is released by platform_device_unregister(), but the subsequent use of pclk and hclk results in a use-after-free condition. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).
The use-after-free vulnerability could potentially lead to memory corruption, system crashes, or privilege escalation in affected Linux systems. The high CVSS score indicates that successful exploitation could result in complete compromise of system confidentiality, integrity, and availability (NVD).
The vulnerability requires local access and low privileges to exploit. A proof-of-concept exists in the form of a kernel crash log showing the use-after-free condition: 'BUG: KASAN: use-after-free in macb_remove+0x77/0xc6 [macb_pci]' (Kernel Patch).
The vulnerability has been fixed by adjusting the function call sequence in the macb_remove function. The fix involves moving the platform_device_unregister(plat_dev) call after the clk_unregister calls for pclk and hclk, as device unregistration doesn't require the clock device (Kernel Patch).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."