staging: rtl8712: fix use-after-free in rtl8712_dl_fw
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-416 and the CVSS impact.
Summary
In the Linux kernel, the following vulnerability has been resolved: staging: rtl8712: fix use-after-free in rtl8712_dl_fw Syzbot reported use-after-free in rtl8712_dl_fw(). The problem was in race condition between r871xu_dev_remove() ->ndo_open() callback. It's easy to see from crash log, that driver accesses released firmware in ->ndo_open() callback. It may happen, since driver was releasing firmware _before_ unregistering netdev. Fix it by moving unregister_netdev() before cleaning up resources. Call Trace: ... rtl871x_open_fw drivers/staging/rtl8712/hal_init.c:83 [inline] rtl8712_dl_fw+0xd95/0xe10 drivers/staging/rtl8712/hal_init.c:170 rtl8712_hal_init drivers/staging/rtl8712/hal_init.c:330 [inline] rtl871x_hal_init+0xae/0x180 drivers/staging/rtl8712/hal_init.c:394 netdev_open+0xe6/0x6c0 drivers/staging/rtl8712/os_intfs.c:380 __dev_open+0x2bc/0x4d0 net/core/dev.c:1484 Freed by task 1306: ... release_firmware+0x1b/0x30 drivers/base/firmware_loader/main.c:1053 r871xu_dev_remove+0xcc/0x2c0 drivers/staging/rtl8712/usb_intf.c:599 usb_unbind_interface+0x1d8/0x8d0 drivers/usb/core/driver.c:458
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 3.2.6 to before 3.3 | 3.3 | Patch available | CNA |
| Linux | Linux | 3.3 and later | 5.10.79, 5.14.18, 5.15.2, 5.16 | Patch available | CNA |
- Linux VendorLinux Affected 3.2.6 to before 3.3 Fixed in 3.3 Patch available CNA
- Linux VendorLinux Affected 3.3 and later Fixed in 5.10.79, 5.14.18, 5.15.2, 5.16 Patch available CNA
CPE configurations NVD · 6
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 3.2.6 to before 3.3; 3.3.1 to before 5.10.79; 5.11 to before 5.14.18; 5.15 to before 5.15.2 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:3.3:-:*:*:*:*:*:* | 3.3 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:3.3:rc4:*:*:*:*:*:* | 3.3 rc4 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:3.3:rc5:*:*:*:*:*:* | 3.3 rc5 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:3.3:rc6:*:*:*:*:*:* | 3.3 rc6 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:3.3:rc7:*:*:*:*:*:* | 3.3 rc7 | Vulnerable | Linux |
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions 3.2.6 to before 3.3; 3.3.1 to before 5.10.79; 5.11 to before 5.14.18; 5.15 to before 5.15.2 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:3.3:-:*:*:*:*:*:* Versions 3.3 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:3.3:rc4:*:*:*:*:*:* Versions 3.3 rc4 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:3.3:rc5:*:*:*:*:*:* Versions 3.3 rc5 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:3.3:rc6:*:*:*:*:*:* Versions 3.3 rc6 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:3.3:rc7:*:*:*:*:*:* Versions 3.3 rc7 Vulnerable ·Linux
Remediation
- Fix · CNA Linux (Linux) Fixed in 3.3
- Fix · CNA Linux (Linux) Fixed in 5.10.79, 5.14.18, 5.15.2, 5.16
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
Not affected: 3 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Timeline
- 2026-10-02 Threatist record created from CVE-2021-47479
- 2026-10-03 Alias added: GHSA-r7gr-mhrj-m5wq
References
More Linux Kernel vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
- TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
Sources
- CVE-2021-47479 · CVE Program
- CVE-2021-47479 · NVD
- FIRST EPSS
- GHSA-r7gr-mhrj-m5wq · GitHub Advisory Database · CC BY 4.0
- CVE-2021-47479 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences