VDB

CVE-2024-57798

CVE-2024-57798 PUBLISHED CVSS 7.8 HIGH

drm/dp_mst: Ensure mst_primary pointer is valid in drm_dp_mst_handle_up_req()

Reported by linux · Published January 11, 2025

In the Linux kernel, the following vulnerability has been resolved: drm/dp_mst: Ensure mst_primary pointer is valid in drm_dp_mst_handle_up_req() While receiving an MST up request message from one thread in drm_dp_mst_handle_up_req(), the MST topology could be removed from another thread via drm_dp_mst_topology_mgr_set_mst(false), freeing mst_primary and setting drm_dp_mst_topology_mgr::mst_primary to NULL. This could lead to a NULL deref/use-after-free of mst_primary in drm_dp_mst_handle_up_req(). Avoid the above by holding a reference for mst_primary in drm_dp_mst_handle_up_req() while it's used. v2: Fix kfreeing the request if getting an mst_primary reference fails.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernelAmazon Linux6.1.124-134.200.amzn2023
linux_kernellinux6.12.8, 6.6.69, 6.1.123
LinuxLinuxf61b2e5e7821f868d6afc22382a66a30ee780ba0, e54b00086f7473dbda1a7d6fc47720ced157c6a8, 9735d40f5fde9970aa46e828ecc85c32571d58a2, 5.5

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux9408cc94eb041d0c2f9f00189a613b94c0449450, 9408cc94eb041d0c2f9f00189a613b94c0449450, 9408cc94eb041d0c2f9f00189a613b94c0449450
LinuxLinux5.5, 0, 6.1.123
amazon:2023kernel0
LinuxLinux9408cc94eb041d0c2f9f00189a613b94c0449450, 9408cc94eb041d0c2f9f00189a613b94c0449450, 9408cc94eb041d0c2f9f00189a613b94c0449450
amazon:2023kernel-livepatch-6.1.124-134.2000
amazon:2023kernel-modules-extra-common0
linuxlinux_kernel5.5, 5.5, 5.5
amazon:2023kernel-libbpf-static0
amazon:2023python3-perf0
amazon:2023kernel-libbpf0
amazon:2023kernel-headers0
amazon:2023kernel-tools-devel0
amazon:2023kernel-devel0
amazon:2023bpftool0
amazon:2023kernel-modules-extra0
amazon:2023perf0
amazon:2023kernel-tools0
amazon:2023kernel-libbpf-devel0

Timeline

  • Jan 11, 2025 CVE Published
  • Jan 12, 2025 EPSS Score (30 in total, the first dated here)
  • Mar 19, 2025 Coalition ESS Score (5 in total, the first dated here)
  • Dec 16, 2025 PoC Published
  • Dec 29, 2025 Security Advisory (170 in total, the first dated here)
  • Apr 29, 2026 Distribution Patch (154 in total, the first dated here)
  • May 11, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-57798
vulnetix vdb fixes CVE-2024-57798

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-57798/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›