Use-after-free vulnerability in jffs2_clear_xattr_subsystem in Kernel

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1001616: jffs2: fix use-after-free in jffs2_clear_xattr_subsystem. Affects Kernel versions >= aa98d7cf59b5b0764d3502662053489585faf2fe, < 22327bd7988f21de3a53c1373f3b81542bfe1f44. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Kernel is a crucial component of the Linux operating system that provides core functionalities and acts as a bridge between hardware and software. It manages system resources, facilitates communication between different software components, and ensures the stability and security of the system. The jffs2_clear_xattr_subsystem function is part of the Journalling Flash File System 2 (JFFS2) subsystem in the Kernel. JFFS2 is a file system specifically designed for flash memory devices. It provides efficient storage management and supports various features, including extended attributes (xattrs) for files and directories.

Vulnerability Detail

The use-after-free vulnerability in jffs2_clear_xattr_subsystem allows an attacker to exploit a freed memory region, potentially leading to arbitrary code execution or a system crash. This vulnerability occurs when the jffs2_clear_xattr_subsystem function is called on a file or directory that has already been freed from memory. By manipulating the freed memory, an attacker can gain control over the execution flow of the system and execute malicious code. The impact of this vulnerability depends on the attacker's capabilities and the context in which the vulnerable code is executed.

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 workaround, users can apply patches or backports provided by the Linux distribution maintainers. These patches may address the use-after-free vulnerability in the jffs2_clear_xattr_subsystem function. Alternatively, users can disable the JFFS2 file system or restrict access to vulnerable files and directories to mitigate the risk of exploitation.

Conclusion

The use-after-free vulnerability in jffs2_clear_xattr_subsystem poses a potential security risk to systems running the affected versions of the Linux Kernel. It is crucial to update the Kernel to the recommended version or apply patches provided by the Linux distribution maintainers. Regularly updating the Kernel and staying informed about security vulnerabilities is essential for maintaining the integrity and security of the system. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability can vary depending on the attacker's capabilities and the context in which the vulnerable code is executed. It could potentially lead to arbitrary code execution or a system crash, compromising the integrity and availability of the affected system.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just a manifest file like package-lock.json.

At the time of this report, there are no known public exploits specifically targeting this use-after-free vulnerability in jffs2_clear_xattr_subsystem. However, it is important to promptly apply the recommended fixes and stay updated to mitigate potential risks.

The use-after-free vulnerability in jffs2_clear_xattr_subsystem requires local access to the system to exploit. It cannot be exploited remotely over a network connection.

For more details about this vulnerability, including its technical aspects and the specific commits that fix it, you can refer to the vulnerability ID GSD-2022-1001616 in the GSD database maintained by the Cloud Security Alliance. The link to the database is provided in the references section of this report.

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