{"id":"CVE-2025-21736","summary":"nilfs2: fix possible int overflows in nilfs_fiemap()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: fix possible int overflows in nilfs_fiemap()\n\nSince nilfs_bmap_lookup_contig() in nilfs_fiemap() calculates its result\nby being prepared to go through potentially maxblocks == INT_MAX blocks,\nthe value in n may experience an overflow caused by left shift of blkbits.\n\nWhile it is extremely unlikely to occur, play it safe and cast right hand\nexpression to wider type to mitigate the issue.\n\nFound by Linux Verification Center (linuxtesting.org) with static analysis\ntool SVACE.","modified":"2026-03-20T12:41:08.792837Z","published":"2025-02-27T02:12:12.871Z","related":["SUSE-SU-2025:01919-1","SUSE-SU-2025:1177-1","SUSE-SU-2025:1178-1","SUSE-SU-2025:1180-1","SUSE-SU-2025:20190-1","SUSE-SU-2025:20192-1","SUSE-SU-2025:20260-1","SUSE-SU-2025:20270-1","USN-7521-2"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21736.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/250423300b4b0335918be187ef3cade248c06e6a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/58b1c6881081f5ddfb9a14dc241a74732c0f855c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6438ef381c183444f7f9d1de18f22661cba1e946"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7649937987fed51ed09985da4019d50189fc534e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8f41df5fd4c11d26e929a85f7239799641f92da7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b9495a9109abc31d3170f7aad7d48aa64610a1a2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f2bd0f1ab47822fe5bd699c8458b896c4b2edea1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f3d80f34f58445355fa27b9579a449fb186aa64e"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21736.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21736"},{"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":"622daaff0a8975fb5c5b95f24f3234550ba32e92"},{"fixed":"7649937987fed51ed09985da4019d50189fc534e"},{"fixed":"58b1c6881081f5ddfb9a14dc241a74732c0f855c"},{"fixed":"8f41df5fd4c11d26e929a85f7239799641f92da7"},{"fixed":"f3d80f34f58445355fa27b9579a449fb186aa64e"},{"fixed":"f2bd0f1ab47822fe5bd699c8458b896c4b2edea1"},{"fixed":"b9495a9109abc31d3170f7aad7d48aa64610a1a2"},{"fixed":"250423300b4b0335918be187ef3cade248c06e6a"},{"fixed":"6438ef381c183444f7f9d1de18f22661cba1e946"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21736.json"}}],"schema_version":"1.7.5"}