# CVE-2026-99137: cifs: don't update i\_size in cifs\_do\_truncate without a cached handle

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-10-28T10:34:49.266Z
- **Modified:** 2026-10-28T11:17:33.630Z

## Who should check

- Anyone running Linux \>= 110fee6b9bb58a5c50047fc2594d415f741b591e, \< 04d020b3d0b58a1b7e116900e4095b96a7f4e11a; \>= 110fee6b9bb58a5c50047fc2594d415f741b591e, \< 88a51743cd8094b76fd910f53f718747c7729cc8; \>= 110fee6b9bb58a5c50047fc2594d415f741b591e, \< fe39cd9d48f2346605f3746e0cc19e89d5f373eb
- Anyone running Linux 6.18

## Description

In the Linux kernel, the following vulnerability has been resolved:

cifs: don't update i\_size in cifs\_do\_truncate without a cached handle

If find\_writable\_file() returns null, cifs\_file\_flush will return
0 without issuing set\_file\_size, and the outer 'if (!rc)' block
will set i\_size to 0 before telling the server to truncate.  If
the cifs\_open() then fails, the inode will have size 0, while
the server file is unchanged.

Move the netfs\_resize\_file() and cifs\_setsize() into the 'if
(cfile)', so they only run after a successful set\_file\_size.

In the no-handle else branch, evict stale pages with
truncate\_inode\_pages before the O\_TRUNC open to dispose of old
cache pages, and let the open response set the i\_size.

## Affected and fixed versions

- Linux: \>= 110fee6b9bb58a5c50047fc2594d415f741b591e, \< 04d020b3d0b58a1b7e116900e4095b96a7f4e11a; \>= 110fee6b9bb58a5c50047fc2594d415f741b591e, \< 88a51743cd8094b76fd910f53f718747c7729cc8; \>= 110fee6b9bb58a5c50047fc2594d415f741b591e, \< fe39cd9d48f2346605f3746e0cc19e89d5f373eb (cvelist)
- Linux: 6.18 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99137. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99137.md
Affected: Linux >= 110fee6b9bb58a5c50047fc2594d415f741b591e, < 04d020b3d0b58a1b7e116900e4095b96a7f4e11a; >= 110fee6b9bb58a5c50047fc2594d415f741b591e, < 88a51743cd8094b76fd910f53f718747c7729cc8; >= 110fee6b9bb58a5c50047fc2594d415f741b591e, < fe39cd9d48f2346605f3746e0cc19e89d5f373eb; Linux 6.18
Fixed in: Linux 04d020b3d0b58a1b7e116900e4095b96a7f4e11a, Linux 88a51743cd8094b76fd910f53f718747c7729cc8

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99137 being exploited?

There is no confirmed exploitation: CVE-2026-99137 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-99137?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-99137?

Linux \>= 110fee6b9bb58a5c50047fc2594d415f741b591e, \< 04d020b3d0b58a1b7e116900e4095b96a7f4e11a; \>= 110fee6b9bb58a5c50047fc2594d415f741b591e, \< 88a51743cd8094b76fd910f53f718747c7729cc8; \>= 110fee6b9bb58a5c50047fc2594d415f741b591e, \< fe39cd9d48f2346605f3746e0cc19e89d5f373eb; Linux 6.18.

### Is there a fix for CVE-2026-99137?

Yes. Fixed in Linux 04d020b3d0b58a1b7e116900e4095b96a7f4e11a, Linux 88a51743cd8094b76fd910f53f718747c7729cc8. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-99137?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/04d020b3d0b58a1b7e116900e4095b96a7f4e11a>
- other: <https://git.kernel.org/stable/c/88a51743cd8094b76fd910f53f718747c7729cc8>
- other: <https://git.kernel.org/stable/c/fe39cd9d48f2346605f3746e0cc19e89d5f373eb>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99137>

HTML: <https://flawdb.com/CVE-2026-99137> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99137>
