Vulnerability in f2fs: fix to clear dirty inode in f2fs_evict_inode()
Summary
GSD-2022-1003251: f2fs: fix to clear dirty inode in f2fs_evict_inode(). Affects Kernel versions < c9196d21359be8c7ee231029d13682273925fd00. 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 is a file system implemented in the Linux Kernel. It is designed to provide better performance and reliability for flash-based storage devices. The f2fs_evict_inode() function is responsible for evicting an inode from memory and writing any changes back to disk. However, there is a vulnerability in this function that fails to clear the dirty inode, which can lead to data corruption or leakage if the inode is reused without being properly cleaned.
Vulnerability Detail
The vulnerability in f2fs_evict_inode() allows for dirty inodes to persist, potentially leading to data corruption or leakage. When an inode is evicted, it should be marked as clean to ensure that any changes are properly written back to disk. However, due to a coding error, the dirty inode is not cleared, leaving it in an inconsistent state. This can be exploited by an attacker to access sensitive information or modify data on the file system.
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 patch or update to the latest version of the Linux Kernel as soon as possible.
Conclusion
The vulnerability in f2fs_evict_inode() can lead to data corruption or leakage. It is crucial to update to the latest version of the Linux Kernel or apply the provided patch to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
f2fs is a file system implemented in the Linux Kernel, designed for flash-based storage devices.
f2fs_evict_inode() is a function in the f2fs file system that is responsible for evicting an inode from memory and writing any changes back to disk.
This vulnerability can lead to data corruption or leakage if a dirty inode is reused without being properly cleaned.
To fix this vulnerability, update to the latest version of the Linux Kernel that includes the patch for this issue.
There is no known workaround for this vulnerability. It is recommended to apply the patch or update to the latest version of the Linux Kernel.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.