В ядре Linux устранена следующая уязвимость:
futex: отказаться от требования CLONE_THREAD для выделения частного хэша по умолчанию. В настоящее время метод Need_futex_hash_allocate_default() зависит от строгого pthread.
семантика, злоупотребляющая CLONE_THREAD. Это нарушает принцип непараллелизма
предположения при выделении ресурсов компьютера mm->futex_ref, что приводит к
ошибки[0] при совместном использовании мм другими способами; то есть:
ОШИБКА: KASAN: slab-use-after-free в futex_hash_put
... где смещение +1 может оказаться на счетчике процессора, который mm->futex_ref
больше не указывает на.
Ослабьте проверку, чтобы охватить любой клон CLONE_VM, кроме vfork(). Исключая
vfork сохраняет существующие пути нетронутыми (без накладных расходов), и мы не можем
гонка в первую очередь: либо родитель отстраняется, а ребенок
работает отдельно, или mm->futex_ref уже выделен из более раннего
CLONE_VM.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: futex: Drop CLONE_THREAD requirement for private default hash alloc Currently need_futex_hash_allocate_default() depends on strict pthread semantics, abusing CLONE_THREAD. This breaks the non-concurrency assumptions when doing the mm->futex_ref pcpu allocations, leading to bugs[0] when sharing the mm in other ways; ie: BUG: KASAN: slab-use-after-free in futex_hash_put ... where the +1 bias can end up on a percpu counter that mm->futex_ref no longer points at. Loosen the check to cover any CLONE_VM clone, except vfork(). Excluding vfork keeps the existing paths untouched (no overhead), and we can't race in the first place: either the parent is suspended and the child runs alone, or mm->futex_ref is already allocated from an earlier CLONE_VM.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.17.1
|
6.18.33
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.10
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.17:-:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.17:rc5:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.17:rc6:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.17:rc7:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
|
— | — |