# CVE-2024-46851: drm/amd/display: Avoid race between dcn10_set_drr() and dc_state_destruct()

- Severity: Medium 4.7 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/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.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2024-09-27T12:42:44.619Z
- Modified: 2026-06-17T07:56:04.880Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

drm/amd/display: Avoid race between dcn10_set_drr() and dc_state_destruct()

dc_state_destruct() nulls the resource context of the DC state. The pipe
context passed to dcn10_set_drr() is a member of this resource context.

If dc_state_destruct() is called parallel to the IRQ processing (which
calls dcn10_set_drr() at some point), we can end up using already nulled
function callback fields of struct stream_resource.

The logic in dcn10_set_drr() already tries to avoid this, by checking tg
against NULL. But if the nulling happens exactly after the NULL check and
before the next access, then we get a race.

Avoid this by copying tg first to a local variable, and then use this
variable for all the operations. This should work, as long as nobody
frees the resource pool where the timing generators live.

(cherry picked from commit a3cc326a43bdc48fbdf53443e1027a03e309b643)

(As written by CVE List.)

## Affected

- Linux Linux: from 06ad7e16425619a4a77154c2e85bededb3e04a4f before b6ce047a81f508f5c60756db8dfb5ff486e4dad0; from 06ad7e16425619a4a77154c2e85bededb3e04a4f before a7aeb03888b92304e2fc7d4d1c242f54a312561b; 6.7 (not affected: before 6.7; from 6.10.11 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 6.7 before 6.10.11; 6.11

## References

- <https://git.kernel.org/stable/c/b6ce047a81f508f5c60756db8dfb5ff486e4dad0> (patch)
- <https://git.kernel.org/stable/c/a7aeb03888b92304e2fc7d4d1c242f54a312561b> (patch)

## Sources

- CVE List: [CVE-2024-46851](https://www.cve.org/CVERecord?id=CVE-2024-46851), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-46851](https://nvd.nist.gov/vuln/detail/CVE-2024-46851), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-46851 · Whole record: https://cve.day/CVE-2024-46851.json · Rebuilt by cve.day 2026-11-25T22:58:45.844Z
