{"api_version":"1","generated_at":"2026-11-30T15:21:42+00:00","cve":"CVE-2026-139229","urls":{"html":"https://cve.report/CVE-2026-139229","api":"https://cve.report/api/cve/CVE-2026-139229.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139229","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139229"},"summary":{"title":"ksmbd: reject foreign RPC pipe handles on IPC$ read and write","description":"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->rpc_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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:44","updated_at":"2026-11-30 14:18:44"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/8f09e8606f20ba66aa0c451794d11b010706f3b6","name":"https://git.kernel.org/stable/c/8f09e8606f20ba66aa0c451794d11b010706f3b6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7087474b2e2869ce75a2758c349f83fa3d039624","name":"https://git.kernel.org/stable/c/7087474b2e2869ce75a2758c349f83fa3d039624","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5daddaa135150540d6dabffb1274078fa9f6125b","name":"https://git.kernel.org/stable/c/5daddaa135150540d6dabffb1274078fa9f6125b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/da25995071e5e0f3aa9a41160b00b2f833127b3e","name":"https://git.kernel.org/stable/c/da25995071e5e0f3aa9a41160b00b2f833127b3e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c3234ac719af97ca44fbe6f6dd70bf8aec8c6afc","name":"https://git.kernel.org/stable/c/c3234ac719af97ca44fbe6f6dd70bf8aec8c6afc","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4133bff4b11663c40be661f577a8d74d65339f12","name":"https://git.kernel.org/stable/c/4133bff4b11663c40be661f577a8d74d65339f12","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139229","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139229","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 5daddaa135150540d6dabffb1274078fa9f6125b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 c3234ac719af97ca44fbe6f6dd70bf8aec8c6afc git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 4133bff4b11663c40be661f577a8d74d65339f12 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 8f09e8606f20ba66aa0c451794d11b010706f3b6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 7087474b2e2869ce75a2758c349f83fa3d039624 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 da25995071e5e0f3aa9a41160b00b2f833127b3e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.15","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/smb/server/smb2pdu.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"5daddaa135150540d6dabffb1274078fa9f6125b","status":"affected","version":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","versionType":"git"},{"lessThan":"c3234ac719af97ca44fbe6f6dd70bf8aec8c6afc","status":"affected","version":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","versionType":"git"},{"lessThan":"4133bff4b11663c40be661f577a8d74d65339f12","status":"affected","version":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","versionType":"git"},{"lessThan":"8f09e8606f20ba66aa0c451794d11b010706f3b6","status":"affected","version":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","versionType":"git"},{"lessThan":"7087474b2e2869ce75a2758c349f83fa3d039624","status":"affected","version":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","versionType":"git"},{"lessThan":"da25995071e5e0f3aa9a41160b00b2f833127b3e","status":"affected","version":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/smb/server/smb2pdu.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.15"},{"lessThan":"5.15","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.15","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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->rpc_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."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:32:49.016Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/5daddaa135150540d6dabffb1274078fa9f6125b"},{"url":"https://git.kernel.org/stable/c/c3234ac719af97ca44fbe6f6dd70bf8aec8c6afc"},{"url":"https://git.kernel.org/stable/c/4133bff4b11663c40be661f577a8d74d65339f12"},{"url":"https://git.kernel.org/stable/c/8f09e8606f20ba66aa0c451794d11b010706f3b6"},{"url":"https://git.kernel.org/stable/c/7087474b2e2869ce75a2758c349f83fa3d039624"},{"url":"https://git.kernel.org/stable/c/da25995071e5e0f3aa9a41160b00b2f833127b3e"}],"title":"ksmbd: reject foreign RPC pipe handles on IPC$ read and write","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139229","datePublished":"2026-11-30T13:32:49.016Z","dateReserved":"2026-11-30T13:22:15.921Z","dateUpdated":"2026-11-30T13:32:49.016Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:44","lastModifiedDate":"2026-11-30 14:18:44","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139229","Ordinal":"1","Title":"ksmbd: reject foreign RPC pipe handles on IPC$ read and write","CVE":"CVE-2026-139229","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139229","Ordinal":"1","NoteData":"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->rpc_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.","Type":"Description","Title":"ksmbd: reject foreign RPC pipe handles on IPC$ read and write"}]}}}