В ядре Linux устранена следующая уязвимость:
fs/fhandle.c: исправлена гонка при вызове has_locked_children().
may_decode_fh() вызывает has_locked_children(), не удерживая блокировок. Это ужасная гонка... Остальные вызывающие программы в безопасности, поскольку они содержат namespace_sem и
гарантирован положительный рефсчет на рассматриваемое крепление.
Переименуйте текущий метод has_locked_children() в __has_locked_children(), сделайте
он статический и переключите на него пользователей fs/namespace.c. Сделайте has_locked_children() оберткой для __has_locked_children(), вызвав
последний под read_seqlock_excl(&mount_lock).
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: fs/fhandle.c: fix a race in call of has_locked_children() may_decode_fh() is calling has_locked_children() while holding no locks. That's an oopsable race... The rest of the callers are safe since they are holding namespace_sem and are guaranteed a positive refcount on the mount in question. Rename the current has_locked_children() to __has_locked_children(), make it static and switch the fs/namespace.c users to it. Make has_locked_children() a wrapper for __has_locked_children(), calling the latter under read_seqlock_excl(&mount_lock).
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 2
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.11
|
6.12.46
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.15.3
|