{"id":"CVE-2025-40077","summary":"f2fs: fix to avoid overflow while left shift operation","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: fix to avoid overflow while left shift operation\n\nShould cast type of folio-\u003eindex from pgoff_t to loff_t to avoid overflow\nwhile left shift operation.","modified":"2026-03-20T12:43:10.248634Z","published":"2025-10-28T11:48:42.976Z","related":["openSUSE-SU-2025:15702-1","openSUSE-SU-2026:10301-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40077.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0e75a098b0a37f02ca31fe99ac16004c8163cf67"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0fe1c6bec54ea68ed8c987b3890f2296364e77bb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/57d3381dfb97ff73ddd18601017fec21cca80985"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ef49378864bb1ed14cd48c8e687729e12714d849"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40077.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40077"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3265d3db1f16395cfc6b8ea9b31b4001d98d05ef"},{"fixed":"ef49378864bb1ed14cd48c8e687729e12714d849"},{"fixed":"0e75a098b0a37f02ca31fe99ac16004c8163cf67"},{"fixed":"57d3381dfb97ff73ddd18601017fec21cca80985"},{"fixed":"0fe1c6bec54ea68ed8c987b3890f2296364e77bb"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40077.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.8.0"},{"fixed":"6.6.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.59"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.17.3"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40077.json"}}],"schema_version":"1.7.5"}