{"id":"CVE-2026-139229","summary":"ksmbd: reject foreign RPC pipe handles on IPC$ read and write","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: reject foreign RPC pipe handles on IPC$ read and write\n\nRPC pipe handles on IPC$ are allocated from a single server-global IDA,\nand ksmbd.mountd looks a pipe up by handle alone, with no session\ninformation.  smb2_read_pipe() and smb2_write_pipe() take the handle\nstraight from the client request (VolatileFileId) and pass it to the\ndaemon without checking that the requesting session opened it.  An\nauthenticated user can therefore issue an SMB2 READ or WRITE on IPC$\nwith another session's handle and receive that session's in-flight\nDCERPC response, or write attacker-chosen bytes into its pipe stream.\nA tree connect to IPC$, which every RPC client already has, is the only\nrequirement.\n\nValidate ownership before the transfer, the way the sibling pipe paths\nalready do: under sess-\u003erpc_lock, ksmbd_session_rpc_method() returns 0\nfor a handle the session did not open.  smb2_get_info_file_pipe() and\nthe FSCTL_PIPE_TRANSCEIVE ioctl already reject such handles; read and\nwrite were the remaining gap.  Reject them with STATUS_FILE_CLOSED, as\nthe ioctl path does.","modified":"2026-11-30T15:02:27.790250608Z","published":"2026-11-30T13:32:49.016Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139229.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4133bff4b11663c40be661f577a8d74d65339f12"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5daddaa135150540d6dabffb1274078fa9f6125b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7087474b2e2869ce75a2758c349f83fa3d039624"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8f09e8606f20ba66aa0c451794d11b010706f3b6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c3234ac719af97ca44fbe6f6dd70bf8aec8c6afc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/da25995071e5e0f3aa9a41160b00b2f833127b3e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139229.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139229"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9"},{"fixed":"5daddaa135150540d6dabffb1274078fa9f6125b"},{"fixed":"c3234ac719af97ca44fbe6f6dd70bf8aec8c6afc"},{"fixed":"4133bff4b11663c40be661f577a8d74d65339f12"},{"fixed":"8f09e8606f20ba66aa0c451794d11b010706f3b6"},{"fixed":"7087474b2e2869ce75a2758c349f83fa3d039624"},{"fixed":"da25995071e5e0f3aa9a41160b00b2f833127b3e"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139229.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.15.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139229.json"}}],"schema_version":"1.9.2"}