{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-89877",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2026-89877"
  ],
  "published": "2026-09-16T10:32:03Z",
  "summary": "media: saa7164: fix cleanup on resource allocation failure",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: saa7164: fix cleanup on resource allocation failure\n\nsaa7164_dev_setup() adds the device to the global saa7164_devlist before\nrequesting the PCI BAR memory regions.\n\nIf get_resources() fails, saa7164_dev_setup() decrements the device count\nand returns an error, but leaves the device on saa7164_devlist. The probe\nerror path then frees the device, leaving a dangling entry on the global\nlist.\n\nReuse the existing MMIO mapping error path to remove the device from\nsaa7164_devlist and decrement the device count before returning.\n\nAlso release BAR0 if it was successfully requested but the BAR2 request\nfails.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/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.188",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-89877"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/daa5b32cdf7db81a07ee2a91ce092a363e7754aa"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/77f216f8de6221efb6f6c471bc9e598f1879825b"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/69259c627009bf7621010ae9e997dad2dad3339c"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/4d2048466af9e2c960c5be6dcd317e3b657d268b"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/fc65623524b5bf23baddc6ae688d954fba0d5de2"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/28e84c6e2e6753ed238ea097b2842a32a6a6879b"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-09-16T14:40:32Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 8.4,
      "cvss_v3_severity": "High",
      "scenario": "AV:L - The bug is reached only from saa7164 PCI probe (saa7164_initdev \u2192 saa7164_dev_setup \u2192 get_resources()) on a locally attached NXP SAA7164/Hauppauge HVR card; PVR, HTPC, and broadcast systems enumerate that function at boot, udev bind, or PCI/Thunderbolt hotplug, which is a local PCI probe path, not a network or USB protocol path.\nAC:L - A 1131:7164 function whose BAR0 or BAR2 cannot be reserved (zero-length BAR, overlap with busy iomem, or BAR2 failing after BAR0 was claimed) makes get_resources() return -EBUSY on every probe, so the dangling saa7164_devlist UAF is deterministic with no race or layout lottery the attacker cannot influence.\nPR:N - saa7164_initdev() performs no capability or authentication checks; when a matching PCI function appears, kernel enumeration and udev module autoload run the failing get_resources() path automatically without an OS account or user-namespace privilege.\nUI:N - Probe is invoked automatically by the PCI core and udev-driven module autoload on device enumeration; no victim must open a V4L/DVB node, load firmware, or otherwise interact.\nS:U - The dangling saa7164_devlist pointer and follow-on use-after-free remain inside the host kernel saa7164 driver and do not cross a VM, IOMMU, or sandbox security boundary.\nC:H - After kfree(dev) the global saa7164_devlist still points at the freed saa7164_dev; debugfs seq_start/seq_show and later probes walk that object, so reclaimed heap contents including kernel pointers can be read back \u2014 a use-after-free read primitive.\nI:H - The next list_add_tail() or list_del() on saa7164_devlist writes next/prev through the freed list node, corrupting whatever slab object reused that allocation and enabling an arbitrary kernel write and control-flow hijack.\nA:H - Walking or mutating the dangling saa7164_devlist entry after kfree causes a kernel oops or panic via poisoned-slab dereference or list corruption, fully denying availability."
    }
  }
}
