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-1001313: jffs2: fix memory leak in jffs2_do_mount_fs. Affects Kernel versions >= e631ddba588783edd521c5a89f7b2902772fb691, < c94128470e6fe53d9bd9d16d2d3271813f9d37af. 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 fundamental 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_do_mount_fs function in the Kernel is responsible for mounting the JFFS2 file system. JFFS2 is a flash file system designed for use in embedded systems. It provides efficient storage and retrieval of data on flash memory devices. However, a memory leak vulnerability has been discovered in the jffs2_do_mount_fs function, which could lead to the exhaustion of system memory resources over time.

Vulnerability Detail

The memory leak vulnerability in jffs2_do_mount_fs arises from a failure to release allocated memory under certain conditions. When mounting a JFFS2 file system, the function allocates memory for various data structures but fails to free it properly in case of certain error conditions. As a result, each failed mount attempt leads to a small memory leak, which can accumulate over time and potentially exhaust system memory resources. An attacker could potentially exploit this vulnerability by repeatedly mounting and unmounting JFFS2 file systems, causing a denial-of-service condition or impacting system performance due to memory exhaustion.

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 mounting and unmounting JFFS2 file systems excessively to minimize the impact of the memory leak. Additionally, monitoring system memory usage and periodically restarting the system can help mitigate the effects of the vulnerability.

Conclusion

In conclusion, the memory leak vulnerability in jffs2_do_mount_fs in the Kernel can lead to the exhaustion of system memory resources over time. It is recommended to update the Linux Kernel to version v5.17.2 or later to fix this vulnerability. Users can also implement workarounds such as minimizing excessive mounting and unmounting of JFFS2 file systems and monitoring system memory usage. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The Kernel is a core component of the Linux operating system that manages system resources, facilitates communication between software components, and ensures system stability and security.

jffs2_do_mount_fs is a function in the Kernel responsible for mounting JFFS2 file systems, which are designed for efficient storage and retrieval of data on flash memory devices in embedded systems.

A memory leak occurs when allocated memory is not properly released, leading to a gradual accumulation of memory usage over time. This can result in memory exhaustion and impact system performance.

The memory leak in jffs2_do_mount_fs can lead to the exhaustion of system memory resources over time. This can cause a denial-of-service condition or impact system performance due to memory exhaustion.

Updating the Linux Kernel to version v5.17.2 or later will resolve the memory leak vulnerability. Additionally, avoiding excessive mounting and unmounting of JFFS2 file systems and monitoring system memory usage can help mitigate the effects of the vulnerability.

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