Slab Out-of-Bounds Vulnerability in Linux Kernel Cachefiles Package
Summary
CVE-2022-49062: In the Linux kernel, the following vulnerability has been resolved: cachefiles: Fix KASAN slab-out-of-bounds in cachefiles_set_volume_xattr Use the actual length of volume coherency data when setting the xattr to avoid t... Affects linux versions < 5.17.6-1. Fixed in 5.17.6-1. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The Linux kernel is the core component of Linux operating systems, managing hardware and system resources. The cachefiles subsystem allows for caching of files in memory, improving performance for file access. This subsystem is crucial for applications that rely on efficient file storage and retrieval. However, it is susceptible to vulnerabilities that can lead to memory corruption and potential system instability.
Vulnerability Detail
The vulnerability identified as CVE-2022-49062 arises from a slab-out-of-bounds write in the cachefiles_set_volume_xattr function. This issue occurs when the length of volume coherency data is not correctly accounted for, leading to memory corruption. The KASAN (Kernel Address Sanitizer) report indicates that a write operation exceeds the allocated memory bounds, which can result in unpredictable behavior, crashes, or security breaches. The vulnerability was introduced in the Linux kernel and affects versions prior to 5.17.6-1.
How To Fix
Minimum fixed version
5.17.6-1
This is the first release that contains the fix.
sudo apt-get install --only-upgrade linux
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
Currently, there are no specific workarounds provided for this vulnerability. The best course of action is to apply the patch as soon as it is available.
Conclusion
CVE-2022-49062 is a significant vulnerability in the Linux kernel's cachefiles subsystem that can lead to serious memory corruption issues. It is essential to update to the patched version to mitigate risks. Users are encouraged to utilize tools like Vulert to monitor for vulnerabilities in their applications.
See every vulnerability recorded for linux →
FAQ
CVE-2022-49062 is a vulnerability in the Linux kernel's cachefiles subsystem that allows for slab-out-of-bounds writes, potentially leading to memory corruption.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
The risks include system crashes, data corruption, and potential exploitation by malicious actors to gain unauthorized access or control over the system.
Yes, a patch is available in version 5.17.6-1 of the Linux kernel. It is crucial to update to this version or later.
If immediate updates are not possible, monitor your system for unusual behavior and consider isolating affected services until the patch can be applied.
Related vulnerabilities
Recent vulnerabilities recorded for linux.