# CVE-2025-40077: f2fs: fix to avoid overflow while left shift operation

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-10-28T11:48:42.976Z
- Modified: 2026-10-30T13:18:13.367Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 3265d3db1f16395cfc6b8ea9b31b4001d98d05ef before 7fb12f75da1da83b29964c02646f851d919301ea; from 3265d3db1f16395cfc6b8ea9b31b4001d98d05ef before ef49378864bb1ed14cd48c8e687729e12714d849; from 3265d3db1f16395cfc6b8ea9b31b4001d98d05ef before 0e75a098b0a37f02ca31fe99ac16004c8163cf67; from 3265d3db1f16395cfc6b8ea9b31b4001d98d05ef before 57d3381dfb97ff73ddd18601017fec21cca80985; from 3265d3db1f16395cfc6b8ea9b31b4001d98d05ef before 0fe1c6bec54ea68ed8c987b3890f2296364e77bb; 5.8 (not affected: before 5.8; from 6.1.191 up to 6.1.*; from 6.6.117 up to 6.6.*; from 6.12.59 up to 6.12.*; from 6.17.3 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/7fb12f75da1da83b29964c02646f851d919301ea>
- <https://git.kernel.org/stable/c/ef49378864bb1ed14cd48c8e687729e12714d849>
- <https://git.kernel.org/stable/c/0e75a098b0a37f02ca31fe99ac16004c8163cf67>
- <https://git.kernel.org/stable/c/57d3381dfb97ff73ddd18601017fec21cca80985>
- <https://git.kernel.org/stable/c/0fe1c6bec54ea68ed8c987b3890f2296364e77bb>

## Sources

- CVE List: [CVE-2025-40077](https://www.cve.org/CVERecord?id=CVE-2025-40077), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2025-40077](https://nvd.nist.gov/vuln/detail/CVE-2025-40077), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2025-40077 · Whole record: https://cve.day/CVE-2025-40077.json · Rebuilt by cve.day 2026-11-25T22:59:06.947Z
