Impact
A negative loff_t occurs in the CIFS server’s remap function when a remap request with zero length and an offset beyond the source file size is processed. The integer underflow can lead to an out‑of‑bounds write (CWE-787), corrupting the ByteCount field of the FSCTL_DUPLICATE_EXTENTS_TO_FILE request. The miscalculation can invert the write range handled by the kernel, potentially leading to filesystem corruption or a crash of the CIFS service.
Affected Systems
All Linux kernel versions that implement the CIFS server prior to the inclusion of the bound check introduced by the referenced commit SHA.
Risk and Exploitability
The flaw is exploitable by a CIFS client that can issue the FSCTL_DUPLICATE_EXTENTS_TO_FILE ioctl over SMB. The attacker can trigger the underflow by specifying an offset greater than the source file size, which may cause denial of service or.3, the vulnerability is considered medium severity. The EPSS score is <1%, indicating a low likelihood of exploitation, and the vulnerability is not listed in the CISA KEV catalog. The systems that expose CIFS services.
OpenCVE Enrichment