# CVE-2026-93794: smb/client: flush dirty data before punching a hole

> 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-28)
- **Published:** 2026-09-24T16:02:27.716Z
- **Modified:** 2026-10-30T13:21:02.940Z

## Who should check

- Anyone running Linux \>= 31742c5a331766bc7df6b0d525df00c6cd20d5a6, \< 0c9fcab9bf1ef3516983f3de05a19c5658c7a01e; \>= 31742c5a331766bc7df6b0d525df00c6cd20d5a6, \< 216e469586057c29409e4ef8311d282388c6e251; \>= 31742c5a331766bc7df6b0d525df00c6cd20d5a6, \< 6c265aca08155e519a8f6f6071c59dff4f535f70; \>= 31742c5a331766bc7df6b0d525df00c6cd20d5a6, \< 39562a56cdb515f6635c3e7bfe6629439b18a169; \>= 31742c5a331766bc7df6b0d525df00c6cd20d5a6, \< d7d2adcd022baade5cab65ca492ce63421ce3a6e
- Anyone running Linux 3.17

## Description

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

smb/client: flush dirty data before punching a hole

Punching a hole after a large buffered write may leave the range
reported as data. Reproduce it with:

  xfs\_io -f \\
    -c "pwrite -b 3m -S 0x61 0 3m" \\
    -c "fpunch 1m 1m" \\
    -c "seek -h 0" \\
    -c "seek -d 1m" \\
    /mnt/test/repro

Punching 1 MiB at offset 1 MiB should produce:

  0          1 MiB       2 MiB       3 MiB
  \|  DATA    \|   HOLE    \|   DATA    \| EOF

Instead, the entire file is reported as data. SEEK\_HOLE(0) returns EOF,
and SEEK\_DATA(1M) returns 1M.

This happens because a dirty folio spanning the punched range can be
written back after the punch and refill the hole.

Fix this by flushing and waiting for dirty data in the punched range
before invalidating the page cache and issuing FSCTL\_SET\_ZERO\_DATA.

The xfstests generic/539 pass against Samba/ksmbd with this change.

## Affected and fixed versions

- Linux: \>= 31742c5a331766bc7df6b0d525df00c6cd20d5a6, \< 0c9fcab9bf1ef3516983f3de05a19c5658c7a01e; \>= 31742c5a331766bc7df6b0d525df00c6cd20d5a6, \< 216e469586057c29409e4ef8311d282388c6e251; \>= 31742c5a331766bc7df6b0d525df00c6cd20d5a6, \< 6c265aca08155e519a8f6f6071c59dff4f535f70; \>= 31742c5a331766bc7df6b0d525df00c6cd20d5a6, \< 39562a56cdb515f6635c3e7bfe6629439b18a169; \>= 31742c5a331766bc7df6b0d525df00c6cd20d5a6, \< d7d2adcd022baade5cab65ca492ce63421ce3a6e (cvelist)
- Linux: 3.17 (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-93794. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-93794.md
Affected: Linux >= 31742c5a331766bc7df6b0d525df00c6cd20d5a6, < 0c9fcab9bf1ef3516983f3de05a19c5658c7a01e; >= 31742c5a331766bc7df6b0d525df00c6cd20d5a6, < 216e469586057c29409e4ef8311d282388c6e251; >= 31742c5a331766bc7df6b0d525df00c6cd20d5a6, < 6c265aca08155e519a8f6f6071c59dff4f535f70; >= 31742c5a331766bc7df6b0d…
Fixed in: Linux 0c9fcab9bf1ef3516983f3de05a19c5658c7a01e, Linux 216e469586057c29409e4ef8311d282388c6e251, Linux 6c265aca08155e519a8f6f6071c59dff4f535f70, Linux 39562a56cdb515f6635c3e7bfe6629439b18a169

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-93794 being exploited?

There is no confirmed exploitation: CVE-2026-93794 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-28).

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

It has no CVSS score yet. Unknown.

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

Linux \>= 31742c5a331766bc7df6b0d525df00c6cd20d5a6, \< 0c9fcab9bf1ef3516983f3de05a19c5658c7a01e; \>= 31742c5a331766bc7df6b0d525df00c6cd20d5a6, \< 216e469586057c29409e4ef8311d282388c6e251; \>= 31742c5a331766bc7df6b0d525df00c6cd20d5a6, \< 6c265aca08155e519a8f6f6071c59dff4f535f70; \>= 31742c5a331766bc7df6b0d525df00c6cd20d5a6, \< 39562a56cdb515f6635c3e7bfe6629439b18a169; \>= 31742c5a331766bc7df6b0d525df00c6cd20d5a6, \< d7d2adcd022baade5cab65ca492ce63421ce3a6e; Linux 3.17.

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

Yes. Fixed in Linux 0c9fcab9bf1ef3516983f3de05a19c5658c7a01e, Linux 216e469586057c29409e4ef8311d282388c6e251, Linux 6c265aca08155e519a8f6f6071c59dff4f535f70, Linux 39562a56cdb515f6635c3e7bfe6629439b18a169. No fix listed yet: follow the vendor advisory.

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

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/0c9fcab9bf1ef3516983f3de05a19c5658c7a01e>
- other: <https://git.kernel.org/stable/c/216e469586057c29409e4ef8311d282388c6e251>
- other: <https://git.kernel.org/stable/c/6c265aca08155e519a8f6f6071c59dff4f535f70>
- other: <https://git.kernel.org/stable/c/39562a56cdb515f6635c3e7bfe6629439b18a169>
- other: <https://git.kernel.org/stable/c/d7d2adcd022baade5cab65ca492ce63421ce3a6e>

## 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-93794>

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