Linux
net: mctp: usb: fix race between urb completion and rx_retry cancellation
In the Linux kernel, the following vulnerability has been resolved: net: mctp: usb: fix race between urb completion and rx_retry cancellation It's possible that sequencing between setting ->stopped and cancelling the rx_retry work (in ndo_stop) could leave us with an urb queued: T1: ndo_stop T2: rx_retry_work ------------ ---------------- LD: ->stopped => false ST: ->stopped <= true usb_kill_urb() mctp_usb_rx_queue() usb_submit_urb() cancel_delayed_work_sync() That urb completion can then re-schedule rx_retry_work. Strenghen the sequencing between the stop (preventing another requeue) and the cancel by updating both atomically under a new rx lock. After setting ->rx_stopped, and cancelling pending work, we know that the requeue cannot occur, so all that's left is killing any pending urb.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0791c0327a6e4e7691d6fc5ad334c215de04dcc9, < 9c46f3ee1837f6881cb99a52ffecb2760f11dc73
- >= 0791c0327a6e4e7691d6fc5ad334c215de04dcc9, < d90feaa3f74bea8dafb6494631a194c70e547d94
- >= 0791c0327a6e4e7691d6fc5ad334c215de04dcc9, < 54665dce982689e2fd99b32e9a0dcc204fda8a51
Fixed in 9c46f3ee1837f6881cb99a52ffecb2760f11dc73, d90feaa3f74bea8dafb6494631a194c70e547d94, 54665dce982689e2fd99b32e9a0dcc204fda8a51
- 6.15
Fixed in 0, 6.18.36, 7.0.13, 7.1
Mitigation
Upgrade Linux to 9c46f3ee1837f6881cb99a52ffecb2760f11dc73 or d90feaa3f74bea8dafb6494631a194c70e547d94 or 54665dce982689e2fd99b32e9a0dcc204fda8a51 or later.
Upgrade Linux to 0 or 6.18.36 or 7.0.13 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.