CVE-2022-49362·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: NFSD: Fix potential use-after-free in nfsd_file_put() nfsd_file_put_noref() can free @nf, so don't dereference @nf immediately upon return from nfsd_file_put_noref().
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.18.4
- Published
- 2025-02-26
Affected versions
From: 5.18
Until: 5.18.4
Fixed in: 5.18.4
How to fix this CVE
Update your Linux kernel to version 5.18.4 or later to resolve a use-after-free vulnerability in the NFSD (NFS Daemon) file handling subsystem. This flaw could allow local authenticated users to trigger memory corruption and potentially escalate privileges. Prioritize this patch for systems running kernel versions 5.18.0 through 5.18.3, especially those exposing NFS services.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check installed kernel version: uname -r | grep -E '^5\.18\.[0-3]' && echo 'VULNERABLE' || echo 'PATCHED'
- Verify NFSD is loaded: lsmod | grep nfsd && echo 'NFSD active' || echo 'NFSD not loaded'
- Monitor for crash logs related to nfsd_file operations: grep -i 'nfsd_file\|use.after.free\|kernel.*oops' /var/log/kern.log
- After patching, confirm kernel version: uname -r should show 5.18.4 or higher
FAQ
What is CVE-2022-49362?
This is a use-after-free vulnerability in the Linux kernel's NFSD (Network File System Daemon) subsystem that occurs when the nfsd_file_put_noref() function frees memory but the calling function attempts to dereference the freed pointer. This can lead to kernel memory corruption and privilege escalation.
Is CVE-2022-49362 being actively exploited?
No, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are currently available. However, it remains a high-severity local privilege escalation risk that should be patched promptly.
What versions of Kernel are affected by CVE-2022-49362?
Linux kernel versions 5.18.0 through 5.18.3 are vulnerable. Version 5.18.4 and later contain the fix.
How do I check if my server is vulnerable to CVE-2022-49362?
Run `uname -r` and check if the output matches 5.18.[0-3]. If it does, and NFSD is in use (verify with `lsmod | grep nfsd`), your system is vulnerable.
Does Defensia detect CVE-2022-49362?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2022-49362 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-2022-49362. Free for 1 server.
Get started free