{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-139538",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.939Z",
        "datePublished": "2026-11-30T13:35:41.244Z",
        "dateUpdated": "2026-11-30T13:35:41.244Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:35:41.244Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\niommu/arm-smmu-v3: Don't rb_erase() a never-inserted stream node\n\narm_smmu_insert_master() skips inserting a stream whose StreamID duplicates\none the same master already owns (bridged PCI devices can present duplicate\nIDs), leaving that master->streams[i].node zeroed and unlinked from the\nsmmu->streams rb-tree.\n\nBoth the insert error-rollback loop and arm_smmu_remove_master() then call\nrb_erase() on every master->streams[i].node unconditionally. rb_erase() on\na zeroed node sees a NULL parent, treats the node as the tree root and sets\nroot->rb_node = NULL, silently emptying the whole SID tree and breaking SID\nlookups (and DMA) for every other master on the SMMU.\n\nMark each node with RB_CLEAR_NODE() after sort_nonatomic() reorders the\narray, since sorting relocates the entries and would leave the earlier\nself-referential RB_CLEAR_NODE() pointer stale. An un-inserted node then\nstays RB_EMPTY_NODE() and is skipped in both erase loops; inserted nodes\nare linked by rb_find_add() and erased as before."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c"
                    ],
                    "versions": [
                        {
                            "version": "98e634aa4b5d8a2766789785d4d1bcbefab0bc5c",
                            "lessThan": "535bcf5895519650b4fee9d01ed42fda81f3dd0f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b00d24997a11c10d3e420614f0873b83ce358a34",
                            "lessThan": "7bd2c17d756a97c8fd590460382eac97bd74ccc9",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b00d24997a11c10d3e420614f0873b83ce358a34",
                            "lessThan": "57729bca305c529a2a8dd08e1733002bb6daab9b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b00d24997a11c10d3e420614f0873b83ce358a34",
                            "lessThan": "2888520bdcbe0599cfc77b2fad8dc6c95505a3cb",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "655e607898f8cdfdb29fd2a6e618d11de99ec17a",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "8316820e4082052666872398a31c91668d1f8461",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "4306dbd7676e41032813620e49cd821a25559852",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "47a17be21a625f6c67a8a486867ffcc7eefecc97",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6.12.28",
                            "lessThan": "6.12.120",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.182",
                            "lessThan": "5.16",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.138",
                            "lessThan": "6.2",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.90",
                            "lessThan": "6.7",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.14.6",
                            "lessThan": "6.15",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c"
                    ],
                    "versions": [
                        {
                            "version": "6.15",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.15",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.120",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.66",
                            "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": "6.12.28",
                                    "versionEndExcluding": "6.12.120"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.15",
                                    "versionEndExcluding": "6.18.66"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.15",
                                    "versionEndExcluding": "7.3.6"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.15",
                                    "versionEndExcluding": "7.4-rc1"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.15.182"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.1.138"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.6.90"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.14.6"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/535bcf5895519650b4fee9d01ed42fda81f3dd0f"
                },
                {
                    "url": "https://git.kernel.org/stable/c/7bd2c17d756a97c8fd590460382eac97bd74ccc9"
                },
                {
                    "url": "https://git.kernel.org/stable/c/57729bca305c529a2a8dd08e1733002bb6daab9b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/2888520bdcbe0599cfc77b2fad8dc6c95505a3cb"
                }
            ],
            "title": "iommu/arm-smmu-v3: Don't rb_erase() a never-inserted stream node",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}