Ad

CVE-2026-98994

NONE EPSS 0.16%
Обновлено 23 октября 2026
Linux
Параметр Значение
Поставщик Linux
Публичный эксплойт Нет

In the Linux kernel, the following vulnerability has been resolved: statmount: read the parent of an unmounted mount under mount_lock statmount_mnt_basic() reads the ids of the parent through m->mnt_parent with namespace_sem held for reading. Это хорошо для горы, которая находится в пространстве имен. Все, что выше этого, запечатлено в этом пространстве имен. STATMOUNT_BY_FD также принимает дескриптор файла на монтировании, который был размонтирован специально и который поддерживается только дескриптором файла.

Если это крепление оставалось привязанным к своему родителю, когда оно было размонтировано, родитель также размонтирован, и ничто не прикрепляет его к ребенку. Окончательный mntput () размонтирует детей под mount_lock и освобождает родителя после этого. Одновременно statmount_mnt_basic() читает m->mnt_parent дважды, в то время как это может произойти и может легко разобрать крепление, которое уже исчезло.

Прочитайте родительское крепление немонтированного крепления под mount_lock. Родитель не может быть помещен, пока он удерживается, и оба идентификатора происходят из одного и того же крепления. Родитель монтируемого крепления привязан к пространству имен, и крепление не может покинуть его пространство имен, в то время как namespace_sem удерживается, поэтому общий случай не имеет глобальной блокировки.

Показать оригинальное описание (EN)

In the Linux kernel, the following vulnerability has been resolved: statmount: read the parent of an unmounted mount under mount_lock statmount_mnt_basic() reads the ids of the parent through m->mnt_parent with namespace_sem held for reading. That's fine for a mount that is in a namespace. Everything above it is pinned by that namespace. STATMOUNT_BY_FD also accepts a file descriptor on a mount that has been unmounted on purpose and that only the file descriptor keeps alive. If that mount stayed attached to its parent when it was unmounted the parent is unmounted as well and nothing pins it for the child. The final mntput() unmounts the children under mount_lock alone and frees the parent afterwards. Concurrently, statmount_mnt_basic() reads m->mnt_parent twice while that can happen and can easily dereference a mount that's already gone. Read the parent of an unmounted mount under mount_lock. The parent can't be put while it is held and both ids come from the same mount. A mounted mount's parent is pinned by the namespace and a mount can't leave its namespace while namespace_sem is held, so the common case takes no global lock.