Nixpkgs security tracker

Login with GitHub
⚠️ You are using a production deployment that is still only suitable for demo purposes. Any work done in this might be wiped later without notice.

Suggestion detail

Dismissed
(max. allowed matches exceeded)
created 1 day, 10 hours ago Activity log
  • Created & dismissed (max. allowed matches exceeded) suggestion
driver core: use READ_ONCE() for dev->driver in dev_has_sync_state()

In the Linux kernel, the following vulnerability has been resolved: driver core: use READ_ONCE() for dev->driver in dev_has_sync_state() dev_has_sync_state() reads dev->driver twice without holding device_lock() -- once for the NULL check and once to dereference ->sync_state. Some callers only hold device_links_write_lock, which doesn't prevent a concurrent unbind from clearing dev->driver via device_unbind_cleanup(). Fix it by reading dev->driver exactly once with READ_ONCE(), pairing with the WRITE_ONCE() in device_set_driver().

Affected products

Linux
  • =<6.1.*
  • <9b0f4082a09760939588135d60a8e9cc994bfa3e
  • =<6.12.*
  • =<5.15.*
  • ==6d88283a49425eb469aa60ffebe76539e73c933e
  • <5.6
  • <89789e4c141904506163dcb91c7289a074573931
  • <cc77f0d91e3214e4292208f02a1dc09a31f9aac7
  • <358697929351f619143f59c6a8a15a4994748b79
  • =<6.6.*
  • <e9506871a8ea304cde48ff4a57226df2aadddae3
  • =<*
  • <51b3e1de53ee5b7775c7ff90e67fdb2665fce938
  • <5.6
  • <860885fcd2611bca8c28dac8b2c1c7ff160f763e
  • =<6.18.*
  • =<5.10.*
  • =<7.1.*
  • <5e79e0180515b31b2e2244dc3d256fd8b5a07021
  • ==5.6