f2fs: fix to detect potential corrupted nid in free_nid_list
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
f2fs: fix to detect potential corrupted nid in free_nid_list
As reported, on-disk footer.ino and footer.nid is the same and out-of-range, let's add sanity check on f2fs_alloc_nid() to detect any potential corruption in free_nid_list.
From the CVE record · Linux
The Linux kernel's f2fs code lacked a sanity check in f2fs_alloc_nid() for a potentially corrupted nid in free_nid_list. The report describes matching, out-of-range on-disk footer.ino and footer.nid values; it does not specify what an attacker can do or whether network access, authentication, or user interaction is required.
Anyone running Linux with f2fs should check their kernel; affected versions are not specified.