{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-139229",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.921Z",
        "datePublished": "2026-11-30T13:32:49.016Z",
        "dateUpdated": "2026-11-30T13:32:49.016Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:32:49.016Z"
            },
            "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."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/smb/server/smb2pdu.c"
                    ],
                    "versions": [
                        {
                            "version": "e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9",
                            "lessThan": "5daddaa135150540d6dabffb1274078fa9f6125b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9",
                            "lessThan": "c3234ac719af97ca44fbe6f6dd70bf8aec8c6afc",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9",
                            "lessThan": "4133bff4b11663c40be661f577a8d74d65339f12",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9",
                            "lessThan": "8f09e8606f20ba66aa0c451794d11b010706f3b6",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9",
                            "lessThan": "7087474b2e2869ce75a2758c349f83fa3d039624",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9",
                            "lessThan": "da25995071e5e0f3aa9a41160b00b2f833127b3e",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/smb/server/smb2pdu.c"
                    ],
                    "versions": [
                        {
                            "version": "5.15",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.15",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.193",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.163",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.119",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.65",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.6",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.15",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.15",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.15",
                                    "versionEndExcluding": "6.12.119"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.15",
                                    "versionEndExcluding": "6.18.65"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.15",
                                    "versionEndExcluding": "7.3.6"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.15",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "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"
            }
        }
    }
}