CVE-2024-57798
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel | Amazon Linux | 6.1.124-134.200.amzn2023 |
| linux_kernel | linux | 6.12.8, 6.6.69, 6.1.123 |
| Linux | Linux | f61b2e5e7821f868d6afc22382a66a30ee780ba0, e54b00086f7473dbda1a7d6fc47720ced157c6a8, 9735d40f5fde9970aa46e828ecc85c32571d58a2, 5.5 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 9408cc94eb041d0c2f9f00189a613b94c0449450, 9408cc94eb041d0c2f9f00189a613b94c0449450, 9408cc94eb041d0c2f9f00189a613b94c0449450 |
| Linux | Linux | 5.5, 0, 6.1.123 |
| amazon:2023 | kernel | 0 |
| Linux | Linux | 9408cc94eb041d0c2f9f00189a613b94c0449450, 9408cc94eb041d0c2f9f00189a613b94c0449450, 9408cc94eb041d0c2f9f00189a613b94c0449450 |
| amazon:2023 | kernel-livepatch-6.1.124-134.200 | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| linux | linux_kernel | 5.5, 5.5, 5.5 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
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