CVE-2026-89640
cifs: fix loff_t underflow in cifs_remap_file_range() when len == 0
Check your servers for CVE-2026-89640
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-89640 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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().
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.13%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 2.50% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 16 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 04b38d601239b4d9be641b412cf4b7456a041c67, before 2c6eede83b3de1268db92c7e49741761c954aa26 affected from 04b38d601239b4d9be641b412cf4b7456a041c67, before ce813e5eebf46851e872ce59bdc34dc5dd4e29a4 affected from 04b38d601239b4d9be641b412cf4b7456a041c67, before f3d1ae1e6bc4a9f559185b6e7bd2b6375ec2fdd4 affected from 04b38d601239b4d9be641b412cf4b7456a041c67, before 7f62817fe049b0f3652518c1ba72631ec1e0a322 affected from 04b38d601239b4d9be641b412cf4b7456a041c67, before b098f5e5858797827666e6cd73033f52fc39b5f6 affected from 04b38d601239b4d9be641b412cf4b7456a041c67, before c2a0dcb5a7a1516aa6eb6d5cedca6a8e76527028 affected from 04b38d601239b4d9be641b412cf4b7456a041c67, before b057ca17b656345d04669cb87f2aff9b31d873db affected from 04b38d601239b4d9be641b412cf4b7456a041c67, before 6c322f5cf7476ded7a9a20f7be72462065a03c68
Other versions: unaffected
|
| Linux |
affected 4.5 unaffected before 4.5 unaffected from 5.10.273 up to and including 5.10.* unaffected from 5.15.224 up to and including 5.15.* unaffected from 6.1.188 up to and including 6.1.* unaffected from 6.6.157 up to and including 6.6.* unaffected from 6.12.109 up to and including 6.12.* unaffected from 6.18.50 up to and including 6.18.* unaffected from 7.2.4 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-89640 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-89640
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-89640
trivy image --scanners vuln IMAGE | grep CVE-2026-89640
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/2c6eede83b3de1268db92c7e49741761c954aa26 git.kernel.org
- https://git.kernel.org/stable/c/ce813e5eebf46851e872ce59bdc34dc5dd4e29a4 git.kernel.org
- https://git.kernel.org/stable/c/f3d1ae1e6bc4a9f559185b6e7bd2b6375ec2fdd4 git.kernel.org
- https://git.kernel.org/stable/c/7f62817fe049b0f3652518c1ba72631ec1e0a322 git.kernel.org
- https://git.kernel.org/stable/c/b098f5e5858797827666e6cd73033f52fc39b5f6 git.kernel.org
- https://git.kernel.org/stable/c/c2a0dcb5a7a1516aa6eb6d5cedca6a8e76527028 git.kernel.org
- https://git.kernel.org/stable/c/b057ca17b656345d04669cb87f2aff9b31d873db git.kernel.org
- https://git.kernel.org/stable/c/6c322f5cf7476ded7a9a20f7be72462065a03c68 git.kernel.org
Source: the record CVE-2026-89640 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse