net: lan743x: Initialize eth_syslock spinlock before use
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 39139b1c1c2b614096519b526112c726adb12ff0, Kernel 6523daa6852b1bfef32ec7a105b0217e8a115687, Kernel 99a6f37b113c46815deb160c5012073563679ef4 and 3 more.
In the Linux kernel, the following vulnerability has been resolved: net: lan743x: Initialize eth_syslock spinlock before use lan743x_hardware_init() calls pci11x1x_strap_get_status() during the PCI11x1x probe sequence. That helper acquires the Ethernet subsystem hardware lock via lan743x_hs_syslock_acquire(), which relies on adapter->eth_syslock_spinlock to serialize access. The spinlock is currently initialized only after the strap status is read. With CONFIG_DEBUG_SPINLOCK enabled, taking the zeroed initialized spinlock can trip the spinlock debug check. Fix by initializing adapter->eth_syslock_spinlock before reading the strap status so the probe path never attempts to lock an uninitialized spinlock.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.0, >=46b777ad9a8c269113634cee6a380bc4e53f3964 <39139b1c1c2b614096519b526112c726adb12ff0, >=46b777ad9a8c269113634cee6a380bc4e53f3964 <6523daa6852b1bfef32ec7a105b0217e8a115687, >=46b777ad9a8c269113634cee6a380bc4e53f3964 <99a6f37b113c46815deb160c5012073563679ef4, >=46b777ad9a8c269113634cee6a380bc4e53f3964 <b6a93a42e0e61f0ba0005a942ee3bffb16c0574e, >=46b777ad9a8c269113634cee6a380bc4e53f3964 <b99e890e6b32ffa11c145a16fefcf2c7137a9578, >=46b777ad9a8c269113634cee6a380bc4e53f3964 <dfaefd9a7808736fcd2ed0de108f55c4badc15cc | 39139b1c1c2b614096519b526112c726adb12ff0, 6523daa6852b1bfef32ec7a105b0217e8a115687, 99a6f37b113c46815deb160c5012073563679ef4, b6a93a42e0e61f0ba0005a942ee3bffb16c0574e, b99e890e6b32ffa11c145a16fefcf2c7137a9578, dfaefd9a7808736fcd2ed0de108f55c4badc15cc |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket