В ядре Linux устранена следующая уязвимость:
netfs: исправлен потенциальный UAF в netfs_unlock_abandoned_read_pages().
netfs_unlock_abandoned_read_pages(rreq) обращается к индексу фолио, в котором он находится.
хочет разблокировать и сравнивает это с rreq->no_unlock_folio, чтобы
не разблокирует чтение фолио для netfs_perform_write() или
netfs_write_begin(). Однако, учитывая, что netfs_unlock_abandoned_read_pages() вызывается _after_
NETFS_RREQ_IN_PROGRESS очищен, единственный фолио, доступ к которому запрещен.
разыменование - это то, которое указано ->no_unlock_folio в качестве владельца
немедленно возвращается к вызывающему абоненту. Исправьте это, сохранив вместо этого указатель фолио и используя его вместо
индекс.
Также исправьте netfs_unlock_read_folio(), где применяется то же самое.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: netfs: Fix potential UAF in netfs_unlock_abandoned_read_pages() netfs_unlock_abandoned_read_pages(rreq) accesses the index of the folios it is wanting to unlock and compares that to rreq->no_unlock_folio so that it doesn't unlock a folio being read for netfs_perform_write() or netfs_write_begin(). However, given that netfs_unlock_abandoned_read_pages() is called _after_ NETFS_RREQ_IN_PROGRESS is cleared, the one folio that it's not allowed to dereference is the one specified by ->no_unlock_folio as ownership immediately reverts to the caller. Fix this by storing the folio pointer instead and using that rather than the index. Also fix netfs_unlock_read_folio() where the same applies.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 6
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.12
|
6.18.34
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.11
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*
|
— | — |