CVE-2021-47372

published 21 May 2024 · updated 11 May 2026

net: macb: fix use after free on rmmod

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 1da750d1e2140ef43d64d17f301ff6f41b45541e, Kernel 46670fb832ee80943715df618632ca13c2e96f2b, Kernel 4ad6f2d23b0f6ac0d3e5f3102a4256d1c86c90f5 and 3 more.

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

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=4.10, >=83a77e9ec4150ee4acc635638f7dedd9da523a26 <1da750d1e2140ef43d64d17f301ff6f41b45541e, >=83a77e9ec4150ee4acc635638f7dedd9da523a26 <46670fb832ee80943715df618632ca13c2e96f2b, >=83a77e9ec4150ee4acc635638f7dedd9da523a26 <4ad6f2d23b0f6ac0d3e5f3102a4256d1c86c90f5, >=83a77e9ec4150ee4acc635638f7dedd9da523a26 <7721221e87d25c9840d9ca6b986dbdc410d5ce2b, >=83a77e9ec4150ee4acc635638f7dedd9da523a26 <a7d521cc726f30b8e679a6f36d04b18a8ab3c536, >=83a77e9ec4150ee4acc635638f7dedd9da523a26 <d82d5303c4c539db86588ffb5dc5b26c3f1513e81da750d1e2140ef43d64d17f301ff6f41b45541e, 46670fb832ee80943715df618632ca13c2e96f2b, 4ad6f2d23b0f6ac0d3e5f3102a4256d1c86c90f5, 7721221e87d25c9840d9ca6b986dbdc410d5ce2b, a7d521cc726f30b8e679a6f36d04b18a8ab3c536, d82d5303c4c539db86588ffb5dc5b26c3f1513e8

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-47372 severity on Zeptric[![CVE-2021-47372](https://zeptric.io/badge/cve/CVE-2021-47372.svg)](https://zeptric.io/cve/CVE-2021-47372)