{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-99002",
  "modified": "2026-10-31T05:30:01Z",
  "upstream": [
    "CVE-2026-99002"
  ],
  "published": "2026-10-23T12:29:05Z",
  "summary": "drm/vmwgfx: validate pitch coming from userspace",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/vmwgfx: validate pitch coming from userspace\n\nValidate the pitch, alongside the box dimensions before trying\nto copy data from the underlying surface. Fixes possible\nout of bounds reads with cursor snooping.",
  "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.191",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-99002"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/073437615a8da528935146ca6a17292c0ca8ce19"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/f54b41644744f72c86e44a21733ac6fc910ca133"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/cbf7616464334b217ed07b8adacaed549f2a9433"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/db6fbc2b77849e3c3c2bc115ea9ac925c4625a0d"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/f6d9c8abdf06a9c7efa799532d66ed8d5a50734c"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/76e5ddd7d9822c8c3492e0f50ba8978e093069ad"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/fcb137f6e7ed769f7ecad84364a33c451371b602"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/21bc51cb89ced74d6645a138cc2f21184bc75094"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-10-30T12:49:54Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.8,
      "cvss_v3_severity": "High",
      "scenario": "AV:L - DRM_IOCTL_VMW_EXECBUF passes a locally supplied SVGA_3D_CMD_SURFACE_DMA through vmw_execbuf_process(), vmw_cmd_dma(), and vmw_kms_cursor_snoop(); the malformed guest.pitch and copy box originate in this ioctl, not a network protocol.\nAC:L - The attacker can create the required 64x64 A8R8G8B8 scanout surface and choose the box, pitch, and source BO. A 63x64 box with pitch 256 deterministically reaches the corrupting partial-copy loop without a race or attacker-uncontrolled condition.\nPR:L - VMW_CREATE_SURFACE, VMW_ALLOC_DMABUF, and VMW_EXECBUF are DRM_RENDER_ALLOW on a DRIVER_RENDER device; drm_ioctl_permit() therefore requires no DRM master, authentication, or capability from an unprivileged render-node client.\nUI:N - The attacker creates the surface and BO and submits the malformed DMA command through their own file descriptor; no victim must mount, open, or display anything.\nS:U - vmw_kms_cursor_snoop() corrupts the guest kernel's own cursor-snooper allocation from guest userspace. The code demonstrates neither host-memory corruption nor a guest-to-host or IOMMU-boundary escape.\nC:H - The unchecked pitch causes out-of-bounds source reads, while the attacker-controlled heap overwrite can corrupt neighboring pointer-bearing objects and be developed into arbitrary guest-kernel read primitives.\nI:H - snooper.image is a u32 pointer, but the vulnerable loop uses the 256-byte image_pitch as an element stride; a 63x64 copy writes controlled 252-byte rows at 1024-byte intervals far beyond the 16-KiB allocation, enabling control-flow hijacking.\nA:H - An excessive pitch can fault while reading beyond the TTM mapping, and the partial-copy destination bug can overwrite roughly 48 KiB beyond the snooper image, causing an oops or kernel panic."
    }
  }
}
