Memory Leak in jffs2_do_mount_fs in Kernel

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1002452: jffs2: fix memory leak in jffs2_do_mount_fs. Affects Kernel versions >= e631ddba588783edd521c5a89f7b2902772fb691, < 9a0f6610c7daedd2eace430beeb08a8b7ac80699. 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 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 Kernel is a critical component of the Linux operating system that provides core functionality and acts as a bridge between hardware and software. It manages system resources, facilitates communication between different software components, and enables the execution of user programs. The jffs2_do_mount_fs function in the Kernel is responsible for mounting the JFFS2 file system, which is commonly used in embedded systems and flash memory devices. This function has a vulnerability that leads to a memory leak, potentially causing resource exhaustion and system instability.

Vulnerability Detail

The vulnerability in jffs2_do_mount_fs arises from a memory leak issue. When mounting a JFFS2 file system, the function fails to release allocated memory in certain scenarios, resulting in a continuous accumulation of memory over time. This can lead to resource exhaustion, system slowdown, and even crashes. An attacker may be able to exploit this vulnerability to cause a denial-of-service (DoS) condition or potentially execute arbitrary code with elevated privileges.

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

If updating the Kernel is not immediately feasible, a temporary workaround can be implemented by avoiding the use of JFFS2 file systems or disabling the mounting of JFFS2 file systems altogether. This can be achieved by modifying the system configuration or removing any JFFS2 file system entries from the relevant configuration files. However, it is important to note that this workaround may impact the functionality or compatibility of certain applications or devices that rely on JFFS2 file systems.

Conclusion

The memory leak vulnerability in jffs2_do_mount_fs poses a risk of resource exhaustion and system instability. It is crucial to update the Linux Kernel to version v4.14.276 or later to mitigate this vulnerability. Alternatively, a temporary workaround can be implemented by avoiding or disabling the use of JFFS2 file systems. For further assistance or support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can lead to a memory leak, causing resource exhaustion and system instability. It may result in system slowdown, crashes, or even a denial-of-service (DoS) condition. In some cases, an attacker could potentially exploit this vulnerability to execute arbitrary code with elevated privileges.

The vulnerability was introduced in version v2.6.15 of the Linux Kernel. It is present in all subsequent versions until v4.14.275. The issue is fixed in version v4.14.276 and later.

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 for any known vulnerabilities, including this memory leak issue in jffs2_do_mount_fs.

At the time of this report, there are no known public exploits specifically targeting this vulnerability. However, it is always recommended to promptly apply security updates to mitigate the risk of potential exploitation.

If updating the Kernel is not immediately feasible, a temporary workaround can be implemented by avoiding the use of JFFS2 file systems or disabling the mounting of JFFS2 file systems altogether. However, this may impact the functionality or compatibility of certain applications or devices.

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