{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-40077","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2025-04-16T07:20:57.160Z","datePublished":"2025-10-28T11:48:42.976Z","dateUpdated":"2026-05-11T21:42:03.713Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-05-11T21:42:03.713Z"},"descriptions":[{"lang":"en","value":"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->index from pgoff_t to loff_t to avoid overflow\nwhile left shift operation."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/f2fs/compress.c"],"versions":[{"version":"3265d3db1f16395cfc6b8ea9b31b4001d98d05ef","lessThan":"ef49378864bb1ed14cd48c8e687729e12714d849","status":"affected","versionType":"git"},{"version":"3265d3db1f16395cfc6b8ea9b31b4001d98d05ef","lessThan":"0e75a098b0a37f02ca31fe99ac16004c8163cf67","status":"affected","versionType":"git"},{"version":"3265d3db1f16395cfc6b8ea9b31b4001d98d05ef","lessThan":"57d3381dfb97ff73ddd18601017fec21cca80985","status":"affected","versionType":"git"},{"version":"3265d3db1f16395cfc6b8ea9b31b4001d98d05ef","lessThan":"0fe1c6bec54ea68ed8c987b3890f2296364e77bb","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/f2fs/compress.c"],"versions":[{"version":"5.8","status":"affected"},{"version":"0","lessThan":"5.8","status":"unaffected","versionType":"semver"},{"version":"6.6.117","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.59","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.17.3","lessThanOrEqual":"6.17.*","status":"unaffected","versionType":"semver"},{"version":"6.18","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.6.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.12.59"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.17.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.18"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/ef49378864bb1ed14cd48c8e687729e12714d849"},{"url":"https://git.kernel.org/stable/c/0e75a098b0a37f02ca31fe99ac16004c8163cf67"},{"url":"https://git.kernel.org/stable/c/57d3381dfb97ff73ddd18601017fec21cca80985"},{"url":"https://git.kernel.org/stable/c/0fe1c6bec54ea68ed8c987b3890f2296364e77bb"}],"title":"f2fs: fix to avoid overflow while left shift operation","x_generator":{"engine":"bippy-1.2.0"}}}}