CVE-2025-39723
published high CVSS 3.1 · 7.1netfs: Fix unbuffered write error handling
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux288ace2f57c9d06dd2e42bd80d03747d879a4068 to < f08c80af3c9a9849cd178b4843b7c01d103506a1 · 288ace2f57c9d06dd2e42bd80d03747d879a4068 to < 387164a2b97e1f5404c6d0049a7409bac7d2bc5b · 288ace2f57c9d06dd2e42bd80d03747d879a4068 to < a3de58b12ce074ec05b8741fa28d62ccb1070468 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.10 (affected) · 0 to < 6.10 (unaffected · semver) · 6.12.44 through 6.12.* (unaffected · semver) · 6.16.4 through 6.16.* (unaffected · semver) · 6.17 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1208 | Fixed | Not stated | Amazon Linux assessment |
| Debian | trixie | linux | Advisory build | 6.12.48-1 | DSA-6008-1 |
| Oracle Linux | 10 | kernel-uekaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uekx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 10 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-corex86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-develaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-develx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-docx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modulesaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modulesx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-corex86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-desktopaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-desktopx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-extraaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-extrax86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-usbaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-usbx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-toolsaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-toolsx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64kaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-develaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-modulesaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-modules-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-modules-desktopaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-modules-extraaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-modules-usbaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-modules-wirelessaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uekaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uekx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-corex86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-desktopaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-desktopx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-usbaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-usbx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-wirelessaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-wirelessx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-develaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-develx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-docx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-modulesaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-modulesx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-modules-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-modules-corex86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-modules-desktopaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-modules-desktopx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-modules-extraaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-modules-extrax86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
- Scenarios
- en: AV:N - The netfs write collector processes write results derived from a remote SMB/9p server's responses, and the arming condition (every write subrequest failing) is entirely under the remote server's control — a malicious, compromised, or MITM'd file server simply returns STATUS_DISK_FULL/ACCESS_DENIED for the writes and the client kernel oopses. The vulnerable component is bound to the network stack via the cifs/9p transport. AC:L - The failure is deterministic: LONG_MAX always exceeds the total bytes held in the pipe, so the splice cleanup loop unconditionally runs past the valid buffers into a slot with NULL ops and faults. No race, no memory-layout dependency, no non-default config (cifs/9p with cache=none, or any O_DIRECT open). PR:N - A remote file server needs no credentials or privileges on the victim client to return write errors; in the equivalent local framing an ordinary unprivileged user with write access to the mount triggers it via splice()/cp with no capabilities at all. UI:R - The remote attacker cannot initiate the transfer itself — a client-side process must perform a splice-based write (splice/sendfile/copy_file_range, e.g. a routine `cp` onto the mounted share) for the bogus LONG_MAX return to reach iter_file_splice_write(). S:U - The corruption and crash are confined to the kernel of the affected host; no VM, IOMMU, or sandbox boundary is crossed. C:N - The fault is a NULL function-pointer dereference and pipe-ring state corruption; it yields no read primitive and discloses no kernel or file data to the attacker. I:L - ->write_iter() reports 0x7fffffffffffffff bytes written when nothing was written, so applications treat failed writes as successful (silent data loss), netfs_update_i_size() stamps a bogus/overflowed size onto the client inode, and the splice loop destroys unwritten pipe contents and leaves pipe->tail past pipe->head — limited, non-arbitrary data and metadata corruption. A:H - Reliable kernel NULL pointer dereference oops in iter_file_splice_write()/pipe_buf_release(), taken with the pipe mutex held, so the pipe is permanently locked and any other user of it hangs in D state; on panic_on_oops configurations it is a full system panic.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 288ace2f57c9d06dd2e42bd80d03747d879a4068 to < f08c80af3c9a9849cd178b4843b7c01d103506a1 (affected · git)288ace2f57c9d06dd2e42bd80d03747d879a4068 to < 387164a2b97e1f5404c6d0049a7409bac7d2bc5b (affected · git)288ace2f57c9d06dd2e42bd80d03747d879a4068 to < a3de58b12ce074ec05b8741fa28d62ccb1070468 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.10 (affected)0 to < 6.10 (unaffected · semver)6.12.44 through 6.12.* (unaffected · semver)6.16.4 through 6.16.* (unaffected · semver)6.17 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
netfs: Fix unbuffered write error handling
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f74d8ffed98ba48184cac8304d3aa409f8cdbd74e19cd9935a7c891545ab02c9
- Ingested
- 23 Sep 2026, 08:47:06 UTC
- Source record
- Official CVE record