{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-99586",
  "modified": "2026-11-23T05:30:01Z",
  "upstream": [
    "CVE-2026-99586"
  ],
  "published": "2026-11-20T05:52:17Z",
  "summary": "iommu/arm-smmu-v3: Handle ARM erratum for CONT under invalidation with SVA",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\niommu/arm-smmu-v3: Handle ARM erratum for CONT under invalidation with SVA\n\nThe erratum (MMU-700: #3777127, S3: #3673557) deals with under\ninvalidation of a CONT PTE grouping in the SMMU. The recommended work\naround is to use a range invalidation that spans the entire CONT. The only\nuser of CONT in the kernel right now is through SVA sharing a CPU page\ntable that contains a CONT created by the mm.\n\nPreviously it was thought that this errata was dealt with because the\ndriver always uses range invalidation. However, there is a subtle detail\nin the errata that the invalidation range must fully enclose the entire\nCONT for it to work.\n\nIt seems that two sequential range invalidations, with a split point\nfalling inside a CONT grouping, will not prevent the errata.\n\nThe SMMU's range invalidation generation algorithm does not produce a\nsingle invalidation for a single SVA invalidation request, nor does the mm\ncarefully align the SVA invalidation ranges to accommodate the splitting\nof the invalidation into several ranges.\n\nThus, when processing a SVA invalidation, the range invalidation splitting\nroutine can generate a range invalidation that is split in the middle of\nthe CONT and risk under invalidation from this errata. This condition\ncould be triggered by a malicious userspace manipulating the TLB gathers\nvia mmap/mprotect/munmap.\n\nUpdate the errata list to the include the S3 variation, detect the IOMMUs\nthat have it, and then have SVA invalidations use a simplified version of\nthe over invalidation algorithm from the tlbi rework series. This ensures\nthat a single range invalidation is issued for a single MMU notifier\ncallback and now the range invalidation is guarenteed to cover any posible\nCONT.\n\nFuture work to add CONT to iommu_domain page tables should either use this\none-invalidate/one-range invalidation algorithm or disable CONT support in\nthe iommu_domain.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": null,
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-99586"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/96ecddc5141c967c5a59fa85ccbdfdb3cec61209"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/84c6089a365ff5547f9ea30cb407dc5fe3124fd3"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-11-22T11:18:26Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 8.2,
      "cvss_v3_severity": "High",
      "scenario": "AV:L - munmap/mprotect reach arm_smmu_domain_inv_range() via tlb_flush() and arm_smmu_mm_arch_invalidate_secondary_tlbs(); arm_smmu_cmdq_batch_add_range() then splits that local VA range into TLBI commands. The range is the syscall span, not a field from a remote protocol.\nAC:L - The same caller picks a munmap length (47 pages) so arm_smmu_cmdq_batch_add_range() splits inside a 16-page CONT block, and its SVA device issues the page-B translation that erratum 3777127/3673557 requires in that window. Both sides are attacker-controlled.\nPR:H - The SVA notifier is installed only from arm_smmu_sva_domain_alloc() via iommu_sva_bind_device() in uacce_fops_open(). The uacce class sets no devnode mode, so devtmpfs creates the chrdev 0600 and a user namespace cannot open it.\nUI:N - The attacker opens their own uacce queue and calls munmap or mprotect on that same mm, which is the whole trigger.\nS:C - A split TLBI leaves a TBU entry for a CONT page after munmap has cleared the PTE, so the SVA device DMAs to a physical page the SMMU translation tables no longer allow.\nC:H - Erratum 3777127/3673557 keeps page B's translation in the TBU after CMD_SYNC, so the device can DMA-read that PA once the buddy allocator reuses the freed page, including kernel data placed there.\nI:H - The walk-cache refill restores the writable CONT PTE that was cached for page A, so a later DMA store from the SVA device writes the freed physical page.\nA:H - A DMA store through that surviving TBU entry into a recycled kernel page can oops the host, and the entry stays valid after the invalidation SYNC until the TBU evicts it."
    }
  }
}
