CVE-2024-50043·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: nfsd: fix possible badness in FREE_STATEID When multiple FREE_STATEIDs are sent for the same delegation stateid, it can lead to a possible either use-after-free or counter refcount underflow errors. In nfsd4_free_stateid() under the client lock we find a delegation stateid, however the code drops the lock before calling nfs4_put_stid(), that allows another FREE_STATE to find the stateid again. The first one will proceed to then free the stateid which leads to either use-after-free or decrementing already zeroed counter.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.11.4
- Published
- 2024-10-21
Affected versions
From: 6.9
Until: 6.11.4
Fixed in: 6.11.4
How to fix this CVE
Update your Linux kernel to version 6.11.4 or later to patch a race condition in the NFSv4 FREE_STATEID handler that can cause use-after-free or reference counting errors. This vulnerability affects kernel versions 6.9 through 6.11.3 and requires a kernel upgrade and system reboot to fully remediate.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check the currently running kernel version and verify if it is between 6.9 and 6.11.3
- Check NFSv4 server configuration by running 'ps aux | grep nfsd' to confirm if the NFS daemon is actively running on the system
- Search system logs for FREE_STATEID errors using 'sudo grep -i 'stateid\|free_stateid' /var/log/kernel.log /var/log/syslog 2>/dev/null | grep -i 'error\|warning\|use-after-free\|refcount'
- After patching, run 'uname -r' again to confirm the kernel has been updated to 6.11.4 or later, and verify the system has been rebooted with 'uptime'
FAQ
What is CVE-2024-50043?
CVE-2024-50043 is a race condition in the Linux kernel's NFSv4 FREE_STATEID implementation where concurrent FREE_STATEID requests for the same delegation stateid can trigger use-after-free or reference count underflow errors due to improper lock management.
Is CVE-2024-50043 being actively exploited?
No, CVE-2024-50043 is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are currently available.
What versions of Kernel are affected by CVE-2024-50043?
Linux kernel versions 6.9 through 6.11.3 are vulnerable; version 6.11.4 and later contain the fix.
How do I check if my server is vulnerable to CVE-2024-50043?
Run 'uname -r' and compare your kernel version to the range 6.9–6.11.3; if your version falls within this range, your system is vulnerable.
Does Defensia detect CVE-2024-50043?
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-2024-50043 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-50043. Free for 1 server.
Get started free