Katalog CVE

CVE-2026-98994

Nieznane
Opublikowano: Przetłumaczono: NVD NIST

Streszczenie

W jądrze Linux funkcja statmount_mnt_basic() odczytywała identyfikatory rodzica przez m->mnt_parent z namespace_sem, co jest bezpieczne tylko dla mountów w przestrzeni nazw. Dla mountu odmontowanego celowo i utrzymywanego tylko przez deskryptor pliku (STATMOUNT_BY_FD) końcowe mntput() mogło zwolnić rodzica równolegle, powodując wyłuskanie już zwolnionego mountu.

Ocena ryzyka

Wyścig prowadzi do use-after-free podczas odczytu informacji o mountcie przez statmount, co może powodować błędy jądra lub potencjalnie być wykorzystane do eskalacji uprawnień.

Rekomendacja

Zaktualizuj jądro Linux do wersji zawierającej poprawkę odczytującą rodzica odmontowanego mountu pod mount_lock.

Inne podatności w Linux kernel

Zobacz wszystkie
Oryginalny opis (angielski, źródło NVD)

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.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS