{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-46197",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2026-46197"
  ],
  "published": "2026-05-28T09:40:54Z",
  "summary": "drm/amdkfd: validate SVM ioctl nattr against buffer size",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: validate SVM ioctl nattr against buffer size\n\nValidate nattr field against the buffer size, preventing\nout-of-bounds buffer access via user-controlled attribute count.\n\n(cherry picked from commit 5eca8bfdfa456c3304ca77523718fe24254c172f)",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/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": "6.1.175",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-46197"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/daa8bc5f83814b55b71d2b5b3a090d57a5219c21"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/fb07a0c9c8419164812e07274947f11b1d92dd61"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/91c6dc5a41695d02dfc6299f106ac38a6c493e52"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/ccd060b5c7cc75ae7e211c250b97c5b6272e7efc"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/db9530a9873a7c85d2266a922589ebcf427fa631"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/6abd3a4417cb73a7d0db7e25bf11fae1074bdba3"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/045e0ff208f0838a246c10204105126611b267a1"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-08-05T13:16:28Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.8,
      "cvss_v3_severity": "High",
      "scenario": "AV:L - The vulnerability is reached through an ioctl (AMDKFD_IOC_SVM) on the /dev/kfd character device, requiring local system access; there is no network or adjacent vector.\nAC:L - The attacker fully controls both the buffer size (usize via _IOC_SIZE) and the nattr count, so the out-of-bounds access is triggered reliably with no conditions outside the attacker's control.\nPR:L - The SVM ioctl descriptor has flags=0 with no capability check, so only the ability to open /dev/kfd (a basic local user, e.g. render-group membership on compute systems) is required \u2014 no real root.\nUI:N - The attacker issues the ioctl directly; no action by another user or victim is needed.\nS:U - The corruption is confined to kernel memory within the same security authority; there is no IOMMU/DMA or VM boundary crossing.\nC:H - The unbounded nattr loop reads kernel heap/stack memory far past the buffer (an unbounded OOB read), and the resulting memory corruption can be leveraged for information disclosure.\nI:H - The svm_range_get_attr fill-values loop writes attrs[i].value/type out of bounds into adjacent kernel memory, an OOB write that can be leveraged for control-flow corruption or arbitrary write.\nA:H - A large nattr reliably drives the attribute loops past the allocation into unmapped memory, causing a kernel oops/panic (denial of service)."
    }
  }
}
