Slab Out-of-Bounds Vulnerability in Linux Kernel Cachefiles Package

linux Updated 02 Oct 2025

Summary

26/02/2025
N/A
Yes i
High
7.8

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback