CVE-2024-26721
kernel: drm/i915/dsc: Fix the macro that calculates DSCC_/DSCA_ PPS reg address
Overview
Description
In the Linux kernel, the following vulnerability has been resolved:
drm/i915/dsc: Fix the macro that calculates DSCC_/DSCA_ PPS reg address
Commit bd077259d0a9 ("drm/i915/vdsc: Add function to read any PPS register") defines a new macro to calculate the DSC PPS register addresses with PPS number as an input. This macro correctly calculates the addresses till PPS 11 since the addresses increment by 4. So in that case the following macro works correctly to give correct register address:
_MMIO(_DSCA_PPS_0 + (pps) * 4)
However after PPS 11, the register address for PPS 12 increments by 12 because of RC Buffer memory allocation in between. Because of this discontinuity in the address space, the macro calculates wrong addresses for PPS 12 - 16 resulting into incorrect DSC PPS parameter value read/writes causing DSC corruption.
This fixes it by correcting this macro to add the offset of 12 for PPS
=12.
v3: Add correct paranthesis for pps argument (Jani Nikula)
(cherry picked from commit 6074be620c31dc2ae11af96a1a5ea95580976fb5)
Source: OX vulnerability database
Severity
5.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-131
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 7 fixes
Red Hat 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | bpftool +45 | wont fix |
| 9 | bpftool +106 | wont fix |
debian 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 13 | linux | 6.7.7-1 |
| 14 | linux | 6.7.7-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| linux | 6.7.7-1 |
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 13 | rootio-linux | 6.7.7-1 |
ubuntu 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 24.04 | linux-raspi-realtime | 6.8.0-2002.2 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2024-26721
- git.kernel.org https://git.kernel.org/linus/962ac2dce56bb3aad1f82a4bbe3ada57a020287c (6.8-rc5)
- git.kernel.org https://git.kernel.org/stable/c/962ac2dce56bb3aad1f82a4bbe3ada57a020287c
- git.kernel.org https://git.kernel.org/stable/c/ff5999fb03f467e1e7159f0ddb199c787f7512b9
- lore.kernel.org https://lore.kernel.org/linux-cve-announce/2024040345-CVE-2024-26721-3377@gregkh/T
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2024-26721
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2024-26721
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.