CVE-2026-89640
cifs: fix loff_t underflow in cifs_remap_file_range() when len == 0
Reported by linux · Published September 11, 2026
In the Linux kernel, the following vulnerability has been resolved: cifs: fix loff_t underflow in cifs_remap_file_range() when len == 0 With len == 0 (clone to EOF), the effective length is computed as: len = src_inode->i_size - off; If off > i_size, this is a negative loff_t, corrupting the ByteCount in the FSCTL_DUPLICATE_EXTENTS_TO_FILE request and inverting the range in filemap_write_and_wait_range(). The existing off >= i_size check fires only after the ioctl has already been sent. Snapshot i_size_read() once for both the bounds check and the length calculation, eliminating the TOCTOU and 32-bit torn-read risk. Reject off > src_size with -EINVAL. Treat off == src_size as a no-op, consistent with __generic_remap_file_range_prep().
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python3-perf6.18 | Amazon Linux | 1:6.18.51-120.162.amzn2023 |
| kernel | Amazon Linux | 1:6.1.188-233.385.amzn2023 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 04b38d601239b4d9be641b412cf4b7456a041c67, 04b38d601239b4d9be641b412cf4b7456a041c67, 04b38d601239b4d9be641b412cf4b7456a041c67 |
| Linux | Linux | 4.5, 0, 5.10.273 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | kernel | 0 |
| linux | linux_kernel | 4.5, 4.5, 4.5 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | microvm-kernel6.18 | 0 |
| amazon:2023 | kernel-livepatch-6.1.188-233.385 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | bpftool6.18 | 0 |
…and 18 more
Timeline
- Sep 11, 2026 CVE Published
- Sep 12, 2026 EPSS Score (8 in total, the first dated here)
- Oct 30, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-89640
vulnetix vdb fixes CVE-2026-89640
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-2026-89640/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart