В ядре Linux устранена следующая уязвимость:
Bluetooth: hci_event: исправлено использование rcu_read_(un)lock во время итерации.
Использование rcu_read_(un)lock внутри list_for_each_entry_rcu
небезопасно, поскольку по большей части записи, полученные таким образом, будут
рассматривается как rcu_dereference:
Обратите внимание, что значение, возвращаемое функцией rcu_dereference(), действительно.
только внутри критической секции чтения на стороне RCU [1]_.
Например, следующее **не** законно:
rcu_read_lock();
р = rcu_dereference(head.next);
rcu_read_unlock();
х = р-> адрес; /* ОШИБКА!!! */
rcu_read_lock();
у = р-> данные; /* ОШИБКА!!! */
rcu_read_unlock();
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_event: Fix using rcu_read_(un)lock while iterating The usage of rcu_read_(un)lock while inside list_for_each_entry_rcu is not safe since for the most part entries fetched this way shall be treated as rcu_dereference: Note that the value returned by rcu_dereference() is valid only within the enclosing RCU read-side critical section [1]_. For example, the following is **not** legal:: rcu_read_lock(); p = rcu_dereference(head.next); rcu_read_unlock(); x = p->address; /* BUG!!! */ rcu_read_lock(); y = p->data; /* BUG!!! */ rcu_read_unlock();
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 5
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.4.16
|
6.5
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.5.3
|
6.6.67
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.6
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.13:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.13:rc2:*:*:*:*:*:*
|
— | — |