f2fs: fix dentry folio leak in find_in_level
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7ad08a58bf67594057362e45cbddd3e27e53e557 · < 93a3e6a4c9e726a13a935963e8dc43d181db1527| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
f2fs: fix dentry folio leak in find_in_level
find_in_level() gets a dentry folio with f2fs_find_data_folio() before calling find_in_block(). If find_in_block() returns an error, the function stores the error in res_folio and breaks out of the loop without dropping the dentry folio.
This leaks the folio reference on the find_in_block() error path. Drop the dentry folio before returning the error to the caller.
From the CVE record · Linux
In the Linux kernel’s f2fs filesystem, find_in_level() leaks a dentry folio reference when find_in_block() returns an error. The input does not specify an attacker action or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with f2fs should check their kernel vendor’s advisory; affected versions were not provided.