drm/dp_mst: Handle torn-down topology gracefully in drm_dp_mst_topology_queue_probe()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel afdff9103818656627920c21822e48a6dae2906f, Kernel 6.6.148, Kernel 4ed6d08c4a59ee6a8cb806347f6d9873de5d229e and 6 more.
In the Linux kernel, the following vulnerability has been resolved: drm/dp_mst: Handle torn-down topology gracefully in drm_dp_mst_topology_queue_probe() A hotplug or link-loss event can tear down the MST topology (setting mgr->mst_state = false and mgr->mst_primary = NULL) concurrently with a caller invoking drm_dp_mst_topology_queue_probe(). Since the check is already performed under mgr->lock, the condition is not a programming error but a valid race -- the topology was valid when the caller decided to call this function, but was torn down before the lock was acquired. Replace the drm_WARN_ON() with a graceful early return. This eliminates spurious kernel warnings and the resulting compositor crashes observed when connecting/disconnecting DP MST monitors, while keeping the correct behavior of doing nothing when MST is not active. A drm_dbg_mst() trace is added so the skipped probe remains observable under MST debug logging. The existing WARN_ON(mgr->mst_primary) in drm_dp_mst_topology_mgr_set_mst() already catches the case where the topology is initialized twice, so no diagnostic coverage is lost.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=dbaeef363ea54f4c18112874b77503c72ba60fec <afdff9103818656627920c21822e48a6dae2906f, >=6.6.86 <6.6.148, >=dbaeef363ea54f4c18112874b77503c72ba60fec <4ed6d08c4a59ee6a8cb806347f6d9873de5d229e, >=dbaeef363ea54f4c18112874b77503c72ba60fec <613059875958e7b217b250ed14c3b189f9488421, >=dbaeef363ea54f4c18112874b77503c72ba60fec <8c6d84a54823cd839e6ce22af559925f1320c310, =6.12, >=5f57a96e92c60f62da91d58ceb5e5acd40e7d594 <b1d05cc61dfa6c4bd5e67855bec6a03e955f512d | afdff9103818656627920c21822e48a6dae2906f, 6.6.148, 4ed6d08c4a59ee6a8cb806347f6d9873de5d229e, 613059875958e7b217b250ed14c3b189f9488421, 8c6d84a54823cd839e6ce22af559925f1320c310, b1d05cc61dfa6c4bd5e67855bec6a03e955f512d |
| linux-kernel: Kernel | >=6.13.0 <6.18.42, >=6.19.0 <7.1.6, >=6.6.86 <6.6.148, >=6.12.0 <6.12.101 | 6.18.42, 7.1.6, 6.6.148, 6.12.101 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket