CVE-2025-21736: nilfs2: fix possible int overflows in nilfs_fiemap()
Vulnerability summary
CVE-2025-21736 is a medium (CVSS 5.5) Integer Overflow or Wraparound vulnerability in linux. EPSS estimates a 0.26% chance of exploitation in the next 30 days, higher than 18.1% of scored vulnerabilities.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 51 · Related 50Timeline
- 27-02-2025PublishedVulnerability first disclosed.
- 11-05-2026Last modifiedVulnerability information updated.
Description
In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix possible int overflows in nilfs_fiemap() Since nilfs_bmap_lookup_contig() in nilfs_fiemap() 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.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.26%
Chance of exploitation in the next 30 days
Percentile
18%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.25% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu137 products
- linuxAll versions (No fix recorded) | < 5.4.0-216.236 | < 5.15.0-140.150 | < 6.8.0-64.67
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 5.4.0-1146.156 | < 5.15.0-1084.91 | < 6.8.0-1032.34
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 622daaff0a8975fb5c5b95f24f3234550ba32e92, < 7649937987fed51ed09985da4019d50189fc534e | ≥ 622daaff0a8975fb5c5b95f24f3234550ba32e92, < 58b1c6881081f5ddfb9a14dc241a74732c0f855c | ≥ 622daaff0a8975fb5c5b95f24f3234550ba32e92, < 8f41df5fd4c11d26e929a85f7239799641f92da7 | ≥ 622daaff0a8975fb5c5b95f24f3234550ba32e92, < f3d80f34f58445355fa27b9579a449fb186aa64e | ≥ 622daaff0a8975fb5c5b95f24f3234550ba32e92, < f2bd0f1ab47822fe5bd699c8458b896c4b2edea1 | ≥ 622daaff0a8975fb5c5b95f24f3234550ba32e92, < b9495a9109abc31d3170f7aad7d48aa64610a1a2 | ≥ 622daaff0a8975fb5c5b95f24f3234550ba32e92, < 250423300b4b0335918be187ef3cade248c06e6a | ≥ 622daaff0a8975fb5c5b95f24f3234550ba32e92, < 6438ef381c183444f7f9d1de18f22661cba1e946 | 2.6.38
- linux_kernel≥ 2.6.38, < 6.1.129 | ≥ 6.2, < 6.6.78 | ≥ 6.7, < 6.12.14 | ≥ 6.13, < 6.13.3
Debian1 product
- linux< 6.1.129-1 | < 6.12.15-1
3 vendors · 140 products