CVE-2024-57876·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: drm/dp_mst: Fix resetting msg rx state after topology removal If the MST topology is removed during the reception of an MST down reply or MST up request sideband message, the drm_dp_mst_topology_mgr::up_req_recv/down_rep_recv states could be reset from one thread via drm_dp_mst_topology_mgr_set_mst(false), racing with the reading/parsing of the message from another thread via drm_dp_mst_handle_down_rep() or drm_dp_mst_handle_up_req(). The race is possible since the reader/parser doesn't hold any lock while accessing the reception state. This in turn can lead to a memory corruption in the reader/parser as described by commit bd2fccac61b4 ("drm/dp_mst: Fix MST sideband message body length check"). Fix the above by resetting the message reception state if needed before reading/parsing a message. Another solution would be to hold the drm_dp_mst_topology_mgr::lock for the whole duration of the message reception/parsing in drm_dp_mst_handle_down_rep() and drm_dp_mst_handle_up_req(), however this would require a bigger change. Since the fix is also needed for stable, opting for the simpler solution in this patch.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.12.5
- Published
- 2025-01-11
Affected versions
From: 6.7
Until: 6.12.5
Fixed in: 6.12.5
How to fix this CVE
Update your Linux kernel to version 6.12.5 or later to resolve a critical race condition in the DRM display port MST (Multi-Stream Transport) subsystem. This vulnerability can cause memory corruption when MST topology changes occur during active sideband message reception. Apply the patch immediately to systems using kernels 6.7 through 6.12.4, particularly those with DisplayPort MST-capable GPUs.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check installed kernel version with: uname -r
- Step 2: Compare output against affected range (6.7.x to 6.12.4); if within range, system is vulnerable
- Step 3: Verify DRM/MST subsystem is active by checking: lsmod | grep drm
- Step 4: After patching, confirm new kernel version with: uname -r and reboot if necessary
- Step 5: Check kernel logs for MST-related errors before and after: dmesg | grep -i mst
FAQ
What is CVE-2024-57876?
This vulnerability is a race condition in the Linux kernel's DRM DisplayPort MST subsystem where concurrent threads can corrupt memory during topology removal while sideband messages are being processed. An unprivileged local user could trigger memory corruption leading to system instability or potential code execution.
Is CVE-2024-57876 being actively exploited?
No, this CVE is not listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are currently available. However, the vulnerability is trivial to trigger locally on affected systems.
What versions of Kernel are affected by CVE-2024-57876?
Linux kernel versions 6.7.0 through 6.12.4 are vulnerable. Kernel 6.12.5 and later versions contain the fix.
How do I check if my server is vulnerable to CVE-2024-57876?
Run: uname -r to get your kernel version. If the output shows version 6.7 through 6.12.4, your system is vulnerable. For example, 6.11.2 or 6.12.3 would both be affected.
Does Defensia detect CVE-2024-57876?
Yes — Defensia's CVE advisory scanner compares installed kernel package versions against the NVD database. If Linux kernel is installed on a monitored server, CVE-2024-57876 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/94b33b2d7640e807869451384eb88321dd0ffbd4
- https://git.kernel.org/stable/c/a6fa67d26de385c3c7a23c1e109a0e23bfda4ec7
- https://git.kernel.org/stable/c/be826b4451fd187a7c0b04be4f8243d5df6e0450
- https://git.kernel.org/stable/c/d834d20d2e86c52ed5cab41763fa61e6071680ef
- 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-57876. Free for 1 server.
Get started free