В ядре Linux устранена следующая уязвимость:
acct: выполнить последнюю запись из рабочей очереди
В [1] сообщалось, что системный вызов acct(2) можно использовать для
вызвать разыменование NULL в тех случаях, когда настроена запись в файл, который
запускает внутренний поиск. Это может произойти, например, при указании acc(2)
в /sys/power/resume. В момент записи в этот файл
случается, что вызывающая задача уже завершила работу и вызвала exit_fs().
А
Таким образом, поиск вызовет разыменование NULL при доступе к current->fs. Реорганизуйте код так, чтобы окончательная запись происходила из
workqueue, но с учетными данными вызывающего абонента. Это сохраняет
(странная) модель разрешения и почти не имеет риска регресса.
Однако этот API должен перестать существовать.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: acct: perform last write from workqueue In [1] it was reported that the acct(2) system call can be used to trigger NULL deref in cases where it is set to write to a file that triggers an internal lookup. This can e.g., happen when pointing acc(2) to /sys/power/resume. At the point the where the write to this file happens the calling task has already exited and called exit_fs(). A lookup will thus trigger a NULL-deref when accessing current->fs. Reorganize the code so that the the final write happens from the workqueue but with the caller's credentials. This preserves the (strange) permission model and has almost no regression risk. This api should stop to exist though.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.12
|
6.1.130
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.80
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.17
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.13.5
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.14:rc3:*:*:*:*:*:*
|
— | — |