Improper session check on IPC$ pipe handles in Linux ksmbd
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA.
Summary
The Linux kernel ksmbd SMB server, from version 5.15 before the fixed releases, does not check that a session opened an RPC pipe handle on IPC$ before serving SMB2 READ or WRITE requests on it. An authenticated user with a tree connection to IPC$ can read another session's in-flight DCERPC response or write attacker-chosen bytes into its pipe stream.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
In the Linux kernel, the following vulnerability has been resolved: ksmbd: reject foreign RPC pipe handles on IPC$ read and write RPC pipe handles on IPC$ are allocated from a single server-global IDA, and ksmbd.mountd looks a pipe up by handle alone, with no session information. smb2_read_pipe() and smb2_write_pipe() take the handle straight from the client request (VolatileFileId) and pass it to the daemon without checking that the requesting session opened it. An authenticated user can therefore issue an SMB2 READ or WRITE on IPC$ with another session's handle and receive that session's in-flight DCERPC response, or write attacker-chosen bytes into its pipe stream. A tree connect to IPC$, which every RPC client already has, is the only requirement. Validate ownership before the transfer, the way the sibling pipe paths already do: under sess->rpc_lock, ksmbd_session_rpc_method() returns 0 for a handle the session did not open. smb2_get_info_file_pipe() and the FSCTL_PIPE_TRANSCEIVE ioctl already reject such handles; read and write were the remaining gap. Reject them with STATUS_FILE_CLOSED, as the ioctl path does.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Update the Linux kernel to 6.1.193, 6.6.163, 6.12.119, 6.18.65, or 7.3.6, or to 7.4-rc1 or later. The sources list no fixed version for the other Linux kernel branches.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA Linux (Linux) Fixed in 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1
Timeline
- 2026-11-30 Threatist record created from CVE-2026-139229
- 2026-11-30 Alias added: GHSA-h2v5-qmjr-r7c4
References
Other 6
- https://git.kernel.org/stable/c/5daddaa135150540d6dabffb1274078fa9f6125b
- https://git.kernel.org/stable/c/c3234ac719af97ca44fbe6f6dd70bf8aec8c6afc
- https://git.kernel.org/stable/c/4133bff4b11663c40be661f577a8d74d65339f12
- https://git.kernel.org/stable/c/8f09e8606f20ba66aa0c451794d11b010706f3b6
- https://git.kernel.org/stable/c/7087474b2e2869ce75a2758c349f83fa3d039624
- https://git.kernel.org/stable/c/da25995071e5e0f3aa9a41160b00b2f833127b3e
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-139229 · CVE Program
- CVE-2026-139229 · NVD
- GHSA-h2v5-qmjr-r7c4 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences