Katalog CVE

CVE-2026-93215

Nieznane
Opublikowano: Przetłumaczono: NVD NIST

Streszczenie

W jądrze Linux w funkcji cdx_create_res_attr() niepowodzenie sysfs_create_bin_file() powoduje zwolnienie res_attr bez wyzerowania wskaźnika w tablicy cdx_dev->res_attr[num]. Późniejsze wywołanie cdx_destroy_res_attr() zwalnia już zwolnioną pamięć, powodując podwójne zwolnienie.

Ocena ryzyka

Podwójne zwolnienie pamięci może prowadzić do uszkodzenia sterty i potencjalnego wykonania kodu, co stanowi poważne ryzyko dla bezpieczeństwa systemu.

Rekomendacja

Zaktualizuj jądro Linux do wersji zawierającej poprawkę, która inicjalizuje cdx_dev->res_attr[num] po zakończeniu sysfs_create_bin_file().

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: cdx: Fix double free when sysfs file creation fails In cdx_create_res_attr(), if sysfs_create_bin_file() fails, the code frees res_attr but doesn't set cdx_dev->res_attr[num] to NULL. This leaves a dangling pointer in the array. Then cdx_destroy_res_attr() frees the already-freed memory. Fix the double free by initializing cdx_dev->res_attr[num] after sysfs_create_bin_file() completes.

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