CVE-2021-46991·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: i40e: Fix use-after-free in i40e_client_subtask() Currently the call to i40e_client_del_instance frees the object pf->cinst, however pf->cinst->lan_info is being accessed after the free. Fix this by adding the missing return. Addresses-Coverity: ("Read from pointer after free")
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.12.5
- Published
- 2024-02-28
Affected versions
From: 5.12
Until: 5.12.5
Fixed in: 5.12.5
How to fix this CVE
Update your Linux kernel to version 5.12.5 or later to resolve this memory safety issue in the i40e driver. The vulnerability stems from accessing freed memory in the client subtask handler, which can lead to kernel crashes or undefined behavior. Administrators should prioritize patching systems running kernel versions 5.12 through 5.12.4.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with `uname -r` and compare against 5.12.5
- Step 2: Verify i40e driver presence with `lsmod | grep i40e` and confirm the system has Intel 40-Gigabit Ethernet devices via `lspci | grep i40e`
- Step 3: Search kernel logs for signs of memory corruption or crashes: `sudo journalctl -b | grep -i 'use.after.free\|UAF\|i40e.*error'` or `sudo dmesg | grep -i 'use.after.free\|i40e'`
- Step 4: After updating, reboot and confirm new kernel version with `uname -r`, then validate i40e driver loaded cleanly: `sudo dmesg | grep 'i40e driver'`
FAQ
What is CVE-2021-46991?
This vulnerability is a use-after-free flaw in the Linux i40e Ethernet driver's client subtask function. The code attempts to access client instance data after freeing it, potentially causing kernel memory corruption or system instability.
Is CVE-2021-46991 being actively exploited?
No, CVE-2021-46991 is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are available. However, it remains a high-severity memory safety issue that should be patched promptly.
What versions of Kernel are affected by CVE-2021-46991?
Linux kernel versions 5.12 through 5.12.4 are vulnerable. Kernel 5.12.5 and later contain the fix.
How do I check if my server is vulnerable to CVE-2021-46991?
Run `uname -r` to display your kernel version. If it shows 5.12 to 5.12.4, your system is vulnerable. Verify the i40e driver is in use with `lsmod | grep i40e`.
Does Defensia detect CVE-2021-46991?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2021-46991 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/1fd5d262e7442192ac7611ff1597a36c5b044323
- https://git.kernel.org/stable/c/38318f23a7ef86a8b1862e5e8078c4de121960c3
- https://git.kernel.org/stable/c/4ebc10aa7cd17fd9857dedac69600465c9dd16d1
- https://git.kernel.org/stable/c/829a713450b8fb127cbabfc1244c1d8179ec5107
- https://git.kernel.org/stable/c/c1322eaeb8af0d8985b5cc5fa759140fa0e57b84
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2021-46991. Free for 1 server.
Get started free