Use-after-free vulnerability in jffs2_clear_xattr_subsystem
Summary
GSD-2022-1001920: jffs2: fix use-after-free in jffs2_clear_xattr_subsystem. Affects Kernel versions >= aa98d7cf59b5b0764d3502662053489585faf2fe, < 7a75740206af5f17e9f3efa384211cba70213da1. 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 file system is a flash file system designed for use on embedded devices. It is commonly used in Linux-based systems. The jffs2_clear_xattr_subsystem function is responsible for clearing extended attributes (xattrs) in the jffs2 file system. Xattrs provide a way to associate metadata with files and directories. This vulnerability affects the jffs2 file system and can lead to a use-after-free condition, potentially allowing an attacker to execute arbitrary code or cause a denial-of-service.
Vulnerability Detail
The use-after-free vulnerability in jffs2_clear_xattr_subsystem occurs when the function attempts to free memory that has already been freed. This can be triggered by a specially crafted file system image or a sequence of operations on the file system. An attacker who can control the file system image or has the ability to perform certain operations on the file system could exploit this vulnerability to execute arbitrary code or crash the system. The vulnerability was introduced in version v2.6.18 of the Linux Kernel and has been fixed in version v5.15.33.
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 by updating the Linux Kernel to the latest version.
Conclusion
The use-after-free vulnerability in jffs2_clear_xattr_subsystem can have serious security implications for systems using the jffs2 file system. It is crucial to update the Linux Kernel to version v5.15.33 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
jffs2 is a flash file system designed for use on embedded devices. It is commonly used in Linux-based systems.
Extended attributes (xattrs) provide a way to associate metadata with files and directories in the jffs2 file system.
This vulnerability can be exploited by a specially crafted file system image or a sequence of operations on the file system.
The use-after-free vulnerability in jffs2_clear_xattr_subsystem can lead to arbitrary code execution or denial-of-service.
Yes, this vulnerability has been fixed in version v5.15.33 of the Linux Kernel.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.