Vulnerability in cachefiles_set_volume_xattr in Kernel

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1000983: cachefiles: Fix KASAN slab-out-of-bounds in cachefiles_set_volume_xattr. Affects Kernel versions >= 413a4a6b0b5553f2423d210f65e98c211b99c3f8, < 09a5df1b88c8f126c8ff9938edf160edd4e92f42. No fix is published. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Kernel is a crucial component of the Linux operating system that manages the system's resources and facilitates communication between hardware and software. It provides essential functionalities such as process management, memory management, and device drivers. The cachefiles_set_volume_xattr function is part of the cachefiles subsystem in the Kernel, which enables caching of file data on a local disk. This function is responsible for setting extended attributes (xattrs) for a cache volume. Xattrs provide additional metadata for files and directories. However, a vulnerability has been discovered in the cachefiles_set_volume_xattr function that could potentially be exploited by attackers.

Vulnerability Detail

The vulnerability in cachefiles_set_volume_xattr is caused by a slab-out-of-bounds issue, as identified by the KASAN (Kernel Address Sanitizer) tool. This issue occurs when the function attempts to access memory beyond the allocated slab, leading to potential memory corruption. Although the impact and attack plausibility have not been proven, if successfully exploited, an attacker could gain unauthorized access to sensitive information, modify data, or cause a denial-of-service condition. The vulnerability was introduced in version v5.17 of the Linux Kernel and has been fixed in version v5.17.4.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can disable the cachefiles subsystem if it is not essential for their system's operation. This can be achieved by modifying the Kernel configuration and rebuilding the Kernel without the cachefiles module. However, this workaround may impact the caching functionality and should only be considered if the system can operate without it.

Conclusion

In conclusion, a vulnerability has been identified in the cachefiles_set_volume_xattr function in the Kernel, which could potentially be exploited to gain unauthorized access, modify data, or cause a denial-of-service condition. It is crucial to update the Linux Kernel to version v5.17.4 or later to fix this vulnerability. Alternatively, users can disable the cachefiles subsystem as a temporary workaround. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

If successfully exploited, this vulnerability could allow attackers to gain unauthorized access to sensitive information, modify data, or cause a denial-of-service condition.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. The playground allows you to analyze your application's manifest file, such as package-lock.json, without requiring access to the code or installation.

KASAN is a dynamic memory error detector in the Linux Kernel. It helps identify various memory-related issues, including out-of-bounds access, use-after-free, and memory leaks.

No known exploits for this vulnerability have been reported at the time of this report. However, it is crucial to apply the recommended fix or workaround to mitigate any potential risks.

No, the fix for this vulnerability is included in the updated version of the Linux Kernel. It is recommended to update the Kernel to the latest version to ensure the vulnerability is properly addressed.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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