{"id":"CVE-2024-50291","state":"PUBLISHED","title":"media: dvb-core: add missing buffer index check","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: dvb-core: add missing buffer index check\n\ndvb_vb2_expbuf() didn't check if the given buffer index was\nfor a valid buffer. Add this check.","publishedAt":"2024-11-19T01:30:36.685Z","updatedAt":"2026-08-05T11:43:07.952Z","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":"7dc866df40127dceac9ba83ae16c0c11e7d1666f","status":"affected","lessThan":"721c37af0355cc0b540909c57fd7930dc99c72d8","versionType":"git"},{"version":"7dc866df40127dceac9ba83ae16c0c11e7d1666f","status":"affected","lessThan":"fa88dc7db176c79b50adb132a56120a1d4d9d18b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/dvb-core/dvb_vb2.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.8","versionType":"semver"},{"version":"6.11.8","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/dvb-core/dvb_vb2.c"]}],"references":["https://git.kernel.org/stable/c/721c37af0355cc0b540909c57fd7930dc99c72d8","https://git.kernel.org/stable/c/fa88dc7db176c79b50adb132a56120a1d4d9d18b"],"weaknesses":["CWE-129"],"ingestedAt":"2026-10-29T20:07:56.516Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/50xxx/CVE-2024-50291.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-50291","state":"PUBLISHED","datePublished":"2024-11-19T01:30:36.685Z","dateUpdated":"2026-08-05T11:43:07.952Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-10-21T19:36:19.985Z"},"containers":{"cna":{"title":"media: dvb-core: add missing buffer index check","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: dvb-core: add missing buffer index check\n\ndvb_vb2_expbuf() didn't check if the given buffer index was\nfor a valid buffer. Add this check."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7dc866df40127dceac9ba83ae16c0c11e7d1666f","status":"affected","lessThan":"721c37af0355cc0b540909c57fd7930dc99c72d8","versionType":"git"},{"version":"7dc866df40127dceac9ba83ae16c0c11e7d1666f","status":"affected","lessThan":"fa88dc7db176c79b50adb132a56120a1d4d9d18b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/dvb-core/dvb_vb2.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.8","versionType":"semver"},{"version":"6.11.8","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/dvb-core/dvb_vb2.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/721c37af0355cc0b540909c57fd7930dc99c72d8"},{"url":"https://git.kernel.org/stable/c/fa88dc7db176c79b50adb132a56120a1d4d9d18b"}],"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 vulnerability is reached only via the DMX_EXPBUF ioctl on the local DVB demux/dvr character devices (/dev/dvb/adapterN/demuxN, dvrN); no network or remote data path reaches dvb_vb2_expbuf().\nAC:L - The attacker fully controls exp->index and the preceding DMX_REQBUFS state, so the out-of-bounds pointer fetch is deterministic on every attempt with no race, timing, or uncontrollable memory-layout precondition.\nPR:L - No capable()/CAP_* check exists on the open or ioctl path; only an open file descriptor on the DVB demux node is needed, which unprivileged users in the standard `video` group (desktops, set-top boxes, media appliances) hold.\nUI:N - The attacker performs the entire sequence (open, DMX_REQBUFS, DMX_EXPBUF) itself; no victim action or cooperation is required.\nS:U - The out-of-bounds access and its consequences are confined to the kernel's own security authority; no hypervisor, IOMMU, or sandbox boundary is crossed.\nC:H - The attacker-chosen 32-bit index yields an out-of-bounds read at an arbitrary offset from a kernel heap object, and the resulting forged vb2_buffer/mem_priv is used to build a dma_buf fd handed back to userspace whose vaddr can be mmap'd, exposing arbitrary kernel memory.\nI:H - The forged struct vb2_buffer * is dereferenced through call_ptr_memop as vb->vb2_queue->mem_ops->get_dmabuf(), an attacker-influenced indirect call, and the exported dma_buf mapping is writable, giving arbitrary kernel memory write and control-flow hijack potential.\nA:H - An index between the allocated buffer count and 32 returns a NULL slot that vb2_core_expbuf() immediately dereferences, and larger indices dereference wild pointers, producing a reliable kernel oops/panic on demand."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:43:07.952Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.11.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.12"}]}]}],"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:H/A:N","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"id":"CVE-2024-50291","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2025-10-01T20:14:21.168376Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-129","lang":"en","type":"CWE","description":"CWE-129 Improper Validation of Array Index"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-01T20:17:21.088Z"}}]}}}