VDB

CVE-2026-89640

CVE-2026-89640 PUBLISHED CVSS 7.1 HIGH

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.

PackageEcosystemFixed in
python3-perf6.18Amazon Linux1:6.18.51-120.162.amzn2023
kernelAmazon Linux1:6.1.188-233.385.amzn2023

Risk scores

CVSS 3.1
7.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux04b38d601239b4d9be641b412cf4b7456a041c67, 04b38d601239b4d9be641b412cf4b7456a041c67, 04b38d601239b4d9be641b412cf4b7456a041c67
LinuxLinux4.5, 0, 5.10.273
amazon:2023python3-perf6.180
amazon:2023kernel0
linuxlinux_kernel4.5, 4.5, 4.5
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel-modules-extra0
amazon:2023perf6.180
amazon:2023bpftool6.120
amazon:2023perf0
amazon:2023microvm-kernel6.180
amazon:2023kernel-livepatch-6.1.188-233.3850
amazon:2023python3-perf6.120
amazon:2023kernel6.120
amazon:2023kernel-modules-extra-common0
amazon:2023kernel6.12-headers0
amazon:2023kernel6.18-headers0
amazon:2023kernel6.18-tools-devel0
amazon:2023bpftool0
amazon:2023bpftool6.180

…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

References

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