media: v4l2-ctrls: validate HEVC active reference counts
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d395a78db9eabd12633b39e05c80e803543b6590 · < afbe4bc252d90a6f8fad869b06d5430f615f22f9| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: v4l2-ctrls: validate HEVC active reference counts
HEVC slice parameters are shared stateless V4L2 controls, but the common validation path does not verify the active L0/L1 reference counts before driver-specific code consumes them.
The original report came from Cedrus, but the active count bounds are not Cedrus-specific. Validate them in the common HEVC slice control path so stateless HEVC drivers get the same basic guarantees as soon as the control is queued.
Do not reject ref_idx_l0/ref_idx_l1 entries here. Existing userspace may use out-of-range sentinel values such as 0xff for missing references, and some hardware can use that information for concealment. Keep this common check limited to the active reference counts.
From the CVE record · Linux
The Linux kernel’s common stateless V4L2 control path does not validate active HEVC L0/L1 reference counts before driver-specific code uses them. A local userspace process can queue slice controls with invalid active counts; the input does not specify the resulting impact or any authentication requirements.
Teams running Linux kernels with stateless HEVC V4L2 drivers should check their kernels; affected versions are not specified.