Linux
media: cedrus: skip invalid H.264 reference list entries
In the Linux kernel, the following vulnerability has been resolved: media: cedrus: skip invalid H.264 reference list entries Cedrus consumes H.264 ref_pic_list0/ref_pic_list1 entries from the stateless slice control and later uses their indices to look up decode->dpb[] in _cedrus_write_ref_list(). Rejecting such controls in cedrus_try_ctrl() would break existing userspace, since stateless H.264 reference lists may legitimately carry out-of-range indices for missing references. Instead, guard the actual DPB lookup in Cedrus and skip entries whose indices do not fit the fixed V4L2_H264_NUM_DPB_ENTRIES array. This keeps the fix local to the driver use site and avoids out-of-bounds reads from malformed or unsupported reference list entries.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c, < a6a109771c51920beb620f30778c29da823cc34c
- >= e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c, < 7ff6f728a2433b420bb372cb0e8a4eea3f2e1a4b
- >= e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c, < 1db34683b0fbbcb3bc162380c11514ea0a44e8ab
- >= e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c, < 2ee8327c85b3ac7b532d2d6a1e3a295d5ad7414a
- >= e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c, < 0af8945fcae742d099f59f3c725eb67235953a31
- >= e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c, < 9924cb548ee7753a6473997949c3ec48092de0b0
- >= e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c, < e53112c2de88982e66c369aee2120d5efd78df30
- >= e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c, < 10358ea986c3c85516d1c8206486464f79d36e76
Fixed in a6a109771c51920beb620f30778c29da823cc34c, 7ff6f728a2433b420bb372cb0e8a4eea3f2e1a4b, 1db34683b0fbbcb3bc162380c11514ea0a44e8ab, 2ee8327c85b3ac7b532d2d6a1e3a295d5ad7414a, 0af8945fcae742d099f59f3c725eb67235953a31, 9924cb548ee7753a6473997949c3ec48092de0b0, e53112c2de88982e66c369aee2120d5efd78df30, 10358ea986c3c85516d1c8206486464f79d36e76
- 5.10
Fixed in 0, 5.10.265, 5.15.216, 6.1.183, 6.6.148, 6.12.101, 6.18.42, 7.1.6, 7.2
Mitigation
Upgrade Linux to a6a109771c51920beb620f30778c29da823cc34c or 7ff6f728a2433b420bb372cb0e8a4eea3f2e1a4b or 1db34683b0fbbcb3bc162380c11514ea0a44e8ab or 2ee8327c85b3ac7b532d2d6a1e3a295d5ad7414a or 0af8945fcae742d099f59f3c725eb67235953a31 or 9924cb548ee7753a6473997949c3ec48092de0b0 or e53112c2de88982e66c369aee2120d5efd78df30 or 10358ea986c3c85516d1c8206486464f79d36e76 or later.
Upgrade Linux to 0 or 5.10.265 or 5.15.216 or 6.1.183 or 6.6.148 or 6.12.101 or 6.18.42 or 7.1.6 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.