В ядре Linux устранена следующая уязвимость:
pds_core: исправлены гонки добавления/удаления вспомогательных устройств. Два пути добавляют или удаляют один и тот же слот (pf->vfs[vf_id].padev):
pdsc_reset_done() и обработчик devlink Enable_vnet/disable_vnet PF. Они сериализуются по config_lock, но не охраняют слот под ним.
правильно.
add() регистрирует и сохраняет новое вспомогательное устройство без предварительной проверки
слот, поэтому при втором добавлении уже заполненного слота происходит утечка первого
устройство. del() выполняет эту проверку вне config_lock, поэтому два параллельных
dels могут оба передать его; первый очищает слот, а второй
разыменовывает NULL-указатель.
Проверьте и обновите слот под config_lock в обоих путях.
Показать оригинальное описание (EN)
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.
Уязвимые продукты 6
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.6.90
|
6.6.148
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.12.28
|
6.12.101
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.15
|
6.18.42
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.15
|
7.1.6
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.15
|
7.2
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.14.6
|
— |