CVE-2025-40077Published Oct 28, 2025 · Oct 28Updated Nov 1
f2fs: fix to avoid overflow while left shift operation
Linux
Unrated
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 avoid overflow while left shift operation
Should cast type of folio->index from pgoff_t to loff_t to avoid overflow while left shift operation.
From the CVE record · Linux
The Linux kernel’s f2fs code can overflow when left-shifting folio->index without first casting it from pgoff_t to loff_t. The input does not specify what an attacker could do or whether exploitation requires network access, authentication, or user interaction.
Engineers running Linux kernels with f2fs should check their versions; affected versions are not specified.