CVE-2024-36958·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: NFSD: Fix nfsd4_encode_fattr4() crasher Ensure that args.acl is initialized early. It is used in an unconditional call to kfree() on the way out of nfsd4_encode_fattr4().
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.8.10
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 9% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 6.7
Until: 6.8.10
Fixed in: 6.8.10
How to fix this CVE
Update your Linux kernel to version 6.8.10 or later to resolve a memory management issue in the NFSD (Network File System Daemon) subsystem that can cause a kernel crash. Systems running kernel versions 6.7 through 6.8.9 should prioritize this update, as the vulnerability affects file attribute encoding operations used by NFS exports. Apply the patch through your distribution's standard kernel update mechanism and reboot to activate the fix.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version with `uname -r` — vulnerable if output shows 6.7.x through 6.8.9
- Step 2: Confirm NFSD is active by running `systemctl status nfs-server` or checking if exports are defined in `/etc/exports`
- Step 3: Search kernel logs for crash indicators with `dmesg | grep -i 'nfsd\|fattr\|kfree\|oops'` or `journalctl -k | grep -i nfsd`
- Step 4: After patching, verify the new kernel version with `uname -r` and confirm it shows 6.8.10 or later; reboot if needed
FAQ
What is CVE-2024-36958?
This vulnerability is a kernel crash (denial of service) in NFSD's file attribute encoding function caused by improper initialization of a memory pointer. When NFS clients request file attributes, the uninitialized pointer is freed unconditionally, triggering a kernel panic.
Is CVE-2024-36958 being actively exploited?
No, this vulnerability is not listed on the CISA Known Exploited Vulnerabilities catalog and has no public exploit code available. However, any NFS client with network access to an affected server can trigger the crash.
What versions of Kernel are affected by CVE-2024-36958?
Linux kernel versions 6.7.0 through 6.8.9 are affected. The fix is included in kernel 6.8.10 and later releases.
How do I check if my server is vulnerable to CVE-2024-36958?
Run `uname -r` and check if the output falls within 6.7.x to 6.8.9 range. Additionally, verify NFSD is running with `systemctl is-active nfs-server` — only systems with NFS enabled are at risk.
Does Defensia detect CVE-2024-36958?
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-36958 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/18180a4550d08be4eb0387fe83f02f703f92d4e7
- https://git.kernel.org/stable/c/6a7b07689af6e4e023404bf69b1230f43b2a15bc
- https://git.kernel.org/stable/c/18180a4550d08be4eb0387fe83f02f703f92d4e7
- https://git.kernel.org/stable/c/6a7b07689af6e4e023404bf69b1230f43b2a15bc
- https://security.netapp.com/advisory/ntap-20250404-0007/
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-36958. Free for 1 server.
Get started free