Descrizione

In the Linux kernel, the following vulnerability has been resolved: tracepoint: balance regfunc() on func_add() failure in tracepoint_add_func() When a tracepoint goes through the 0 -> 1 transition, tracepoint_add_func() invokes the subsystem's ext->regfunc() before attempting to install the new probe via func_add(). If func_add() then fails (for example, when allocate_probes() cannot allocate a new probe array under memory pressure and returns -ENOMEM), the function returns the error without calling the matching ext->unregfunc(), leaving the side effects of regfunc() behind with no installed probe to justify them. For syscall tracepoints this is particularly unpleasant: syscall_regfunc() bumps sys_tracepoint_refcount and sets SYSCALL_TRACEPOINT on every task. After a leaked failure, the refcount is stuck at a non-zero value with no consumer, and every task continues paying the syscall trace entry/exit overhead until reboot. Other subsystems providing regfunc()/unregfunc() pairs exhibit similarly scoped persistent state. Mirror the existing 1 -> 0 cleanup and call ext->unregfunc() in the func_add() error path, gated on the same condition used there so the unwind is symmetric with the registration.

Testo originale del record CVE (in inglese).

Come correggere

Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.

Versioni da aggiornare

  • Linux Linux Kernel: vulnerabili le versioni dalla 4.10 precedenti alla 6.6.140 → aggiornare alla 6.6.140 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.7 precedenti alla 6.12.88 → aggiornare alla 6.12.88 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.13 precedenti alla 6.18.30 → aggiornare alla 6.18.30 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.19 precedenti alla 7.0.7 → aggiornare alla 7.0.7 o successiva.

Patch e advisory

Mitigazioni temporanee

Da applicare solo se non è possibile aggiornare subito:

  • Ridurre l'esposizione del componente vulnerabile (segmentazione, accesso solo da reti fidate) finché la patch non è applicata.

Verifica

  1. Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
  2. Confrontare la versione installata con quelle indicate sopra.
  3. Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
  4. Ripetere la scansione per confermare la correzione.

Configurazioni interessate

VendorProdottoVersioni vulnerabiliCorretta in
Linux Linux Kernel ≥ 4.10 < 6.6.140 6.6.140
Linux Linux Kernel ≥ 6.7 < 6.12.88 6.12.88
Linux Linux Kernel ≥ 6.13 < 6.18.30 6.18.30
Linux Linux Kernel ≥ 6.19 < 7.0.7 7.0.7

Riferimenti