CVE-2022-49927
📋 TL;DR
This CVE describes a memory leak vulnerability in the Linux kernel's NFSv4 client implementation. When allocating slots for NFS operations fails, the kernel doesn't properly clean up previously allocated slots, leading to gradual memory exhaustion. This affects systems using NFSv4 mounts with the vulnerable kernel versions.
💻 Affected Systems
- Linux kernel
📦 What is this software?
Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →⚠️ Risk & Real-World Impact
Worst Case
Sustained exploitation could lead to kernel memory exhaustion, causing system instability, crashes, or denial of service on affected systems.
Likely Case
Gradual memory leak during NFS mount operations, potentially causing performance degradation or system instability over time.
If Mitigated
Minimal impact with proper monitoring and memory limits in place, though still represents a resource exhaustion risk.
🎯 Exploit Status
Exploitation requires triggering specific failure conditions during NFS slot allocation, making reliable exploitation non-trivial.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Multiple stable kernel versions with fixes (see git.kernel.org references)
Vendor Advisory: https://git.kernel.org/stable/c/24641993a7dce6b1628645f4e1d97ca06c9f765d
Restart Required: Yes
Instructions:
1. Update Linux kernel to patched version from your distribution's repositories. 2. Reboot system to load new kernel. 3. Verify kernel version after reboot.
🔧 Temporary Workarounds
Disable NFSv4 mounts
linuxUse NFSv3 instead of NFSv4 if possible, or avoid NFS mounts entirely
# Use nfsvers=3 in mount options
mount -t nfs -o nfsvers=3 server:/export /mnt
Limit NFS client usage
linuxRestrict systems from mounting NFS shares unless absolutely necessary
# Remove nfs-utils if not needed
apt remove nfs-common
yum remove nfs-utils
🧯 If You Can't Patch
- Implement strict memory monitoring and alerting for kernel memory usage
- Limit NFS mount operations and implement circuit breaker patterns for NFS client
🔍 How to Verify
Check if Vulnerable:
Check kernel version and compare against patched versions from kernel.org. Systems using NFSv4 mounts with vulnerable kernels are affected.
Check Version:
uname -r
Verify Fix Applied:
Verify kernel version after update matches patched version. Monitor for memory leaks during NFS operations.
📡 Detection & Monitoring
Log Indicators:
- Kernel oom-killer messages
- System instability during NFS operations
- Increasing kernel memory usage in /proc/meminfo
Network Indicators:
- Failed NFS mount attempts followed by system issues
SIEM Query:
source="kernel" AND ("oom-killer" OR "slab allocation failure" OR "nfs4")
🔗 References
- https://git.kernel.org/stable/c/24641993a7dce6b1628645f4e1d97ca06c9f765d
- https://git.kernel.org/stable/c/45aea4fbf61e205649c29200726b9f45c1718a67
- https://git.kernel.org/stable/c/7e8436728e22181c3f12a5dbabd35ed3a8b8c593
- https://git.kernel.org/stable/c/84b5cb476903003ae9ca88f32b57ff0eaefa6d4c
- https://git.kernel.org/stable/c/86ce0e93cf6fb4d0c447323ac66577c642628b9d
- https://git.kernel.org/stable/c/925cb538bd5851154602818dc80bf4b4d924c127
- https://git.kernel.org/stable/c/aae35a0c8a775fa4afa6a4e7dab3f936f1f89bbb
- https://git.kernel.org/stable/c/db333ae981fb8843c383aa7dbf62cc682597d401