{"id":"CVE-2026-68229","state":"PUBLISHED","title":"media: cedrus: skip invalid H.264 reference list entries","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: cedrus: skip invalid H.264 reference list entries\n\nCedrus consumes H.264 ref_pic_list0/ref_pic_list1 entries from the\nstateless slice control and later uses their indices to look up\ndecode->dpb[] in _cedrus_write_ref_list().\n\nRejecting such controls in cedrus_try_ctrl() would break existing\nuserspace, since stateless H.264 reference lists may legitimately carry\nout-of-range indices for missing references. Instead, guard the actual\nDPB lookup in Cedrus and skip entries whose indices do not fit the fixed\nV4L2_H264_NUM_DPB_ENTRIES array.\n\nThis keeps the fix local to the driver use site and avoids out-of-bounds\nreads from malformed or unsupported reference list entries.","publishedAt":"2026-08-10T12:00:51.935Z","updatedAt":"2026-08-19T16:32:01.546Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c","status":"affected","lessThan":"a6a109771c51920beb620f30778c29da823cc34c","versionType":"git"},{"version":"e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c","status":"affected","lessThan":"7ff6f728a2433b420bb372cb0e8a4eea3f2e1a4b","versionType":"git"},{"version":"e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c","status":"affected","lessThan":"1db34683b0fbbcb3bc162380c11514ea0a44e8ab","versionType":"git"},{"version":"e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c","status":"affected","lessThan":"2ee8327c85b3ac7b532d2d6a1e3a295d5ad7414a","versionType":"git"},{"version":"e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c","status":"affected","lessThan":"0af8945fcae742d099f59f3c725eb67235953a31","versionType":"git"},{"version":"e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c","status":"affected","lessThan":"9924cb548ee7753a6473997949c3ec48092de0b0","versionType":"git"},{"version":"e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c","status":"affected","lessThan":"e53112c2de88982e66c369aee2120d5efd78df30","versionType":"git"},{"version":"e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c","status":"affected","lessThan":"10358ea986c3c85516d1c8206486464f79d36e76","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/media/sunxi/cedrus/cedrus_h264.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.10","versionType":"semver"},{"version":"5.10.265","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.216","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.183","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.148","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.101","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.42","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.6","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/media/sunxi/cedrus/cedrus_h264.c"]}],"references":["https://git.kernel.org/stable/c/a6a109771c51920beb620f30778c29da823cc34c","https://git.kernel.org/stable/c/7ff6f728a2433b420bb372cb0e8a4eea3f2e1a4b","https://git.kernel.org/stable/c/1db34683b0fbbcb3bc162380c11514ea0a44e8ab","https://git.kernel.org/stable/c/2ee8327c85b3ac7b532d2d6a1e3a295d5ad7414a","https://git.kernel.org/stable/c/0af8945fcae742d099f59f3c725eb67235953a31","https://git.kernel.org/stable/c/9924cb548ee7753a6473997949c3ec48092de0b0","https://git.kernel.org/stable/c/e53112c2de88982e66c369aee2120d5efd78df30","https://git.kernel.org/stable/c/10358ea986c3c85516d1c8206486464f79d36e76"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:49.727Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/68xxx/CVE-2026-68229.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-68229","state":"PUBLISHED","datePublished":"2026-08-10T12:00:51.935Z","dateUpdated":"2026-08-19T16:32:01.546Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-07-30T09:28:09.376Z"},"containers":{"cna":{"title":"media: cedrus: skip invalid H.264 reference list entries","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: cedrus: skip invalid H.264 reference list entries\n\nCedrus consumes H.264 ref_pic_list0/ref_pic_list1 entries from the\nstateless slice control and later uses their indices to look up\ndecode->dpb[] in _cedrus_write_ref_list().\n\nRejecting such controls in cedrus_try_ctrl() would break existing\nuserspace, since stateless H.264 reference lists may legitimately carry\nout-of-range indices for missing references. Instead, guard the actual\nDPB lookup in Cedrus and skip entries whose indices do not fit the fixed\nV4L2_H264_NUM_DPB_ENTRIES array.\n\nThis keeps the fix local to the driver use site and avoids out-of-bounds\nreads from malformed or unsupported reference list entries."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c","status":"affected","lessThan":"a6a109771c51920beb620f30778c29da823cc34c","versionType":"git"},{"version":"e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c","status":"affected","lessThan":"7ff6f728a2433b420bb372cb0e8a4eea3f2e1a4b","versionType":"git"},{"version":"e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c","status":"affected","lessThan":"1db34683b0fbbcb3bc162380c11514ea0a44e8ab","versionType":"git"},{"version":"e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c","status":"affected","lessThan":"2ee8327c85b3ac7b532d2d6a1e3a295d5ad7414a","versionType":"git"},{"version":"e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c","status":"affected","lessThan":"0af8945fcae742d099f59f3c725eb67235953a31","versionType":"git"},{"version":"e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c","status":"affected","lessThan":"9924cb548ee7753a6473997949c3ec48092de0b0","versionType":"git"},{"version":"e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c","status":"affected","lessThan":"e53112c2de88982e66c369aee2120d5efd78df30","versionType":"git"},{"version":"e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c","status":"affected","lessThan":"10358ea986c3c85516d1c8206486464f79d36e76","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/media/sunxi/cedrus/cedrus_h264.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.10","versionType":"semver"},{"version":"5.10.265","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.216","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.183","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.148","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.101","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.42","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.6","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/media/sunxi/cedrus/cedrus_h264.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/a6a109771c51920beb620f30778c29da823cc34c"},{"url":"https://git.kernel.org/stable/c/7ff6f728a2433b420bb372cb0e8a4eea3f2e1a4b"},{"url":"https://git.kernel.org/stable/c/1db34683b0fbbcb3bc162380c11514ea0a44e8ab"},{"url":"https://git.kernel.org/stable/c/2ee8327c85b3ac7b532d2d6a1e3a295d5ad7414a"},{"url":"https://git.kernel.org/stable/c/0af8945fcae742d099f59f3c725eb67235953a31"},{"url":"https://git.kernel.org/stable/c/9924cb548ee7753a6473997949c3ec48092de0b0"},{"url":"https://git.kernel.org/stable/c/e53112c2de88982e66c369aee2120d5efd78df30"},{"url":"https://git.kernel.org/stable/c/10358ea986c3c85516d1c8206486464f79d36e76"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","baseScore":7.1,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is reached only through the local V4L2 interface on the cedrus video device node (/dev/videoN) via VIDIOC_S_EXT_CTRLS plus QBUF/STREAMON ioctls. There is no remote or network-facing path to the stateless H.264 decoder.\nAC:L - The attacker fully and deterministically controls the out-of-range value: ref_pic_list0/1[i].index is a u8 copied verbatim from the control payload with no validation, so any index in 16..255 immediately produces the out-of-bounds dpb[] access on the next decode run. No race, timing, or uncontrollable memory-layout condition is involved.\nPR:L - Only an unprivileged local account with access to the cedrus video device node is needed (typically the 'video' group, or the media/camera service on Android and embedded Allwinner devices). No capability, CAP_SYS_ADMIN, or root check exists anywhere on the path — cedrus_try_ctrl() validates only SPS chroma format and bit depth.\nUI:N - The attacking process performs the entire sequence itself — open the device, set the crafted H.264 slice-params control, queue buffers, start streaming. No victim action, file open, or media mount is required.\nS:U - The out-of-bounds read stays within the kernel's own memory and security authority; no VM, IOMMU, or sandbox boundary is crossed. This is a standard in-kernel driver memory-safety defect.\nC:H - decode->dpb[] holds 16 32-byte entries at the start of a ~560-byte control allocation, so an attacker-chosen index up to 255 reads at offset 8160 — about 7.6 KB of adjacent kernel heap beyond the object. The read flags/reference_ts values are consumed by the ACTIVE test and vb2_find_buffer() timestamp lookup, giving an attacker-steerable oracle over unrelated kernel heap contents.\nI:N - The defect is purely a read: num_ref is bounded to V4L2_H264_REF_LIST_LEN by v4l2-ctrls-core.c, so the sram_array[CEDRUS_MAX_REF_IDX] stores stay in bounds, and only a legitimately-looked-up buffer position is written to hardware SRAM. No kernel memory is modified out of bounds.\nA:H - Reading several kilobytes past the end of a slab object can walk off the slab page into an unmapped or poisoned region, and trips KASAN/hardening checks, producing a kernel oops. The trigger is trivially repeatable from an unprivileged process, so the crash can be induced at will."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-19T16:32:01.546Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.10.265"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.15.216"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.1.183"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.6.148"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.12.101"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.18.42"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"7.1.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}