CVE-2022-49064

5.5 MEDIUM

📋 TL;DR

A Linux kernel vulnerability in the cachefiles subsystem where error paths fail to clear the 'in-use' flag on inodes, causing resource leakage. This can lead to denial-of-service conditions where legitimate operations fail with 'Inode already in use' errors. Affects systems using the cachefiles module, typically those with network filesystem caching enabled.

💻 Affected Systems

Products:
  • Linux kernel
Versions: Kernel versions with cachefiles module, specific affected versions not specified but fixed in stable kernel patches
Operating Systems: Linux distributions using affected kernel versions
Default Config Vulnerable: ✅ No
Notes: Only vulnerable if cachefiles module is loaded and in use (typically for network filesystem caching like NFS or CIFS).

📦 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 →

⚠️ Risk & Real-World Impact

🔴

Worst Case

Persistent denial-of-service where cachefiles operations fail completely, potentially disrupting network filesystem access and causing application failures.

🟠

Likely Case

Intermittent 'Inode already in use' errors during cache operations, leading to degraded performance and occasional file access failures.

🟢

If Mitigated

Minor performance impact with occasional cache misses but no service disruption.

🌐 Internet-Facing: LOW - Requires local access or ability to trigger specific cachefiles operations.
🏢 Internal Only: MEDIUM - Internal users or processes could trigger the condition, causing service degradation.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Exploitation requires ability to trigger specific error conditions in cachefiles operations, typically requiring local access or control over cache operations.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Kernel versions containing commits b2055abafd3d4ee0376fb3eed5cae866316995a1 and ea5dc046127e857a7873ae55fd57c866e9e86fb2

Vendor Advisory: https://git.kernel.org/stable/c/b2055abafd3d4ee0376fb3eed5cae866316995a1

Restart Required: Yes

Instructions:

1. Update Linux kernel to patched version from your distribution vendor. 2. Reboot system to load new kernel. 3. Verify cachefiles module loads correctly.

🔧 Temporary Workarounds

Disable cachefiles module

linux

Unload the cachefiles kernel module to prevent exploitation

sudo modprobe -r cachefiles

Blacklist cachefiles module

linux

Prevent cachefiles module from loading at boot

echo 'blacklist cachefiles' | sudo tee /etc/modprobe.d/blacklist-cachefiles.conf

🧯 If You Can't Patch

  • Monitor system logs for 'Inode already in use' warnings from cachefiles
  • Implement process monitoring to detect abnormal cachefiles behavior

🔍 How to Verify

Check if Vulnerable:

Check if cachefiles module is loaded: lsmod | grep cachefiles. If loaded, check kernel version against patched versions.

Check Version:

uname -r

Verify Fix Applied:

Verify kernel version includes the fix commits: uname -r and check with distribution vendor. Test cachefiles operations after patch.

📡 Detection & Monitoring

Log Indicators:

  • kernel logs containing 'cachefiles: Inode already in use'
  • increased cachefiles error messages in dmesg

Network Indicators:

  • Increased network filesystem latency if cache operations fail

SIEM Query:

source="kernel" AND "cachefiles" AND ("Inode already in use" OR error)

🔗 References

📤 Share & Export