CVE-2025-21736

Source
https://cve.org/CVERecord?id=CVE-2025-21736
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21736.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-21736
Downstream
Related
Published
2025-02-27T02:12:12.871Z
Modified
2026-03-12T02:14:35.620252Z
Summary
nilfs2: fix possible int overflows in nilfs_fiemap()
Details

In the Linux kernel, the following vulnerability has been resolved:

nilfs2: fix possible int overflows in nilfs_fiemap()

Since nilfsbmaplookupcontig() in nilfsfiemap() calculates its result by being prepared to go through potentially maxblocks == INT_MAX blocks, the value in n may experience an overflow caused by left shift of blkbits.

While it is extremely unlikely to occur, play it safe and cast right hand expression to wider type to mitigate the issue.

Found by Linux Verification Center (linuxtesting.org) with static analysis tool SVACE.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21736.json"
}
References

Affected packages

Git / 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"