VDB

CVE-2024-57876

CVE-2024-57876 PUBLISHED

drm/dp_mst: Fix resetting msg rx state after topology removal

Reported by linux · Published January 11, 2025

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.

Fixed versions

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

PackageEcosystemFixed in
kernel-toolsAmazon Linux6.1.124-134.200.amzn2023
kernel-tools-develAmazon Linux6.1.124-134.200.amzn2023
kernel-libbpfAmazon Linux6.1.124-134.200.amzn2023
kernel-livepatch-6.1.124-134.200Amazon Linux1.0-0.amzn2023
linux_kernellinux6.12.5, 6.6.66, 6.1.120, 5.16, 5.11

Affected products

VendorProductVersions
LinuxLinuxb30fcedeba643ca16eaa6212c1245598b7cd830d, 1d082618bbf3b6755b8cc68c0a8122af2842d593, 1d082618bbf3b6755b8cc68c0a8122af2842d593
LinuxLinux6.3, 0, 6.1.120
amazon:2023kernel-tools0
amazon:2023kernel-tools-devel0
amazon:2023kernel-libbpf0
amazon:2023kernel-livepatch-6.1.124-134.2000
linuxlinux_kernel6.3, 6.3, 6.3
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-modules-extra-common0
amazon:2023bpftool0
LinuxLinux6.13, 5.15.100, 6.2.5
amazon:2023perf0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-modules-extra0
amazon:2023kernel-headers0
amazon:2023python3-perf0
amazon:2023kernel0
amazon:2023kernel-devel0

Timeline

  • Jan 11, 2025 CVE Published
  • Jan 12, 2025 EPSS Score (30 in total, the first dated here)
  • Apr 6, 2025 Coalition ESS Score (8 in total, the first dated here)
  • Dec 16, 2025 PoC Published
  • Dec 29, 2025 Security Advisory (145 in total, the first dated here)
  • Apr 29, 2026 Distribution Patch (129 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-57876
vulnetix vdb fixes CVE-2024-57876

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-57876/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 ›