CVE-2025-21736 Details
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.
An integer overflow vulnerability has been identified in the Linux kernel's nilfs2 file system, specifically within the nilfs_fiemap() function. The issue arises because nilfs_bmap_lookup_contig() in nilfs_fiemap() is designed to potentially process a maximum number of blocks equal to INT_MAX. This could lead to an overflow when the block count is left-shifted. Although such an occurrence is highly unlikely, the vulnerability has been addressed by safely casting the right-hand expression to a wider type. This issue was discovered by the Linux Verification Center using the static analysis tool SVACE.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-190 | Integer Overflow or Wraparound | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 2.6.38, < 6.1.129 >= 6.2, < 6.6.78 >= 6.7, < 6.12.14 >= 6.13, < 6.13.3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 3, 2025 | CVE Modified | CVE |
| Mar 13, 2025 | CVE Modified | kernel.org |
| Mar 6, 2025 | Initial Analysis | [email protected] |
| Feb 27, 2025 | New CVE Received | kernel.org |