В ядре Linux устранена следующая уязвимость:
fhandle: отклонять отсоединенные монтирования в canable_wrt_mount()
Недавнее исправление fhandle RCU переместило проверку возможности монтирования пространства имен.
в способный_wrt_mount(), поэтому пространство mnt_namespace, отличное от NULL, сохраняется
Разыменование ns_capable(). Помощник по-прежнему предполагает, что позднее
READ_ONCE(mount->mnt_ns) не должно быть NULL, поскольку may_decode_fh()
сначала проверил is_mounted(). Это предположение не является устойчивым.
Отдельно стоящее крепление от
open_tree(..., OPEN_TREE_CLONE) можно распустить на fput, пока
open_by_handle_at() находится между этими проверками, а umount_tree() может
очистить mount->mnt_ns. Если помощник наблюдает NULL, он разыменовывает
mnt_ns->user_ns и паника. Возвращайте значение false, если при чтении RCU обнаруживается отсоединенное крепление.
Это сохраняет
расслабленный консервативный путь разрешений: крепление больше не прикрепляется
в пространство имен не может авторизовать доступ open_by_handle_at().
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: fhandle: reject detached mounts in capable_wrt_mount() The recent fhandle RCU fix moved the mount namespace capability check into capable_wrt_mount(), so a non-NULL mnt_namespace survives the ns_capable() dereference. The helper still assumes the later READ_ONCE(mount->mnt_ns) must be non-NULL because may_decode_fh() checked is_mounted() first. That assumption is not stable. A detached mount from open_tree(..., OPEN_TREE_CLONE) can be dissolved on fput while open_by_handle_at() is between those checks, and umount_tree() can clear mount->mnt_ns. If the helper observes NULL, it dereferences mnt_ns->user_ns and panics. Return false when the RCU read observes a detached mount. This keeps the relaxed permission path conservative: a mount no longer attached to a namespace cannot authorize open_by_handle_at() access.
Характеристики атаки
Последствия
Строка CVSS v3.1