media: v4l2-ctrls: validate HEVC EXT SPS RPS counts
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: v4l2-ctrls: validate HEVC EXT SPS RPS counts
The HEVC SPS control carries the short-term and long-term RPS counts that decoder drivers use to walk the matching EXT SPS dynamic arrays. Reject SPS values that exceed the HEVC limits of 64 short-term sets and 32 long-term references so drivers cannot later index beyond those controls.
Also reject EXT SPS ST RPS entries whose negative or positive picture counts exceed the 16-entry arrays, or whose combined delta-POC count exceeds the HEVC DPB maximum.
From the CVE record · Linux
The Linux kernel's media v4l2-ctrls code did not validate certain HEVC SPS and EXT SPS counts against their limits. Excessive counts could cause decoder drivers to index beyond the matching control arrays. The input does not specify access requirements or whether user interaction is needed.
Engineers running the Linux kernel with media decoder drivers should check their kernel version; affected versions were not provided.