
Cloud Vulnerability DB
A community-led vulnerabilities database
In the Linux kernel, a use-after-free vulnerability was discovered in the rtl8712_dl_fw() function. The issue stems from a race condition between r871xu_dev_remove() and the ndo_open() callback. The vulnerability was reported by Syzbot and is tracked as CVE-2021-47479. The bug occurs because the driver accesses released firmware in the ndo_open() callback, which is possible because the driver was releasing firmware before unregistering the network device (Kernel Git).
The vulnerability manifests in the staging driver for RTL8712 when the driver attempts to access firmware that has already been released. The issue occurs due to incorrect ordering of operations in the r871xu_dev_remove() function, where firmware is released before unregistering the network device. This creates a race condition where the ndo_open() callback can still attempt to access the released firmware. The problem was traced to the firmware loading mechanism implemented in commit 8c213fa59199 'staging: r8712u: Use asynchronous firmware loading' (Kernel Git).
When exploited, this vulnerability can lead to a use-after-free condition in the kernel, potentially causing system crashes or memory corruption. The issue affects systems running the Linux kernel with the RTL8712 driver loaded (NVD).
The vulnerability can be triggered during device removal operations when there is concurrent access to the firmware through the network device operations. The issue has been demonstrated through a reproducible crash sequence involving the rtl8712_dl_fw() function (Kernel Git).
The issue has been fixed by reordering the operations in r871xu_dev_remove() to ensure the network device is unregistered before releasing the firmware. The fix moves the unregister_netdev() call before the resource cleanup operations (Kernel Git).
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."