Katalog CVE

CVE-2026-93106

Nieznane
Opublikowano: Przetłumaczono: NVD NIST

Streszczenie

W jądrze Linux funkcja restore_dm_crypt_keys_to_thread_keyring() pobiera referencję do keyringu użytkownika przed przywróceniem zapisanych kluczy dm-crypt. Ta sama referencja jest przekazywana do add_key_to_keyring() dla każdego klucza, ale funkcja ta zwalnia referencję przy każdym wywołaniu. Przy przywracaniu wielu kluczy referencja jest zwalniana zbyt wiele razy, co może wywołać underflow licznika referencji lub use-after-free. Przy więcej niż pięciu kluczach może wystąpić ostrzeżenie o underflow/use-after-free.

Ocena ryzyka

Underflow licznika referencji lub use-after-free może prowadzić do awarii jądra lub potencjalnej eskalacji uprawnień przez lokalnego atakującego.

Rekomendacja

Zaktualizuj jądro Linux do wersji zawierającej poprawkę. Unikaj przywracania wielu kluczy dm-crypt jednocześnie do czasu aktualizacji.

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: crash_dump: release keyring reference at the correct time restore_dm_crypt_keys_to_thread_keyring() gets a reference to the user keyring before restoring the saved dm-crypt keys. The same keyring reference is then passed to add_key_to_keyring() for each saved key, but add_key_to_keyring() drops that reference on every call. This is only balanced when exactly one key is restored. With multiple keys, the keyring reference is dropped too many times and may trigger a refcount underflow or use-after-free. When more than five keys are restored, a refcount underflow/use-after-free warning can be triggered. The early error paths after lookup_user_key() also return without dropping the keyring reference. Keep ownership of the keyring reference in restore_dm_crypt_keys_to_thread_keyring(), drop it once on all exit paths, and make add_key_to_keyring() only use the reference without consuming it.

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