Memory Leak Vulnerability in jffs2_scan_medium

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1002136: jffs2: fix memory leak in jffs2_scan_medium. Affects Kernel versions >= e631ddba588783edd521c5a89f7b2902772fb691, < 51dbb5e36d59f62e34d462b801c1068248149cfe. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The jffs2_scan_medium function is a part of the Journalling Flash File System 2 (JFFS2) in the Linux Kernel. JFFS2 is a file system designed for use with flash memory devices. It provides efficient storage and retrieval of data on flash-based storage media. The jffs2_scan_medium function is responsible for scanning the medium and identifying valid JFFS2 file system nodes. However, a memory leak vulnerability has been discovered in this function.

Vulnerability Detail

The memory leak vulnerability in jffs2_scan_medium allows an attacker to cause a denial of service (DoS) condition by repeatedly triggering the function with specially crafted input. This can lead to exhaustion of system memory resources, resulting in system instability or crash. The vulnerability was introduced in version v2.6.15 of the Linux Kernel and has been fixed in version v5.10.110. The vulnerability is caused by a failure to properly release allocated memory in certain error scenarios within the jffs2_scan_medium function.

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

There is no known workaround for this vulnerability. It is recommended to apply the fix mentioned above by updating the Linux Kernel to the latest version.

Conclusion

The memory leak vulnerability in jffs2_scan_medium can be mitigated by updating the Linux Kernel to version v5.10.110 or later. It is recommended to follow the provided steps to fix the vulnerability and ensure the security and stability of the system. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

jffs2_scan_medium is a function in the Journalling Flash File System 2 (JFFS2) in the Linux Kernel. It is responsible for scanning the medium and identifying valid JFFS2 file system nodes.

The memory leak vulnerability in jffs2_scan_medium can lead to a denial of service (DoS) condition, causing system instability or crash due to exhaustion of system memory resources.

You can use the Vulert Playground (https://vulert.com/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 memory leak vulnerability in jffs2_scan_medium.

No, there is no known workaround for this vulnerability. It is recommended to update the Linux Kernel to the latest version to apply the fix.

You can find more information about this vulnerability in the Open Source Vulnerability Database (OSVDB) entry GSD-2022-1002136 (https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1002xxx/GSD-2022-1002136.json).

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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