{"id":"CVE-2024-46850","published":"2024-09-27T12:42:43Z","modified":"2026-08-05T11:38:59Z","title":"drm/amd/display: Avoid race between dcn35_set_drr() and dc_state_destruct()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: Avoid race between dcn35_set_drr() and dc_state_destruct()\n\ndc_state_destruct() nulls the resource context of the DC state. The pipe\ncontext passed to dcn35_set_drr() is a member of this resource context.\n\nIf dc_state_destruct() is called parallel to the IRQ processing (which\ncalls dcn35_set_drr() at some point), we can end up using already nulled\nfunction callback fields of struct stream_resource.\n\nThe logic in dcn35_set_drr() already tries to avoid this, by checking tg\nagainst NULL. But if the nulling happens exactly after the NULL check and\nbefore the next access, then we get a race.\n\nAvoid this by copying tg first to a local variable, and then use this\nvariable for all the operations. This should work, as long as nobody\nfrees the resource pool where the timing generators live.\n\n(cherry picked from commit 0607a50c004798a96e62c089a4c34c220179dcb5)","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00178,"percentile":0.07517,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/42850927656a540428e58d370b3c1599a617bac7","tags":[]},{"url":"https://git.kernel.org/stable/c/e835d5144f5ef78e4f8828c63e2f0d61144f283a","tags":[]}],"priority":{"score":7.0,"factors":[{"name":"EPSS percentile","points":1.5},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 06ad7e16425619a4a77154c2e85bededb3e04a4f, < 42850927656a540428e58d370b3c1599a617bac7",">= 06ad7e16425619a4a77154c2e85bededb3e04a4f, < e835d5144f5ef78e4f8828c63e2f0d61144f283a"]},{"vendor":"Linux","product":"Linux","versions":["6.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-29T13:58:36.447027Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-42111","exploited":false,"provenance":"source"}}