# CVE-2025-39723: netfs: Fix unbuffered write error handling

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

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.49% (percentile 35, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2025-09-05T17:21:31.137Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 288ace2f57c9d06dd2e42bd80d03747d879a4068, \< f08c80af3c9a9849cd178b4843b7c01d103506a1; \>= 288ace2f57c9d06dd2e42bd80d03747d879a4068, \< 387164a2b97e1f5404c6d0049a7409bac7d2bc5b; \>= 288ace2f57c9d06dd2e42bd80d03747d879a4068, \< a3de58b12ce074ec05b8741fa28d62ccb1070468
- Anyone running Linux 6.10

## Description

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

netfs: Fix unbuffered write error handling

If all the subrequests in an unbuffered write stream fail, the subrequest
collector doesn't update the stream-\>transferred value and it retains its
initial LONG\_MAX value.  Unfortunately, if all active streams fail, then we
take the smallest value of { LONG\_MAX, LONG\_MAX, ... } as the value to set
in wreq-\>transferred - which is then returned from -\>write\_iter().

LONG\_MAX was chosen as the initial value so that all the streams can be
quickly assessed by taking the smallest value of all stream-\>transferred -
but this only works if we've set any of them.

Fix this by adding a flag to indicate whether the value in
stream-\>transferred is valid and checking that when we integrate the
values.  stream-\>transferred can then be initialised to zero.

This was found by running the generic/750 xfstest against cifs with
cache=none.  It splices data to the target file.  Once (if) it has used up
all the available scratch space, the writes start failing with ENOSPC.
This causes -\>write\_iter() to fail.  However, it was returning
wreq-\>transferred, i.e. LONG\_MAX, rather than an error (because it thought
the amount transferred was non-zero) and iter\_file\_splice\_write() would
then try to clean up that amount of pipe bufferage - leading to an oops
when it overran.  The kernel log showed:

    CIFS: VFS: Send error in write = -28

followed by:

    BUG: kernel NULL pointer dereference, address: 0000000000000008

with:

    RIP: 0010:iter\_file\_splice\_write+0x3a4/0x520
    do\_splice+0x197/0x4e0

or:

    RIP: 0010:pipe\_buf\_release (include/linux/pipe\_fs\_i.h:282)
    iter\_file\_splice\_write (fs/splice.c:755)

Also put a warning check into splice to announce if -\>write\_iter() returned
that it had written more than it was asked to.

## Affected and fixed versions

- Linux: \>= 288ace2f57c9d06dd2e42bd80d03747d879a4068, \< f08c80af3c9a9849cd178b4843b7c01d103506a1; \>= 288ace2f57c9d06dd2e42bd80d03747d879a4068, \< 387164a2b97e1f5404c6d0049a7409bac7d2bc5b; \>= 288ace2f57c9d06dd2e42bd80d03747d879a4068, \< a3de58b12ce074ec05b8741fa28d62ccb1070468 (cvelist)
- Linux: 6.10 (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-2025-39723. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39723.md
Affected: Linux >= 288ace2f57c9d06dd2e42bd80d03747d879a4068, < f08c80af3c9a9849cd178b4843b7c01d103506a1; >= 288ace2f57c9d06dd2e42bd80d03747d879a4068, < 387164a2b97e1f5404c6d0049a7409bac7d2bc5b; >= 288ace2f57c9d06dd2e42bd80d03747d879a4068, < a3de58b12ce074ec05b8741fa28d62ccb1070468; Linux 6.10
Fixed in: Linux 387164a2b97e1f5404c6d0049a7409bac7d2bc5b

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-2025-39723 being exploited?

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

### How serious is CVE-2025-39723?

High: CVSS 7.1 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2025-39723?

Linux \>= 288ace2f57c9d06dd2e42bd80d03747d879a4068, \< f08c80af3c9a9849cd178b4843b7c01d103506a1; \>= 288ace2f57c9d06dd2e42bd80d03747d879a4068, \< 387164a2b97e1f5404c6d0049a7409bac7d2bc5b; \>= 288ace2f57c9d06dd2e42bd80d03747d879a4068, \< a3de58b12ce074ec05b8741fa28d62ccb1070468; Linux 6.10.

### Is there a fix for CVE-2025-39723?

Yes. Fixed in Linux 387164a2b97e1f5404c6d0049a7409bac7d2bc5b. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-39723?

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

- patch: <https://git.kernel.org/stable/c/f08c80af3c9a9849cd178b4843b7c01d103506a1>
- patch: <https://git.kernel.org/stable/c/387164a2b97e1f5404c6d0049a7409bac7d2bc5b>
- patch: <https://git.kernel.org/stable/c/a3de58b12ce074ec05b8741fa28d62ccb1070468>

## 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-2025-39723>

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