Linux
media: v4l2-ctrls: validate HEVC active reference counts
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= d395a78db9eabd12633b39e05c80e803543b6590, < 3299c3905f3fb439ebd892658b87bc76c93ae116
- >= d395a78db9eabd12633b39e05c80e803543b6590, < 9a998cc1c348769262d433acb7d238c5fac4b2e0
- >= d395a78db9eabd12633b39e05c80e803543b6590, < dbaf0e0023e2f9332c5164822def7f80b7d2c5ef
- >= d395a78db9eabd12633b39e05c80e803543b6590, < 3068ab802fc98b121dcb451e1f7f4d338ffc7a19
- >= d395a78db9eabd12633b39e05c80e803543b6590, < b01df98a6669d2b67d8aed816021b327fd905998
- >= d395a78db9eabd12633b39e05c80e803543b6590, < afbe4bc252d90a6f8fad869b06d5430f615f22f9
Fixed in 3299c3905f3fb439ebd892658b87bc76c93ae116, 9a998cc1c348769262d433acb7d238c5fac4b2e0, dbaf0e0023e2f9332c5164822def7f80b7d2c5ef, 3068ab802fc98b121dcb451e1f7f4d338ffc7a19, b01df98a6669d2b67d8aed816021b327fd905998, afbe4bc252d90a6f8fad869b06d5430f615f22f9
- 5.14
Fixed in 0, 6.1.183, 6.6.148, 6.12.101, 6.18.42, 7.1.6, 7.2
Mitigation
Upgrade Linux to 3299c3905f3fb439ebd892658b87bc76c93ae116 or 9a998cc1c348769262d433acb7d238c5fac4b2e0 or dbaf0e0023e2f9332c5164822def7f80b7d2c5ef or 3068ab802fc98b121dcb451e1f7f4d338ffc7a19 or b01df98a6669d2b67d8aed816021b327fd905998 or afbe4bc252d90a6f8fad869b06d5430f615f22f9 or later.
Upgrade Linux to 0 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.