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-1002275: jffs2: fix memory leak in jffs2_do_mount_fs. Affects Kernel versions >= e631ddba588783edd521c5a89f7b2902772fb691, < 0978e9af4559a171ac7a74a1b3ef21804b0a0fa9. 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 Penetration testing for web, API and mobile 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 provides core functionalities and acts as an interface between hardware and software. It manages system resources, facilitates communication between different software components, and ensures the overall stability and security of the system. The jffs2_do_mount_fs function is responsible for mounting the JFFS2 file system, which is a flash-friendly file system commonly used in embedded systems. This vulnerability specifically affects the jffs2_do_mount_fs function in the Kernel.

Vulnerability Detail

The jffs2_do_mount_fs function in the Kernel suffers from a memory leak vulnerability. This vulnerability allows an attacker to cause a memory leak by mounting a specially crafted JFFS2 file system. A memory leak occurs when a program fails to release allocated memory, leading to a gradual depletion of available memory resources. In the case of this vulnerability, an attacker could exploit the memory leak to exhaust system memory, potentially causing a denial-of-service condition or other adverse effects. The vulnerability was introduced in version v2.6.15 of the Kernel and has been fixed in version v5.4.189.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Kernel to version v5.4.189 or later. This update includes the necessary patch to address the memory leak in the jffs2_do_mount_fs function. Users can obtain the updated Kernel from the official Linux Kernel repository. It is important to regularly update the Kernel to ensure the latest security fixes and improvements are applied.

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 mounting JFFS2 file systems until the Kernel is updated to a version that includes the fix for this vulnerability. By refraining from mounting JFFS2 file systems, the risk of triggering the memory leak and potential adverse effects can be mitigated.

Conclusion

The memory leak vulnerability in the jffs2_do_mount_fs function of the Kernel can be mitigated by updating to version v5.4.189 or later. It is crucial to regularly update the Kernel to ensure the latest security fixes are applied. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can lead to a memory leak, potentially causing a denial-of-service condition or other adverse effects due to the gradual depletion of system memory resources.

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 open-source vulnerabilities, including this one.

At the time of this report, there is no known exploit for this vulnerability. However, it is important to promptly update the Kernel to the fixed version to mitigate any potential risks.

This vulnerability requires the attacker to mount a specially crafted JFFS2 file system, which typically requires local access to the system. Therefore, the risk of remote exploitation is relatively low.

Yes, there are alternative file systems available that can be used instead of JFFS2, depending on the specific requirements of the system. Some popular alternatives include ext4, XFS, and Btrfs.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Kernel to version v5.4.189 or later. This update includes the necessary patch to address the memory leak in the jffs2_do_mount_fs function. Users can obtain the updated Kernel from the official Linux Kernel repository. It is important to regularly update the Kernel to ensure the latest security fixes and improvements are applied.

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

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.