CVE-2025-21736

nilfs2: fix possible int overflows in nilfs_fiemap()

MEDIUM
5.5
CVSS Score
Published: February 27, 2025 at 02:12 AM UTC
Updated: June 17, 2026 at 08:44 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.38 ≤ v < 5.10.2352.6.38 ≤ v < 5.15.1792.6.38 ≤ v < 5.4.2912.6.38 ≤ v < 6.1.1292.6.38 ≤ v < 6.12.142.6.38 ≤ v < 6.13.32.6.38 ≤ v < 6.142.6.38 ≤ v < 6.6.786.13 ≤ v < 6.13.36.2 ≤ v < 6.6.786.7 ≤ v < 6.12.142.6.38622daaff0a8975fb5c5b95f24f3234550ba32e92
Vendor states this is fixed in 250423300b4b0335918be187ef3cade248c06e6a (fixed)
Vendor states this is fixed in 58b1c6881081f5ddfb9a14dc241a74732c0f855c (fixed)
Vendor states this is fixed in 6438ef381c183444f7f9d1de18f22661cba1e946 (fixed)
Vendor states this is fixed in 7649937987fed51ed09985da4019d50189fc534e (fixed)
Vendor states this is fixed in 8f41df5fd4c11d26e929a85f7239799641f92da7 (fixed)
Vendor states this is fixed in b9495a9109abc31d3170f7aad7d48aa64610a1a2 (fixed)
Vendor states this is fixed in f2bd0f1ab47822fe5bd699c8458b896c4b2edea1 (fixed)
Vendor states this is fixed in f3d80f34f58445355fa27b9579a449fb186aa64e (fixed)
Vendor states this is fixed in 2.6.38 (unaffected)
Vendor states this is fixed in 5.10.235 (unaffected)
Vendor states this is fixed in 5.15.179 (unaffected)
Vendor states this is fixed in 5.4.291 (unaffected)
Vendor states this is fixed in 6.1.129 (unaffected)
Vendor states this is fixed in 6.12.14 (unaffected)
Vendor states this is fixed in 6.13.3 (unaffected)
Vendor states this is fixed in 6.14 (unaffected)
Vendor states this is fixed in 6.6.78 (unaffected)

References (10)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-190

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card