Katalog CVE

CVE-2026-99159

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

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.17%

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

Streszczenie

W ring-buffer funkcja rb_meta_subbuf_idx() może zwrócić indeks podbufora o jeden za wysoki, przez co subbuf_ids[0] pozostaje NULL i jest dereferencjonowany w __rb_map_vma() przy mapowaniu trace_pipe_raw. Błędne indeksy trafiają też do metadanych, powodując odrzucenie poprzedniego śladu przy następnym rozruchu.

Ocena ryzyka

Może prowadzić do awarii jądra przy mapowaniu trace_pipe_raw przez użytkownika oraz do utraty danych śledzenia z poprzedniego rozruchu. Wymaga dostępu do interfejsów tracingu.

Rekomendacja

Zaktualizuj jądro do wersji z poprawką, która odwraca obliczenia za pomocą rb_subbufs_from_meta() zamiast powielać je w rb_meta_subbuf_idx().

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: ring-buffer: Fix the sub-buffer array base in rb_meta_subbuf_idx() On a persistent ring buffer, rb_meta_subbuf_idx() can return an index one sub-buffer too high. rb_setup_ids_meta_page() then fills subbuf_ids[] shifted by one and leaves subbuf_ids[0] NULL, which __rb_map_vma() dereferences when userspace maps trace_pipe_raw. rb_update_meta_reader() writes two such indices into meta->buffers[], which rb_cpu_meta_valid() would reject on the next boot, discarding the previous boot's trace. A CPU's sub-buffer array starts after its meta header and the nr_subbufs integers that follow, aligned up to a sub-buffer. rb_meta_subbuf_idx() inverts that calculation but skips only the integers, not the header, so its base is one sub-buffer low whenever the omitted header size crosses the alignment boundary. Invert the calculation with rb_subbufs_from_meta() rather than repeating it. rb_range_buffer() maps an index back to an address through the same helper, so the two directions can no longer disagree.

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