CVE-2025-40077 is a Linux kernel vulnerability in the F2FS filesystem, addressed by a minimal one-line cast fix that prevents a left-shift arithmetic overflow during compressed-cluster truncation. The patch has been merged into stable kernel trees. While the fix is low-surface, it is considered high-value for systems using F2FS or kernels with F2FS support. Administrators should apply the update promptly to avoid potential incorrect offsets that could lead to kernel overflow. This tag covers discussion of the vulnerability, its impact, and the upstream patch.
-
The Linux kernel has been assigned CVE‑2025‑40077 for a narrowly scoped arithmetic fix in the F2FS filesystem: a single-line defensive cast (casting folio->index to loff_t before shifting) prevents a left‑shift arithmetic overflow that could otherwise produce incorrect offsets during...