CVE-2024-46850

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-46850
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-46850.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-46850
Downstream
Published
2024-09-27T12:42:43Z
Modified
2025-10-09T17:37:19.769700Z
Summary
drm/amd/display: Avoid race between dcn35_set_drr() and dc_state_destruct()
Details

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

drm/amd/display: Avoid race between dcn35setdrr() and dcstatedestruct()

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

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

The logic in dcn35setdrr() 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 0607a50c004798a96e62c089a4c34c220179dcb5)

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
06ad7e16425619a4a77154c2e85bededb3e04a4f
Fixed
42850927656a540428e58d370b3c1599a617bac7
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
06ad7e16425619a4a77154c2e85bededb3e04a4f
Fixed
e835d5144f5ef78e4f8828c63e2f0d61144f283a

Affected versions

v6.*

v6.10
v6.10-rc1
v6.10-rc2
v6.10-rc3
v6.10-rc4
v6.10-rc5
v6.10-rc6
v6.10-rc7
v6.10.1
v6.10.10
v6.10.2
v6.10.3
v6.10.4
v6.10.5
v6.10.6
v6.10.7
v6.10.8
v6.10.9
v6.11-rc1
v6.11-rc2
v6.11-rc3
v6.11-rc4
v6.11-rc5
v6.11-rc6
v6.5
v6.6
v6.6-rc1
v6.6-rc2
v6.6-rc3
v6.6-rc4
v6.6-rc5
v6.6-rc6
v6.6-rc7
v6.7
v6.7-rc1
v6.7-rc2
v6.7-rc3
v6.7-rc4
v6.7-rc5
v6.7-rc6
v6.7-rc7
v6.7-rc8
v6.8
v6.8-rc1
v6.8-rc2
v6.8-rc3
v6.8-rc4
v6.8-rc5
v6.8-rc6
v6.8-rc7
v6.9
v6.9-rc1
v6.9-rc2
v6.9-rc3
v6.9-rc4
v6.9-rc5
v6.9-rc6
v6.9-rc7

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.10.11