{"id":"CVE-2024-46851","published":"2024-09-27T12:42:44Z","modified":"2026-05-11T20:37:46Z","title":"drm/amd/display: Avoid race between dcn10_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 dcn10_set_drr() and dc_state_destruct()\n\ndc_state_destruct() nulls the resource context of the DC state. The pipe\ncontext passed to dcn10_set_drr() is a member of this resource context.\n\nIf dc_state_destruct() is called parallel to the IRQ processing (which\ncalls dcn10_set_drr() at some point), we can end up using already nulled\nfunction callback fields of struct stream_resource.\n\nThe logic in dcn10_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 a3cc326a43bdc48fbdf53443e1027a03e309b643)","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00237,"percentile":0.08904,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/b6ce047a81f508f5c60756db8dfb5ff486e4dad0","tags":[]},{"url":"https://git.kernel.org/stable/c/a7aeb03888b92304e2fc7d4d1c242f54a312561b","tags":[]}],"priority":{"score":1.8,"factors":[{"name":"EPSS percentile","points":1.78}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 06ad7e16425619a4a77154c2e85bededb3e04a4f, < b6ce047a81f508f5c60756db8dfb5ff486e4dad0",">= 06ad7e16425619a4a77154c2e85bededb3e04a4f, < a7aeb03888b92304e2fc7d4d1c242f54a312561b"]},{"vendor":"Linux","product":"Linux","versions":["6.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-29T13:58:30.543165Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-42112","exploited":false,"provenance":"source"}}