media: cedrus: skip invalid H.264 reference list entries
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e000e1fa4bdbd783149e7f97cf3be61e1c0bab8c · < 9924cb548ee7753a6473997949c3ec48092de0b0| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s Cedrus driver can read outside its decoded picture buffer array when an H.264 reference list contains an out-of-range index. A local userspace application can supply such a list through stateless slice controls; the input does not specify authentication requirements or user interaction beyond supplying the controls.
Engineers running Linux kernels with the Cedrus media driver should check their kernel versions against the vendor advisory; affected versions are not specified.