CVE-2026-89640
Received Received - Intake

Linux kernel loff_t Underflow in cifs_remap_file_range

Vulnerability report for CVE-2026-89640, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-11

Last updated on: 2026-09-14

Assigner: kernel.org

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().

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-11
Last Modified
2026-09-14
Generated
2026-10-02
AI Q&A
2026-09-12
EPSS Evaluated
2026-10-01
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is in the Linux kernel's CIFS (Common Internet File System) component. It involves a bug in the cifs_remap_file_range() function where a negative length value can be calculated when the offset exceeds the source file size. This negative value corrupts the ByteCount in a file duplication request and inverts the range in filemap_write_and_wait_range().

Detection Guidance

This vulnerability affects the Linux kernel's CIFS (Common Internet File System) module. Detection requires checking the kernel version and CIFS module behavior. Use commands like 'uname -a' to check kernel version and 'lsmod | grep cifs' to verify CIFS module loading. Monitor for filesystem corruption or failed FSCTL_DUPLICATE_EXTENTS_TO_FILE operations.

Impact Analysis

This vulnerability could allow an attacker to corrupt file operations, potentially leading to data corruption or unexpected behavior in file duplication operations. It may cause system instability or crashes if exploited.

Compliance Impact

This vulnerability does not directly affect compliance with GDPR, HIPAA, or similar standards. It is a low-level kernel issue in the CIFS filesystem driver that could lead to data corruption or unexpected behavior in file operations under specific conditions. No evidence suggests it impacts data protection, privacy, or security controls required by these regulations.

Mitigation Strategies

Update the Linux kernel to the latest patched version. If immediate update is not possible, disable the CIFS module using 'modprobe -r cifs' or restrict network access to CIFS shares. Monitor filesystem operations for errors.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-89640. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart