Memory Leak Vulnerability in jffs2_scan_medium
Summary
GSD-2022-1002136: jffs2: fix memory leak in jffs2_scan_medium. Affects Kernel versions >= e631ddba588783edd521c5a89f7b2902772fb691, < 51dbb5e36d59f62e34d462b801c1068248149cfe. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
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 →
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.