CVE-2024-57798·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.12.8
- Published
- 2025-01-11
Affected versions
From: 6.7
Until: 6.12.8
Fixed in: 6.12.8
How to fix this CVE
Update your Linux kernel to version 6.12.8 or later to patch a race condition in the DisplayPort MST (Multi-Stream Transport) handler that could cause kernel crashes or memory corruption. Systems running kernel versions 6.7 through 6.12.7 should prioritize this update to eliminate the risk of NULL pointer dereference when MST topology changes occur concurrently with message handling.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Run `uname -r` to check your current kernel version and confirm if it falls within 6.7.x to 6.12.7 range
- Execute `cat /proc/cmdline` to verify no custom kernel parameters are masking the vulnerability
- Check for DisplayPort MST devices with `lspci | grep -i display` or `lsmod | grep drm_dp_mst` to determine if the vulnerable code path is loaded
- After patching, run `uname -r` again and verify the kernel version is 6.12.8 or later, then reboot to activate the fixed kernel
FAQ
What is CVE-2024-57798?
This vulnerability is a race condition in the Linux kernel's DisplayPort MST subsystem where concurrent MST message processing and topology removal can trigger a NULL pointer dereference or use-after-free condition, potentially causing kernel crashes or data corruption.
Is CVE-2024-57798 being actively exploited?
No, this CVE is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are currently available. However, the high CVSS score of 7.8 indicates it should still be prioritized for patching.
What versions of Kernel are affected by CVE-2024-57798?
Linux kernel versions 6.7.x through 6.12.7 are vulnerable. Version 6.12.8 and later contain the fix.
How do I check if my server is vulnerable to CVE-2024-57798?
Run `uname -r` to display your kernel version; if it shows 6.7 through 6.12.7, your system is vulnerable and requires immediate update to 6.12.8 or newer.
Does Defensia detect CVE-2024-57798?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2024-57798 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/9735d40f5fde9970aa46e828ecc85c32571d58a2
- https://git.kernel.org/stable/c/ce55818b2d3a999f886af91679589e4644ff1dc8
- https://git.kernel.org/stable/c/e54b00086f7473dbda1a7d6fc47720ced157c6a8
- https://git.kernel.org/stable/c/f61b2e5e7821f868d6afc22382a66a30ee780ba0
- https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-57798. Free for 1 server.
Get started free