Katalog CVE

CVE-2024-42318

WysokieCVSS 8.8
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.29%

Percentyl 21 - wyżej niż 21% wszystkich znanych CVE

Streszczenie

W jądrze Linuxa, w module Landlock, wykryto podatność polegającą na utracie informacji o restrykcjach podczas operacji cred_transfer. Gdy struktura cred procesu jest zastępowana, zwykle wywoływany jest hak cred_prepare, ale w szczególnym przypadku (KEYCTL_SESSION_TO_PARENT) używany jest hak cred_transfer. Landlock implementuje tylko cred_prepare, więc KEYCTL_SESSION_TO_PARENT powoduje utratę wszystkich informacji o restrykcjach Landlock. Poprawka dodaje hak cred_transfer, który robi to samo co cred_prepare.

Ocena ryzyka

Proces z możliwością użycia syscalls fork() i keyctl() może pozbyć się wszystkich restrykcji Landlock na sobie, co może prowadzić do naruszenia polityki bezpieczeństwa i eskalacji uprawnień.

Rekomendacja

Zaleca się zaktualizowanie jądra Linuxa do wersji zawierającej poprawkę. Należy również ograniczyć dostęp do syscalls keyctl() dla nieuprzywilejowanych procesów.

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: landlock: Don't lose track of restrictions on cred_transfer When a process' cred struct is replaced, this _almost_ always invokes the cred_prepare LSM hook; but in one special case (when KEYCTL_SESSION_TO_PARENT updates the parent's credentials), the cred_transfer LSM hook is used instead. Landlock only implements the cred_prepare hook, not cred_transfer, so KEYCTL_SESSION_TO_PARENT causes all information on Landlock restrictions to be lost. This basically means that a process with the ability to use the fork() and keyctl() syscalls can get rid of all Landlock restrictions on itself. Fix it by adding a cred_transfer hook that does the same thing as the existing cred_prepare hook. (Implemented by having hook_cred_prepare() call hook_cred_transfer() so that the two functions are less likely to accidentally diverge in the future.)

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