Description
In the Linux kernel, the following vulnerability has been resolved: gpiolib: synchronize updates of descriptor labels desc_set_label() swaps desc->label with rcu_replace_pointer() but without any synchronization of concurrent updates. The swap is a plain read + write: two threads can observe the same old label and then call call_scru() on the same SRCU head corrupting the state of the chain. Add a spinlock to struct gpio_device - we're using a single spinlock for all descriptors as using a per-descriptor lock would unnecessarily bloat the size of the desc array with very little chance and no consequences of contention - and use it to serialize the pointer update.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
1f2bcb8c8ccdf9dc2e46f7986e1e22408506a6d6 to < d1c8e662cd14db2f3ae98fc224f64f3cc7adaa11affected1f2bcb8c8ccdf9dc2e46f7986e1e22408506a6d6 to < 82028344caeed2ea3536708906adee02e472633daffected
Linux Linux
Default version status: affected
6.9affected0 to < 6.9unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected