ksmbd: reject foreign RPC pipe handles on IPC$ read and write

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

Description

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.

ProductVersions
Linux Linuxe2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before 5daddaa135150540d6dabffb1274078fa9f6125b Affectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before c3234ac719af97ca44fbe6f6dd70bf8aec8c6afc Affectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before 4133bff4b11663c40be661f577a8d74d65339f12 Affectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before 8f09e8606f20ba66aa0c451794d11b010706f3b6 Affectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before 7087474b2e2869ce75a2758c349f83fa3d039624 Affectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before da25995071e5e0f3aa9a41160b00b2f833127b3e Affected
Linux Linux5.15 Affectedbefore 5.15 Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.