{"id":"CVE-2026-89877","state":"PUBLISHED","title":"media: saa7164: fix cleanup on resource allocation failure","description":"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.","publishedAt":"2026-09-16T10:31:44.194Z","updatedAt":"2026-10-30T12:33:22.773Z","severity":{"score":8.4,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"443c1228d50518f3c550e1fef490a2c9d9246ce7","status":"affected","lessThan":"ac9d7ca8199c64c320ba8177e3c0f7b0deb7ff06","versionType":"git"},{"version":"443c1228d50518f3c550e1fef490a2c9d9246ce7","status":"affected","lessThan":"99bf01e2563f8bdfe5f25e489596cff455a35d6b","versionType":"git"},{"version":"443c1228d50518f3c550e1fef490a2c9d9246ce7","status":"affected","lessThan":"daa5b32cdf7db81a07ee2a91ce092a363e7754aa","versionType":"git"},{"version":"443c1228d50518f3c550e1fef490a2c9d9246ce7","status":"affected","lessThan":"77f216f8de6221efb6f6c471bc9e598f1879825b","versionType":"git"},{"version":"443c1228d50518f3c550e1fef490a2c9d9246ce7","status":"affected","lessThan":"69259c627009bf7621010ae9e997dad2dad3339c","versionType":"git"},{"version":"443c1228d50518f3c550e1fef490a2c9d9246ce7","status":"affected","lessThan":"4d2048466af9e2c960c5be6dcd317e3b657d268b","versionType":"git"},{"version":"443c1228d50518f3c550e1fef490a2c9d9246ce7","status":"affected","lessThan":"fc65623524b5bf23baddc6ae688d954fba0d5de2","versionType":"git"},{"version":"443c1228d50518f3c550e1fef490a2c9d9246ce7","status":"affected","lessThan":"28e84c6e2e6753ed238ea097b2842a32a6a6879b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/pci/saa7164/saa7164-core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.32","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.32","versionType":"semver"},{"version":"5.10.273","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.224","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.188","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.51","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.5","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/pci/saa7164/saa7164-core.c"]}],"references":["https://git.kernel.org/stable/c/ac9d7ca8199c64c320ba8177e3c0f7b0deb7ff06","https://git.kernel.org/stable/c/99bf01e2563f8bdfe5f25e489596cff455a35d6b","https://git.kernel.org/stable/c/daa5b32cdf7db81a07ee2a91ce092a363e7754aa","https://git.kernel.org/stable/c/77f216f8de6221efb6f6c471bc9e598f1879825b","https://git.kernel.org/stable/c/69259c627009bf7621010ae9e997dad2dad3339c","https://git.kernel.org/stable/c/4d2048466af9e2c960c5be6dcd317e3b657d268b","https://git.kernel.org/stable/c/fc65623524b5bf23baddc6ae688d954fba0d5de2","https://git.kernel.org/stable/c/28e84c6e2e6753ed238ea097b2842a32a6a6879b"],"weaknesses":[],"ingestedAt":"2026-10-30T12:52:04.348Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/89xxx/CVE-2026-89877.json","commit":"1f312381e38164a43607eebab851b151dd16861e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-89877","state":"PUBLISHED","datePublished":"2026-09-16T10:31:44.194Z","dateUpdated":"2026-10-30T12:33:22.773Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.772Z"},"containers":{"cna":{"title":"media: saa7164: fix cleanup on resource allocation failure","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"443c1228d50518f3c550e1fef490a2c9d9246ce7","status":"affected","lessThan":"ac9d7ca8199c64c320ba8177e3c0f7b0deb7ff06","versionType":"git"},{"version":"443c1228d50518f3c550e1fef490a2c9d9246ce7","status":"affected","lessThan":"99bf01e2563f8bdfe5f25e489596cff455a35d6b","versionType":"git"},{"version":"443c1228d50518f3c550e1fef490a2c9d9246ce7","status":"affected","lessThan":"daa5b32cdf7db81a07ee2a91ce092a363e7754aa","versionType":"git"},{"version":"443c1228d50518f3c550e1fef490a2c9d9246ce7","status":"affected","lessThan":"77f216f8de6221efb6f6c471bc9e598f1879825b","versionType":"git"},{"version":"443c1228d50518f3c550e1fef490a2c9d9246ce7","status":"affected","lessThan":"69259c627009bf7621010ae9e997dad2dad3339c","versionType":"git"},{"version":"443c1228d50518f3c550e1fef490a2c9d9246ce7","status":"affected","lessThan":"4d2048466af9e2c960c5be6dcd317e3b657d268b","versionType":"git"},{"version":"443c1228d50518f3c550e1fef490a2c9d9246ce7","status":"affected","lessThan":"fc65623524b5bf23baddc6ae688d954fba0d5de2","versionType":"git"},{"version":"443c1228d50518f3c550e1fef490a2c9d9246ce7","status":"affected","lessThan":"28e84c6e2e6753ed238ea097b2842a32a6a6879b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/pci/saa7164/saa7164-core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.32","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.32","versionType":"semver"},{"version":"5.10.273","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.224","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.188","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.51","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.5","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/pci/saa7164/saa7164-core.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ac9d7ca8199c64c320ba8177e3c0f7b0deb7ff06"},{"url":"https://git.kernel.org/stable/c/99bf01e2563f8bdfe5f25e489596cff455a35d6b"},{"url":"https://git.kernel.org/stable/c/daa5b32cdf7db81a07ee2a91ce092a363e7754aa"},{"url":"https://git.kernel.org/stable/c/77f216f8de6221efb6f6c471bc9e598f1879825b"},{"url":"https://git.kernel.org/stable/c/69259c627009bf7621010ae9e997dad2dad3339c"},{"url":"https://git.kernel.org/stable/c/4d2048466af9e2c960c5be6dcd317e3b657d268b"},{"url":"https://git.kernel.org/stable/c/fc65623524b5bf23baddc6ae688d954fba0d5de2"},{"url":"https://git.kernel.org/stable/c/28e84c6e2e6753ed238ea097b2842a32a6a6879b"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.4,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is reached only from saa7164 PCI probe (saa7164_initdev → saa7164_dev_setup → 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 — 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."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:33:22.773Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.32","versionEndExcluding":"5.10.273"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.32","versionEndExcluding":"5.15.224"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.32","versionEndExcluding":"6.1.188"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.32","versionEndExcluding":"6.6.157"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.32","versionEndExcluding":"6.12.110"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.32","versionEndExcluding":"6.18.51"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.32","versionEndExcluding":"7.2.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.32","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}