VDB

CVE-2025-71237

CVE-2025-71237 PUBLISHED

nilfs2: Fix potential block overflow that cause system hang

Reported by linux · Published February 18, 2026

In the Linux kernel, the following vulnerability has been resolved: nilfs2: Fix potential block overflow that cause system hang When a user executes the FITRIM command, an underflow can occur when calculating nblocks if end_block is too small. Since nblocks is of type sector_t, which is u64, a negative nblocks value will become a very large positive integer. This ultimately leads to the block layer function __blkdev_issue_discard() taking an excessively long time to process the bio chain, and the ns_segctor_sem lock remains held for a long period. This prevents other tasks from acquiring the ns_segctor_sem lock, resulting in the hang reported by syzbot in [1]. If the ending block is too small, typically if it is smaller than 4KiB range, depending on the usage of the segment 0, it may be possible to attempt a discard request beyond the device size causing the hang. Exiting successfully and assign the discarded size (0 in this case) to range->len. Although the start and len values in the user input range are too small, a conservative strategy is adopted here to safely ignore them, which is equivalent to a no-op; it will not perform any trimming and will not throw an error. [1] task:segctord state:D stack:28968 pid:6093 tgid:6093 ppid:2 task_flags:0x200040 flags:0x00080000 Call Trace: rwbase_write_lock+0x3dd/0x750 kernel/locking/rwbase_rt.c:272 nilfs_transaction_lock+0x253/0x4c0 fs/nilfs2/segment.c:357 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2569 [inline] nilfs_segctor_thread+0x6ec/0xe00 fs/nilfs2/segment.c:2684 [ryusuke: corrected part of the commit message about the consequences]

EPSS 0.14% · 3.6th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernelAmazon Linux1:6.1.164-196.303.amzn2023
linux_kernellinux6.19.1, 6.18.11, 6.12.72, 6.6.125, 6.1.164, 5.15.201, 5.10.251

Risk scores

EPSS Score
0.14%
3.6th percentile

Affected products

VendorProductVersions
LinuxLinux82e11e857be3ffd2a0a952c9db8aa2379e2b9e44, 82e11e857be3ffd2a0a952c9db8aa2379e2b9e44, 82e11e857be3ffd2a0a952c9db8aa2379e2b9e44
LinuxLinux3.15, 0, 5.10.251
amazon:2023kernel0
linuxlinux_kernel3.15, 3.15, 3.15
amazon:2023python3-perf0
amazon:2023kernel-livepatch-6.1.164-196.3030
LinuxLinux82e11e857be3ffd2a0a952c9db8aa2379e2b9e44, 82e11e857be3ffd2a0a952c9db8aa2379e2b9e44, 3.15
amazon:2023kernel-headers0
amazon:2023kernel-tools-devel0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-modules-extra-common0
amazon:2023perf0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-devel0
amazon:2023kernel-modules-extra0
amazon:2023kernel-tools0
amazon:2023bpftool0
amazon:2023kernel-libbpf0

Timeline

  • Feb 18, 2026 CVE Published
  • Feb 19, 2026 EPSS Score (30 in total, the first dated here)
  • Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (73 in total, the first dated here)
  • Oct 4, 2026 Distribution Patch (58 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-71237
vulnetix vdb fixes CVE-2025-71237

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-71237/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›