В ядре Linux устранена следующая уязвимость:
rust_binder: избегать чтения записанного значения в массиве смещений
При отправке транзакции ее массив смещений сначала копируется в
vma целевого процесса, а затем значения считываются оттуда. Это
обычно это нормально, потому что vma — это сопоставление, доступное только для чтения, поэтому цель
процесс не может изменить значение под нами. Однако если целевой процесс каким-то образом получит возможность писать в свой
собственный vma, он может изменить смещение до того, как оно будет прочитано обратно, что приведет к
ядро неправильно истолковало то, что имел в виду отправитель.
Если отправитель случайно
отправить полезную нагрузку определенной формы, это в худшем случае может привести
чтобы получатель мог повысить привилегии отправителя. Цель состоит в том, чтобы получить возможность изменять vma, доступный только для чтения.
ваш собственный процесс не должен быть уязвимым, поэтому удалите это чтение TOCTOU
даже несмотря на то, что его невозможно использовать без другой ошибки Binder.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: rust_binder: avoid reading the written value in offsets array When sending a transaction, its offsets array is first copied into the target proc's vma, and then the values are read back from there. This is normally fine because the vma is a read-only mapping, so the target process cannot change the value under us. However, if the target process somehow gains the ability to write to its own vma, it could change the offset before it's read back, causing the kernel to misinterpret what the sender meant. If the sender happens to send a payload with a specific shape, this could in the worst case lead to the receiver being able to privilege escalate into the sender. The intent is that gaining the ability to change the read-only vma of your own process should not be exploitable, so remove this TOCTOU read even though it's unexploitable without another Binder bug.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 5
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.18
|
6.18.19
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
6.19.9
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
|
— | — |