CVE-2024-57876
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-tools | Amazon Linux | 6.1.124-134.200.amzn2023 |
| kernel-tools-devel | Amazon Linux | 6.1.124-134.200.amzn2023 |
| kernel-libbpf | Amazon Linux | 6.1.124-134.200.amzn2023 |
| kernel-livepatch-6.1.124-134.200 | Amazon Linux | 1.0-0.amzn2023 |
| linux_kernel | linux | 6.12.5, 6.6.66, 6.1.120, 5.16, 5.11 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | b30fcedeba643ca16eaa6212c1245598b7cd830d, 1d082618bbf3b6755b8cc68c0a8122af2842d593, 1d082618bbf3b6755b8cc68c0a8122af2842d593 |
| Linux | Linux | 6.3, 0, 6.1.120 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-livepatch-6.1.124-134.200 | 0 |
| linux | linux_kernel | 6.3, 6.3, 6.3 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | bpftool | 0 |
| Linux | Linux | 6.13, 5.15.100, 6.2.5 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-devel | 0 |
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