CVE-2024-57798

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-57798
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-57798.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-57798
Downstream
Related
Published
2025-01-11T13:15:29Z
Modified
2025-10-01T21:16:40Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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

drm/dpmst: Ensure mstprimary pointer is valid in drmdpmsthandleup_req()

While receiving an MST up request message from one thread in drmdpmsthandleupreq(), the MST topology could be removed from another thread via drmdpmsttopologymgrsetmst(false), freeing mstprimary and setting drmdpmsttopologymgr::mstprimary to NULL. This could lead to a NULL deref/use-after-free of mstprimary in drmdpmsthandleup_req().

Avoid the above by holding a reference for mstprimary in drmdpmsthandleupreq() while it's used.

v2: Fix kfreeing the request if getting an mst_primary reference fails.

References

Affected packages