pds_core: fix auxiliary device add/del races
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel ef194751fed50cf3452017b63f00142a0ab40c70, Kernel 6.15, Kernel 6.6.148 and 7 more.
In the Linux kernel, the following vulnerability has been resolved: pds_core: fix auxiliary device add/del races Two paths add or delete the same slot (pf->vfs[vf_id].padev): a VF's pdsc_reset_done() and the PF's devlink enable_vnet/disable_vnet handler. They serialize on config_lock, but neither guards the slot under it correctly. add() registers and stores a new auxiliary device without first checking the slot, so a second add of an already-populated slot leaks the first device. del() makes that check outside config_lock, so two concurrent dels can both pass it; the first clears the slot, and the second dereferences a NULL pointer. Check and update the slot under config_lock in both paths.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=f41e27b746241e57d968d1d61c008322338ca258 <ef194751fed50cf3452017b63f00142a0ab40c70, >=6.14.6 <6.15, >=6.6.90 <6.6.148, >=b699bdc720c0255d1bb76cecba7382c1f2107af5 <bdeab32a7a91acd295d52a2d4ab1cc3f2da5e454, >=b699bdc720c0255d1bb76cecba7382c1f2107af5 <bfa33cd513c7ceb93c5a4c30e5662acd73c0a916, >=b699bdc720c0255d1bb76cecba7382c1f2107af5 <cf0ed2ba202f5c3b300ec1bf7ff0b5d555f7d518, =6.15, =fec5f7af1d5f64a38f9224cd27b274d1af55a7ed, >=0861fccd43b8bafb533d97308862d20b7db3a2ad <646b58b543f3bb1641e9123b75ff7799fe7b42f1, >=6.12.28 <6.12.101 | ef194751fed50cf3452017b63f00142a0ab40c70, 6.15, 6.6.148, bdeab32a7a91acd295d52a2d4ab1cc3f2da5e454, bfa33cd513c7ceb93c5a4c30e5662acd73c0a916, cf0ed2ba202f5c3b300ec1bf7ff0b5d555f7d518, 646b58b543f3bb1641e9123b75ff7799fe7b42f1, 6.12.101 |
| linux-kernel: Kernel | >=6.14.6 <6.15, >=6.15.0 <6.18.42, >=6.19.0 <7.1.6, >=6.6.90 <6.6.148, >=6.12.28 <6.12.101 | 6.15, 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