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-1002374: jffs2: fix use-after-free in jffs2_clear_xattr_subsystem. Affects Kernel versions >= aa98d7cf59b5b0764d3502662053489585faf2fe, < c3b07c875fa8f906f932976460fd14798596f101. 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 system resources and provides an interface for software to interact with the hardware. It is responsible for tasks such as process management, memory management, and device drivers. The jffs2 file system is a flash-friendly file system used in embedded systems. The jffs2_clear_xattr_subsystem function is responsible for clearing extended attributes in the jffs2 file system. However, a use-after-free vulnerability has been discovered in this function, which could potentially be exploited by an attacker to execute arbitrary code or cause a denial-of-service condition.

Vulnerability Detail

The use-after-free vulnerability in jffs2_clear_xattr_subsystem arises from a programming error. When clearing extended attributes, the function fails to properly handle a reference to an object after it has been freed. This can lead to a situation where an attacker can manipulate the freed object's memory, potentially resulting in the execution of arbitrary code or a system crash. The impact and attack plausibility of this vulnerability have not been proven yet, but it is essential to address it to ensure the security and stability of the system.

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 avoid the use of extended attributes in the jffs2 file system until the Kernel is updated. By refraining from utilizing extended attributes, the risk of exploitation can be mitigated. However, this workaround may not be feasible in all scenarios, and it is strongly recommended to apply the official fix as soon as possible.

Conclusion

The use-after-free vulnerability in jffs2_clear_xattr_subsystem poses a potential security risk to systems utilizing the jffs2 file system. To mitigate this risk, it is crucial to update the Linux Kernel to version v4.19.238 or later, which includes the necessary fix. In the meantime, avoiding the use of extended attributes in the jffs2 file system can provide a temporary workaround. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability could potentially be severe. An attacker may be able to execute arbitrary code or cause a denial-of-service condition, compromising the security and stability of the system.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it in real-time to identify any open-source vulnerabilities, including this one.

At the time of this report, no known exploits for this vulnerability have been disclosed. However, it is crucial to apply the fix promptly to prevent any potential exploitation.

As mentioned in the workaround section, you can avoid using extended attributes in the jffs2 file system until the Kernel is updated. This can help mitigate the risk of exploitation. However, it is strongly recommended to apply the official fix as soon as possible.

You can find more information about this vulnerability, including its technical details and the fix, in the vulnerability report available at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1002xxx/GSD-2022-1002374.json.

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