Katalog CVE

CVE-2026-98226

Niskie ryzyko· EPSS 6%
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.17%

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

Streszczenie

W jądrze Linux występuje kolizja bitu SWAP_USAGE_OFFLIST_BIT z rzeczywistym licznikiem użycia swapu. Bit flagi jest zdefiniowany jako bit 30, który przy stronach 4 KiB koliduje z licznikiem, gdy osiągnie on 4 TiB. Może to prowadzić do błędnego raportowania użycia swapu, przedwczesnego wyłączenia swapu (swapoff) i utraty stron oraz uszkodzenia licznika i listy plist.

Ocena ryzyka

Na systemach z dużym użyciem swapu (4 TiB lub więcej) może dojść do utraty danych w wyniku przedwczesnego swapoff oraz do uszkodzenia wewnętrznych struktur jądra. Błędne raportowanie użycia swapu może również prowadzić do błędnych decyzji administracyjnych.

Rekomendacja

Zaktualizuj jądro Linux do wersji zawierającej poprawkę, która zmienia definicję SWAP_USAGE_OFFLIST_BIT na opartą o atomic_long_t. Monitoruj użycie swapu i unikaj konfiguracji z ekstremalnie dużym swapem 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: mm, swap: fix SWAP_USAGE_OFFLIST_BIT collision with real usage count SWAP_USAGE_OFFLIST_BIT is embedded in the si->inuse_pages usage counter, and is meant to sit above any value that counter can reach. However, it is defined from BITS_PER_TYPE(atomic_t), so it is bit 30. On a system with 4 KiB pages the flag collides with the usage count once that count reaches 4 TiB. swap_usage_in_pages() masks bit 30 out, so whenever the real count has that bit set, every caller of it reads 4 TiB low: * /proc/swaps understates Used by 4 TiB. * A raw count of exactly 2^30 masks to zero, so try_to_unuse() takes its "if (!swap_usage_in_pages(si)) goto success;" early exit and swapoff tears the device down while pages are still swapped out. Nothing in the rest of swapoff aborts the teardown, so those pages are lost. Independently of swapoff, the collision also corrupts the counter and the plist. On a device in normal use, a free that leaves bit 30 set in the count makes swap_usage_sub() see the flag where there is only count, and call add_to_avail_list(). It clears the bit with fetch_and(~SWAP_USAGE_OFFLIST_BIT), leaving the stored count 4 TiB below the real one, and calls plist_add() on a device that is already listed, tripping the WARN_ON(!plist_node_empty(node)) in plist_add() and linking the node a second time. Change the definition of SWAP_USAGE_OFFLIST_BIT to be based on atomic_long_t instead. Note that the usage counter field itself is of this same type, so it is still a valid bit.

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