# CVE-2024-57798: drm/dp\_mst: Ensure mst\_primary pointer is valid in drm\_dp\_mst\_handle\_up\_req()

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-01-11 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2024-57798, DEBIAN-CVE-2024-57798
- Record: https://cvemate.com/vulnerability/CVE-2024-57798 · JSON: https://cvemate.com/vulnerability/CVE-2024-57798/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.222%, percentile 13.593%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 127)

- debian linux (Debian): \< 6.1.123-1 \| \< 6.12.8-1
- ubuntu linux (Ubuntu): \< 5.15.0-136.147 \| \< 6.8.0-57.59
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.15.0-1081.88 \| \< 6.8.0-1026.28
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1081.88~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1027.29~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1081.88+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1086.95 \| \< 6.8.0-1026.31
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1086.95~20.04.1
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 38)

- <https://git.kernel.org/stable/c/f61b2e5e7821f868d6afc22382a66a30ee780ba0>
- <https://git.kernel.org/stable/c/9735d40f5fde9970aa46e828ecc85c32571d58a2>
- <https://git.kernel.org/stable/c/ce55818b2d3a999f886af91679589e4644ff1dc8>
- <https://git.kernel.org/stable/c/e54b00086f7473dbda1a7d6fc47720ced157c6a8>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- <https://ubuntu.com/security/CVE-2024-57798>
- <https://www.cve.org/CVERecord?id=CVE-2024-57798>
- <https://git.kernel.org/linus/e54b00086f7473dbda1a7d6fc47720ced157c6a8>
- <https://ubuntu.com/security/notices/USN-7379-1>
- <https://ubuntu.com/security/notices/USN-7380-1>
- <https://ubuntu.com/security/notices/USN-7381-1>
- <https://ubuntu.com/security/notices/USN-7382-1>
- <https://ubuntu.com/security/notices/USN-7379-2>
- <https://ubuntu.com/security/notices/USN-7402-1>
- <https://ubuntu.com/security/notices/USN-7403-1>
- <https://ubuntu.com/security/notices/USN-7402-2>
- <https://ubuntu.com/security/notices/USN-7406-1>
- <https://ubuntu.com/security/notices/USN-7407-1>
- <https://ubuntu.com/security/notices/USN-7406-3>
- <https://ubuntu.com/security/notices/USN-7406-2>

---

Data as of 2026-12-05T04:18:25.378Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
