{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "98e634aa4b5d8a2766789785d4d1bcbefab0bc5c"
            },
            {
              "fixed": "535bcf5895519650b4fee9d01ed42fda81f3dd0f"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "b00d24997a11c10d3e420614f0873b83ce358a34"
            },
            {
              "fixed": "7bd2c17d756a97c8fd590460382eac97bd74ccc9"
            },
            {
              "fixed": "57729bca305c529a2a8dd08e1733002bb6daab9b"
            },
            {
              "fixed": "2888520bdcbe0599cfc77b2fad8dc6c95505a3cb"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "655e607898f8cdfdb29fd2a6e618d11de99ec17a"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "8316820e4082052666872398a31c91668d1f8461"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "4306dbd7676e41032813620e49cd821a25559852"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "47a17be21a625f6c67a8a486867ffcc7eefecc97"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.15.182"
            },
            {
              "fixed": "5.16"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.1.138"
            },
            {
              "fixed": "6.2"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.6.90"
            },
            {
              "fixed": "6.7"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.12.28"
            },
            {
              "fixed": "6.12.120"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.14.6"
            },
            {
              "fixed": "6.15"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.15.0"
            },
            {
              "fixed": "6.18.66"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139538.json"
  },
  "details": "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-\u003estreams[i].node zeroed and unlinked from the\nsmmu-\u003estreams rb-tree.\n\nBoth the insert error-rollback loop and arm_smmu_remove_master() then call\nrb_erase() on every master-\u003estreams[i].node unconditionally. rb_erase() on\na zeroed node sees a NULL parent, treats the node as the tree root and sets\nroot-\u003erb_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.",
  "id": "CVE-2026-139538",
  "modified": "2026-12-01T20:45:30.154986705Z",
  "published": "2026-11-30T13:35:41.244Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2888520bdcbe0599cfc77b2fad8dc6c95505a3cb"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/535bcf5895519650b4fee9d01ed42fda81f3dd0f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/57729bca305c529a2a8dd08e1733002bb6daab9b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7bd2c17d756a97c8fd590460382eac97bd74ccc9"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139538.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139538"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "iommu/arm-smmu-v3: Don't rb_erase() a never-inserted stream node"
}