Vulnerability in f2fs Package: Sanity Check on Last Xattr Entry
Summary
GSD-2021-1002800: f2fs: fix to do sanity check on last xattr entry in __f2fs_setxattr(). Affects Kernel versions < b0406b5ef4e2c4fb21d9e7d5c36a0453b4279e9b. 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 f2fs package is a file system designed for flash-based storage devices in the Linux Kernel. It provides efficient data management and supports advanced features like atomic writes and inline data. The vulnerability in the package arises from a missing sanity check on the last extended attribute (xattr) entry in the __f2fs_setxattr() function.
Vulnerability Detail
The vulnerability occurs when setting an extended attribute on a file. Without the proper sanity check, an attacker could manipulate the last xattr entry to trigger a buffer overflow or other memory corruption issues. This could potentially lead to arbitrary code execution or a denial of service attack. The vulnerability has been fixed in Linux Kernel version v5.4.169 by commit b0406b5ef4e2c4fb21d9e7d5c36a0453b4279e9b.
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 specific workaround mentioned for this vulnerability. However, users can mitigate the risk by ensuring they have proper access controls in place and limiting the exposure of vulnerable systems to untrusted sources.
Conclusion
The vulnerability in the f2fs package, which lacked a sanity check on the last xattr entry, could potentially lead to arbitrary code execution or denial of service attacks. It is crucial to update the Linux Kernel to version v5.4.169 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability could potentially allow an attacker to execute arbitrary code or cause a denial of service on affected systems.
At the time of this report, there is no known exploit publicly available for this vulnerability.
The vulnerability is present in versions of the f2fs package prior to Linux Kernel v5.4.169.
While it is recommended to update to the fixed version as soon as possible, the urgency may vary depending on the specific deployment and exposure of the affected systems.
More details about the fix can be found in the commit b0406b5ef4e2c4fb21d9e7d5c36a0453b4279e9b in the official Linux Kernel repository.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.