f2fs: fix to shrink read extent node in batches
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
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 shrink read extent node in batches
We use rwlock to protect core structure data of extent tree during its shrink, however, if there is a huge number of extent nodes in extent tree, during shrink of extent tree, it may hold rwlock for a very long time, which may trigger kernel hang issue.
This patch fixes to shrink read extent node in batches, so that, critical region of the rwlock can be shrunk to avoid its extreme long time hold.
From the CVE record · Linux
The Linux kernel's f2fs extent-tree shrink can hold a lock for an extremely long time when the tree contains many extent nodes, potentially causing a kernel hang. The input does not establish whether an attacker can trigger this condition or specify network access, authentication, or user interaction requirements.
Engineers running Linux kernels that use f2fs should check whether their kernel is affected; no affected versions are specified.