CVE-2021-47017·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: ath10k: Fix a use after free in ath10k_htc_send_bundle In ath10k_htc_send_bundle, the bundle_skb could be freed by dev_kfree_skb_any(bundle_skb). But the bundle_skb is used later by bundle_skb->len. As skb_len = bundle_skb->len, my patch replaces bundle_skb->len to skb_len after the bundle_skb was freed.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.12.4
- Published
- 2024-02-28
Affected versions
From: 5.12
Until: 5.12.4
Fixed in: 5.12.4
How to fix this CVE
Update your Linux kernel to version 5.12.4 or later to patch a use-after-free vulnerability in the ath10k WiFi driver's bundle transmission function. This memory safety issue could be triggered by a local attacker with limited privileges, potentially leading to privilege escalation or system crashes. Apply kernel updates immediately through your distribution's package manager.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version by running `uname -r` and verify if it falls between 5.12 and 5.12.3
- Step 2: Verify ath10k WiFi driver is loaded by running `lsmod | grep ath10k` - if output is empty, this vulnerability does not affect your system
- Step 3: Search system logs for ath10k-related crashes with `grep -i 'ath10k\|use.*after.*free' /var/log/kern.log /var/log/syslog`
- Step 4: After applying the kernel update, reboot and confirm new version with `uname -r` to ensure you're running 5.12.4 or later
FAQ
What is CVE-2021-47017?
A use-after-free vulnerability in the Linux kernel's ath10k WiFi driver bundle transmission code where a memory buffer is freed prematurely but then accessed again, potentially allowing local privilege escalation.
Is CVE-2021-47017 being actively exploited?
No, there is no evidence of active exploitation or publicly available exploits for this vulnerability at this time.
What versions of Kernel are affected by CVE-2021-47017?
Linux kernel versions 5.12 through 5.12.3 are vulnerable; version 5.12.4 and later contain the fix.
How do I check if my server is vulnerable to CVE-2021-47017?
Run `uname -r` to check your kernel version and `lsmod | grep ath10k` to confirm the ath10k driver is present. If your kernel version is between 5.12 and 5.12.3 and ath10k is loaded, your system is vulnerable.
Does Defensia detect CVE-2021-47017?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2021-47017 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/3b1ac40c6012140828caa79e592a438a18ebf71b
- https://git.kernel.org/stable/c/5e413c0831ff4700d1739db3fa3ae9f859744676
- https://git.kernel.org/stable/c/8392df5d7e0b6a7d21440da1fc259f9938f4dec3
- https://git.kernel.org/stable/c/8bb054fb336f4250002fff4e0b075221c05c3c65
- https://git.kernel.org/stable/c/3b1ac40c6012140828caa79e592a438a18ebf71b
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2021-47017. Free for 1 server.
Get started free