# CVE-2026-89882: media: rkvdec: hevc: guard INTER_REF_PIC_SET_PRED index underflow

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-09-16T10:31:47.644Z
- Modified: 2026-10-19T09:18:33.127Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

media: rkvdec: hevc: guard INTER_REF_PIC_SET_PRED index underflow

st_ref_pic_set_prediction() computes the reference RPS index as
st_rps_idx - (delta_idx_minus1 + 1) per HEVC spec equation 7-59.
Both operands are u8, so when delta_idx_minus1 + 1 exceeds the
current index the subtraction wraps and the subsequent array access
at calculated_rps_st_sets[ref_rps_idx] reads far out of bounds.

A userspace V4L2 client that can open the RKVDEC m2m decoder can
submit an EXT_SPS_ST_RPS control with INTER_REF_PIC_SET_PRED set
and delta_idx_minus1 crafted to trigger the underflow.

Reject the entry early when the reference index would underflow.

(As written by CVE List.)

## Affected

- Linux Linux: from c9a59dc2acc72789d5c778af080d1e65af84862c before 74938f83a8abbee8f502dfb5d94213b2497d1edf; from c9a59dc2acc72789d5c778af080d1e65af84862c before 052c5ed5a1d96a6b24fd50ccda16fc6841ee7ca3; 7.0 (not affected: before 7.0; from 7.2.5 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/74938f83a8abbee8f502dfb5d94213b2497d1edf>
- <https://git.kernel.org/stable/c/052c5ed5a1d96a6b24fd50ccda16fc6841ee7ca3>

## Sources

- CVE List: [CVE-2026-89882](https://www.cve.org/CVERecord?id=CVE-2026-89882), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-89882](https://nvd.nist.gov/vuln/detail/CVE-2026-89882), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-89882 · Whole record: https://cve.day/CVE-2026-89882.json · Rebuilt by cve.day 2026-11-25T22:59:38.966Z
