CVE-2021-47260·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: NFS: Fix a potential NULL dereference in nfs_get_client() None of the callers are expecting NULL returns from nfs_get_client() so this code will lead to an Oops. It's better to return an error pointer. I expect that this is dead code so hopefully no one is affected.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 5.12.11
- Published
- 2024-05-21
Affected versions
From: 5.11
Until: 5.12.11
Fixed in: 5.12.11
How to fix this CVE
Update your Linux kernel to version 5.12.11 or later to resolve a potential NULL pointer dereference in the NFS client code path. This issue could cause system crashes (kernel oops) under specific NFS mounting conditions. Apply the patch immediately if you are running kernel versions 5.11 through 5.12.10.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check your current kernel version and verify if it falls within the vulnerable range (5.11.x to 5.12.10)
- Check if NFS is mounted on your system using 'mount | grep nfs' to determine if the vulnerable code path is in use
- Search kernel logs with 'dmesg | grep -i 'nfs\|NULL\|oops' to look for any crash indicators related to NFS client operations
- Confirm the patch by verifying the kernel version is 5.12.11 or later after applying updates with 'uname -r'
FAQ
What is CVE-2021-47260?
CVE-2021-47260 is a Linux kernel vulnerability where the nfs_get_client() function can return a NULL pointer, causing a kernel panic (oops) when callers do not properly validate the return value. This affects systems using NFS client functionality.
Is CVE-2021-47260 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog and has no public exploits available. However, it should still be patched to prevent system instability.
What versions of Kernel are affected by CVE-2021-47260?
Linux kernel versions 5.11 through 5.12.10 are affected. Version 5.12.11 and later contain the fix.
How do I check if my server is vulnerable to CVE-2021-47260?
Run 'uname -r' to display your kernel version. If the output shows a version between 5.11 and 5.12.10 (inclusive), your system is vulnerable. You can also check 'cat /proc/version' for additional kernel details.
Does Defensia detect CVE-2021-47260?
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-47260 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0057ecef9f324007c0ba5fcca4ddd131178ce78b
- https://git.kernel.org/stable/c/09226e8303beeec10f2ff844d2e46d1371dc58e0
- https://git.kernel.org/stable/c/279ad78a00f8b9c5ff24171a59297187a3bd44b7
- https://git.kernel.org/stable/c/4b380a7d84ef2ce3f4f5bec5d8706ed937ac6502
- https://git.kernel.org/stable/c/58ddf61f10b8f9b7b1341644bfee2f1c6508d4e1
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2021-47260. Free for 1 server.
Get started free