{"id":"CVE-2024-27073","state":"PUBLISHED","title":"media: ttpci: fix two memleaks in budget_av_attach","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: ttpci: fix two memleaks in budget_av_attach\n\nWhen saa7146_register_device and saa7146_vv_init fails, budget_av_attach\nshould free the resources it allocates, like the error-handling of\nttpci_budget_init does. Besides, there are two fixme comment refers to\nsuch deallocations.","publishedAt":"2024-05-01T13:04:37.653Z","updatedAt":"2026-08-05T11:29:22.792Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/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":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"af37aed04997e644f7e1b52b696b62dcae3cc016","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"910363473e4bf97da3c350e08d915546dd6cc30b","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"24e51d6eb578b82ff292927f14b9f5ec05a46beb","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"55ca0c7eae8499bb96f4e5d9b26af95e89c4e6a0","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"7393c681f9aa05ffe2385e8716989565eed2fe06","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"1597cd1a88cfcdc4bf8b1b44cd458fed9a5a5d63","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"656b8cc123d7635dd399d9f02594f27aa797ac3c","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"d0b07f712bf61e1a3cf23c87c663791c42e50837","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/pci/ttpci/budget-av.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"5.4.273","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.214","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.153","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.83","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.23","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.11","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8.2","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9","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/ttpci/budget-av.c"]}],"references":["https://git.kernel.org/stable/c/af37aed04997e644f7e1b52b696b62dcae3cc016","https://git.kernel.org/stable/c/910363473e4bf97da3c350e08d915546dd6cc30b","https://git.kernel.org/stable/c/24e51d6eb578b82ff292927f14b9f5ec05a46beb","https://git.kernel.org/stable/c/55ca0c7eae8499bb96f4e5d9b26af95e89c4e6a0","https://git.kernel.org/stable/c/7393c681f9aa05ffe2385e8716989565eed2fe06","https://git.kernel.org/stable/c/1597cd1a88cfcdc4bf8b1b44cd458fed9a5a5d63","https://git.kernel.org/stable/c/656b8cc123d7635dd399d9f02594f27aa797ac3c","https://git.kernel.org/stable/c/d0b07f712bf61e1a3cf23c87c663791c42e50837","https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:10.607Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/27xxx/CVE-2024-27073.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-27073","state":"PUBLISHED","datePublished":"2024-05-01T13:04:37.653Z","dateUpdated":"2026-08-05T11:29:22.792Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-02-19T14:20:24.216Z"},"containers":{"cna":{"title":"media: ttpci: fix two memleaks in budget_av_attach","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: ttpci: fix two memleaks in budget_av_attach\n\nWhen saa7146_register_device and saa7146_vv_init fails, budget_av_attach\nshould free the resources it allocates, like the error-handling of\nttpci_budget_init does. Besides, there are two fixme comment refers to\nsuch deallocations."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"af37aed04997e644f7e1b52b696b62dcae3cc016","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"910363473e4bf97da3c350e08d915546dd6cc30b","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"24e51d6eb578b82ff292927f14b9f5ec05a46beb","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"55ca0c7eae8499bb96f4e5d9b26af95e89c4e6a0","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"7393c681f9aa05ffe2385e8716989565eed2fe06","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"1597cd1a88cfcdc4bf8b1b44cd458fed9a5a5d63","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"656b8cc123d7635dd399d9f02594f27aa797ac3c","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"d0b07f712bf61e1a3cf23c87c663791c42e50837","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/pci/ttpci/budget-av.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"5.4.273","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.214","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.153","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.83","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.23","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.11","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8.2","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9","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/ttpci/budget-av.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/af37aed04997e644f7e1b52b696b62dcae3cc016"},{"url":"https://git.kernel.org/stable/c/910363473e4bf97da3c350e08d915546dd6cc30b"},{"url":"https://git.kernel.org/stable/c/24e51d6eb578b82ff292927f14b9f5ec05a46beb"},{"url":"https://git.kernel.org/stable/c/55ca0c7eae8499bb96f4e5d9b26af95e89c4e6a0"},{"url":"https://git.kernel.org/stable/c/7393c681f9aa05ffe2385e8716989565eed2fe06"},{"url":"https://git.kernel.org/stable/c/1597cd1a88cfcdc4bf8b1b44cd458fed9a5a5d63"},{"url":"https://git.kernel.org/stable/c/656b8cc123d7635dd399d9f02594f27aa797ac3c"},{"url":"https://git.kernel.org/stable/c/d0b07f712bf61e1a3cf23c87c663791c42e50837"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable code is a PCI probe-time attach callback, and the resulting dangling state is exercised through local device files (/dev/dvb/adapterN/demux0, dvr0, dvbnet); there is no remote or adjacent-network path into budget_av_attach.\nAC:L - Once the failure branch has been taken, the attacker deterministically drives the use-after-free by opening the still-registered dvr0/demux0 node and starting a feed, with no race to win and unlimited retries.\nPR:L - Reaching the stale DVB character devices requires only an unprivileged local account with access to /dev/dvb, which is the norm for the video group on desktops and for the media/DVB application account on the set-top-box and embedded systems that carry these ttpci cards.\nUI:N - No victim action is needed; the leaked and dangling registrations are created automatically during driver probe and remain live until reboot.\nS:U - The freed saa7146_dev object, the leaked budget_av allocation and the orphaned DVB/i2c registrations all live inside the kernel's own security authority, crossing no VM, IOMMU or sandbox boundary.\nC:H - budget->dev is left pointing at kmem_cache memory freed by saa7146_init_one's error path, so subsequent demux/dvr operations read attacker-groomable freed slab contents (including the dev->mem MMIO pointer), a use-after-free that can be leveraged for kernel information disclosure.\nI:H - start_ts_capture() performs saa7146_write() through the freed device's dev->mem pointer, so an attacker who reclaims that slab controls the destination of kernel writel() operations, yielding a write primitive suitable for control-flow hijacking.\nA:H - Beyond the unbounded leak of the budget_av allocation, the DMA page table and the pinned module reference, any access to the orphaned demux/dvr/dvbnet nodes dereferences freed memory and performs MMIO through an iounmap'd mapping, reliably oopsing or panicking the kernel."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:29:22.792Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.4.273"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.10.214"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.15.153"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.1.83"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.6.23"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.7.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.8.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.9"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-06-06T18:09:11.753345Z","id":"CVE-2024-27073","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"type":"CWE","lang":"en","description":"CWE-noinfo Not enough information"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-11-06T18:51:09.232Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/af37aed04997e644f7e1b52b696b62dcae3cc016","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/910363473e4bf97da3c350e08d915546dd6cc30b","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/24e51d6eb578b82ff292927f14b9f5ec05a46beb","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/55ca0c7eae8499bb96f4e5d9b26af95e89c4e6a0","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/7393c681f9aa05ffe2385e8716989565eed2fe06","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/1597cd1a88cfcdc4bf8b1b44cd458fed9a5a5d63","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/656b8cc123d7635dd399d9f02594f27aa797ac3c","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/d0b07f712bf61e1a3cf23c87c663791c42e50837","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T00:27:57.810Z"}}]}}}