CVE-2025-38139
published critical CVSS 3.1 · 9.8netfs: Fix oops in write-retry from mis-resetting the subreq iterator
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxcd0277ed0c188dd40e7744e89299af7b78831ca4 to < e0fefe9bc07e6101fdc57abda3644f296c114e31 · cd0277ed0c188dd40e7744e89299af7b78831ca4 to < bd0edaf99a920b1a9decd773179caacacb61d0fd · cd0277ed0c188dd40e7744e89299af7b78831ca4 to < 4481f7f2b3df123ec77e828c849138f75cff2bf2 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.12 (affected) · 0 to < 6.12 (unaffected · semver) · 6.12.37 through 6.12.* (unaffected · semver) · 6.15.3 through 6.15.* (unaffected · semver) · 6.16 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-1130 | Fixed | Not stated | Amazon Linux assessment |
| Ubuntu | noble | linux-aws-6.14 | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-aws-6.14-cloud-tools-6.14.0-1013 | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-aws-6.14-headers-6.14.0-1013 | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7769-3 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | noble | linux-aws-6.14-tools-6.14.0-1013 | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1012-oem | Advisory build | 6.14.0-1012.12 | USN-7771-1 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1012-realtime | Advisory build | 6.14.0-1012.12~24.04.1 | USN-7769-2 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1013-aws | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1013-aws-64k | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1013-oracle | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7789-1 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1013-oracle-64k | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7789-1 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1016-gcp | Advisory build | 6.14.0-1016.17~24.04.1 | USN-7769-1 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1016-gcp-64k | Advisory build | 6.14.0-1016.17~24.04.1 | USN-7769-1 |
| Ubuntu | noble | linux-buildinfo-6.14.0-32-generic | Advisory build | 6.14.0-32.32~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-buildinfo-6.14.0-32-generic-64k | Advisory build | 6.14.0-32.32~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-cloud-tools-6.14.0-1012-realtime | Advisory build | 6.14.0-1012.12~24.04.1 | USN-7769-2 |
| Ubuntu | noble | linux-cloud-tools-6.14.0-1013-aws | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-cloud-tools-6.14.0-1013-aws-64k | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-cloud-tools-6.14.0-32-generic | Advisory build | 6.14.0-32.32~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-gcp-6.14 | Advisory build | 6.14.0-1016.17~24.04.1 | USN-7769-1 |
| Ubuntu | noble | linux-gcp-6.14-headers-6.14.0-1016 | Advisory build | 6.14.0-1016.17~24.04.1 | USN-7769-1 |
| Ubuntu | noble | linux-gcp-6.14-tools-6.14.0-1016 | Advisory build | 6.14.0-1016.17~24.04.1 | USN-7769-1 |
| Ubuntu | noble | linux-headers-6.14.0-1012-oem | Advisory build | 6.14.0-1012.12 | USN-7771-1 |
| Ubuntu | noble | linux-headers-6.14.0-1012-realtime | Advisory build | 6.14.0-1012.12~24.04.1 | USN-7769-2 |
| Ubuntu | noble | linux-headers-6.14.0-1013-aws | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-headers-6.14.0-1013-aws-64k | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-headers-6.14.0-1013-oracle | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7789-1 |
| Ubuntu | noble | linux-headers-6.14.0-1013-oracle-64k | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7789-1 |
| Ubuntu | noble | linux-headers-6.14.0-1016-gcp | Advisory build | 6.14.0-1016.17~24.04.1 | USN-7769-1 |
| Ubuntu | noble | linux-headers-6.14.0-1016-gcp-64k | Advisory build | 6.14.0-1016.17~24.04.1 | USN-7769-1 |
| Ubuntu | noble | linux-headers-6.14.0-32-generic | Advisory build | 6.14.0-32.32~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-headers-6.14.0-32-generic-64k | Advisory build | 6.14.0-32.32~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-hwe-6.14 | Advisory build | 6.14.0-32.32~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-hwe-6.14-cloud-tools-6.14.0-32 | Advisory build | 6.14.0-32.32~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-hwe-6.14-headers-6.14.0-32 | Advisory build | 6.14.0-32.32~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-hwe-6.14-tools-6.14.0-32 | Advisory build | 6.14.0-32.32~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-image-6.14.0-32-generic | Advisory build | 6.14.0-32.32~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1012-oem | Advisory build | 6.14.0-1012.12 | USN-7771-1 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1012-realtime | Advisory build | 6.14.0-1012.12~24.04.1 | USN-7769-2 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1013-aws | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1013-aws-64k | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1013-oracle | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7789-1 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1013-oracle-64k | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7789-1 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1016-gcp | Advisory build | 6.14.0-1016.17~24.04.1 | USN-7769-1 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1016-gcp-64k | Advisory build | 6.14.0-1016.17~24.04.1 | USN-7769-1 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-32-generic | Advisory build | 6.14.0-32.32~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-32-generic-64k | Advisory build | 6.14.0-32.32~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-lib-rust-6.14.0-1016-gcp | Advisory build | 6.14.0-1016.17~24.04.1 | USN-7769-1 |
| Ubuntu | noble | linux-lib-rust-6.14.0-32-generic | Advisory build | 6.14.0-32.32~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-modules-6.14.0-1012-oem | Advisory build | 6.14.0-1012.12 | USN-7771-1 |
| Ubuntu | noble | linux-modules-6.14.0-1012-realtime | Advisory build | 6.14.0-1012.12~24.04.1 | USN-7769-2 |
| Ubuntu | noble | linux-modules-6.14.0-1013-aws | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-modules-6.14.0-1013-aws-64k | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-modules-6.14.0-1013-oracle | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7789-1 |
| Ubuntu | noble | linux-modules-6.14.0-1013-oracle-64k | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7789-1 |
| Ubuntu | noble | linux-modules-6.14.0-1016-gcp | Advisory build | 6.14.0-1016.17~24.04.1 | USN-7769-1 |
| Ubuntu | noble | linux-modules-6.14.0-1016-gcp-64k | Advisory build | 6.14.0-1016.17~24.04.1 | USN-7769-1 |
| Ubuntu | noble | linux-modules-6.14.0-32-generic | Advisory build | 6.14.0-32.32~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-modules-6.14.0-32-generic-64k | Advisory build | 6.14.0-32.32~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1012-realtime | Advisory build | 6.14.0-1012.12~24.04.1 | USN-7769-2 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1013-aws | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1013-aws-64k | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1013-oracle | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7789-1 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1013-oracle-64k | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7789-1 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1016-gcp | Advisory build | 6.14.0-1016.17~24.04.1 | USN-7769-1 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1016-gcp-64k | Advisory build | 6.14.0-1016.17~24.04.1 | USN-7769-1 |
| Ubuntu | noble | linux-modules-extra-6.14.0-32-generic | Advisory build | 6.14.0-32.32~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-modules-ipu6-6.14.0-1012-oem | Advisory build | 6.14.0-1012.12 | USN-7771-1 |
| Ubuntu | noble | linux-modules-ipu6-6.14.0-32-generic | Advisory build | 6.14.0-32.32~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-modules-ipu7-6.14.0-1012-oem | Advisory build | 6.14.0-1012.12 | USN-7771-1 |
| Ubuntu | noble | linux-modules-ipu7-6.14.0-32-generic | Advisory build | 6.14.0-32.32~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-modules-iwlwifi-6.14.0-1012-oem | Advisory build | 6.14.0-1012.12 | USN-7771-1 |
| Ubuntu | noble | linux-modules-iwlwifi-6.14.0-1012-realtime | Advisory build | 6.14.0-1012.12~24.04.1 | USN-7769-2 |
| Ubuntu | noble | linux-modules-iwlwifi-6.14.0-32-generic | Advisory build | 6.14.0-32.32~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-modules-usbio-6.14.0-1012-oem | Advisory build | 6.14.0-1012.12 | USN-7771-1 |
| Ubuntu | noble | linux-modules-usbio-6.14.0-32-generic | Advisory build | 6.14.0-32.32~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-modules-vision-6.14.0-1012-oem | Advisory build | 6.14.0-1012.12 | USN-7771-1 |
| Ubuntu | noble | linux-modules-vision-6.14.0-32-generic | Advisory build | 6.14.0-32.32~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-oem-6.14 | Advisory build | 6.14.0-1012.12 | USN-7771-1 |
| Ubuntu | noble | linux-oem-6.14-headers-6.14.0-1012 | Advisory build | 6.14.0-1012.12 | USN-7771-1 |
| Ubuntu | noble | linux-oem-6.14-tools-6.14.0-1012 | Advisory build | 6.14.0-1012.12 | USN-7771-1 |
| Ubuntu | noble | linux-oracle-6.14 | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7789-1 |
| Ubuntu | noble | linux-oracle-6.14-headers-6.14.0-1013 | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7789-1 |
| Ubuntu | noble | linux-oracle-6.14-tools-6.14.0-1013 | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7789-1 |
| Ubuntu | noble | linux-realtime-6.14 | Advisory build | 6.14.0-1012.12~24.04.1 | USN-7769-2 |
| Ubuntu | noble | linux-realtime-6.14-cloud-tools-6.14.0-1012 | Advisory build | 6.14.0-1012.12~24.04.1 | USN-7769-2 |
| Ubuntu | noble | linux-realtime-6.14-headers-6.14.0-1012 | Advisory build | 6.14.0-1012.12~24.04.1 | USN-7769-2 |
| Ubuntu | noble | linux-realtime-6.14-tools-6.14.0-1012 | Advisory build | 6.14.0-1012.12~24.04.1 | USN-7769-2 |
| Ubuntu | noble | linux-tools-6.14.0-1012-oem | Advisory build | 6.14.0-1012.12 | USN-7771-1 |
| Ubuntu | noble | linux-tools-6.14.0-1012-realtime | Advisory build | 6.14.0-1012.12~24.04.1 | USN-7769-2 |
| Ubuntu | noble | linux-tools-6.14.0-1013-aws | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-tools-6.14.0-1013-aws-64k | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-tools-6.14.0-1013-oracle | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7789-1 |
| Ubuntu | noble | linux-tools-6.14.0-1013-oracle-64k | Advisory build | 6.14.0-1013.13~24.04.1 | USN-7789-1 |
| Ubuntu | noble | linux-tools-6.14.0-1016-gcp | Advisory build | 6.14.0-1016.17~24.04.1 | USN-7769-1 |
| Ubuntu | noble | linux-tools-6.14.0-1016-gcp-64k | Advisory build | 6.14.0-1016.17~24.04.1 | USN-7769-1 |
| Ubuntu | noble | linux-tools-6.14.0-32-generic | Advisory build | 6.14.0-32.32~24.04.1 | USN-7769-3 |
| Ubuntu | noble | linux-tools-6.14.0-32-generic-64k | Advisory build | 6.14.0-32.32~24.04.1 | USN-7769-3 |
| Ubuntu | plucky | linux-azure | Advisory build | 6.14.0-1012.12 | USN-7770-1 |
| Ubuntu | plucky | linux-azure-cloud-tools-6.14.0-1012 | Advisory build | 6.14.0-1012.12 | USN-7770-1 |
| Ubuntu | plucky | linux-azure-headers-6.14.0-1012 | Advisory build | 6.14.0-1012.12 | USN-7770-1 |
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 oops in write-retry from mis-resetting the subreq iterator Fix the resetting of the subrequest iterator in netfs_retry_write_stream() to use the iterator-reset function as the iterator may have been shortened by a previous retry. In such a case, the amount of data to be written by the subrequest is not "subreq->len" but "subreq->len - subreq->transferred". Without this, KASAN may see an error in iov_iter_revert(): BUG: KASAN: slab-out-of-bounds in iov_iter_revert lib/iov_iter.c:633 [inline] BUG: KASAN: slab-out-of-bounds in iov_iter_revert+0x443/0x5a0 lib/iov_iter.c:611 Read of size 4 at addr ffff88802912a0b8 by task kworker/u32:7/1147 CPU: 1 UID: 0 PID: 1147 Comm: kworker/u32:7 Not tainted 6.15.0-rc6-syzkaller-00052-g9f35e33144ae #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: events_unbound netfs_write_collection_worker Call Trace: <TASK> __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0xc3/0x670 mm/kasan/report.c:521 kasan_report+0xe0/0x110 mm/kasan/report.c:634 iov_iter_revert lib/iov_iter.c:633 [inline] iov_iter_revert+0x443/0x5a0 lib/iov_iter.c:611 netfs_retry_write_stream fs/netfs/write_retry.c:44 [inline] netfs_retry_writes+0x166d/0x1a50 fs/netfs/write_retry.c:231 netfs_collect_write_results fs/netfs/write_collect.c:352 [inline] netfs_write_collection_worker+0x23fd/0x3830 fs/netfs/write_collect.c:374 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3400 kthread+0x3c2/0x780 kernel/kthread.c:464 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 </TASK>
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
- 9.8 / 10
- Severity
- critical
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - The trigger is entirely under the control of the remote 9p server, which drives the retry path by reporting short byte counts in its RWRITE replies; the 9p client supports trans=tcp/trans=rdma to a remote peer and the protocol is unauthenticated and unencrypted by default, so an on-path attacker can inject the same replies. AC:L - Exploitation is fully deterministic — the server simply answers two consecutive TWRITEs on the same subrequest with a partial count, and the second retry over-reverts the iterator by an attacker-chosen amount; there is no race, timing window, or uncontrollable memory-layout precondition. PR:N - The malicious or compromised 9p server (or an on-path attacker on plaintext 9p/TCP) holds no credentials on the victim client, and 9p mounts are typically established with no authentication at all. UI:N - No per-instance victim action is needed: on an existing 9p mount, ordinary file writes and background writeback from the kworker reach the retry path, and the server alone decides when to emit the short write that arms it. S:U - The out-of-bounds access and the resulting corrupted iterator stay within the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - iov_iter_revert() reads out of bounds backwards off the kvmalloc'd bvec array (or off the head of the folio_queue chain) by an attacker-chosen distance, and the resulting forged bio_vec makes the client transmit memory pointed to by an adjacent-heap page pointer straight to the attacker-controlled server, yielding arbitrary kernel memory disclosure. I:H - The corrupted iterator carries bv_page/bv_len values sourced from attacker-groomable adjacent heap memory (or a stale/freed folio_queue), so subsequent I/O submission and page reference get/put operate on arbitrary struct page pointers, giving refcount corruption and a path to control-flow hijack. A:H - The bug is a confirmed oops — syzbot reproduced a KASAN slab-out-of-bounds in iov_iter_revert() from netfs_write_collection_worker, and the unbounded backwards walk readily runs off the slab or dereferences a NULL folioq->prev, panicking the kernel.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | cd0277ed0c188dd40e7744e89299af7b78831ca4 to < e0fefe9bc07e6101fdc57abda3644f296c114e31 (affected · git)cd0277ed0c188dd40e7744e89299af7b78831ca4 to < bd0edaf99a920b1a9decd773179caacacb61d0fd (affected · git)cd0277ed0c188dd40e7744e89299af7b78831ca4 to < 4481f7f2b3df123ec77e828c849138f75cff2bf2 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.12 (affected)0 to < 6.12 (unaffected · semver)6.12.37 through 6.12.* (unaffected · semver)6.15.3 through 6.15.* (unaffected · semver)6.16 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
netfs: Fix oops in write-retry from mis-resetting the subreq iterator
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 18d48ce5644fd42799bb7a8016af70e2fa00358ed71b466aa3b7d1037552ce7f
- Ingested
- 23 Sep 2026, 08:46:29 UTC
- Source record
- Official CVE record