Descrizione
In the Linux kernel, the following vulnerability has been resolved: bpf: return VMA snapshot from task_vma iterator Holding the per-VMA lock across the BPF program body creates a lock ordering problem when helpers acquire locks that depend on mmap_lock: vm_lock -> i_rwsem -> mmap_lock -> vm_lock Snapshot the VMA under the per-VMA lock in _next() via memcpy(), then drop the lock before returning. The BPF program accesses only the snapshot. The verifier only trusts vm_mm and vm_file pointers (see BTF_TYPE_SAFE_TRUSTED_OR_NULL in verifier.c). vm_file is reference- counted with get_file() under the lock and released via fput() on the next iteration or in _destroy(). vm_mm is already correct because lock_vma_under_rcu() verifies vma->vm_mm == mm. All other pointers are left as-is by memcpy() since the verifier treats them as untrusted.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.91→ aggiornare alla6.12.91o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.33→ aggiornare alla6.18.33o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla7.0.10→ aggiornare alla7.0.10o successiva.
Patch e advisory
- Patch: git.kernel.org/stable/c/13860ca37b8df0b856ee1ce3bdb…
- Patch: git.kernel.org/stable/c/4cbee026db54cad39c39db4d356…
- Patch: git.kernel.org/stable/c/592226d138378601ae28eb890e2…
- Patch: git.kernel.org/stable/c/83b8802c034e843b83a3e1ef6f3…
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
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| Linux | Linux Kernel | ≥ 6.7 < 6.12.91 | 6.12.91 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.33 | 6.18.33 |
| Linux | Linux Kernel | ≥ 6.19 < 7.0.10 | 7.0.10 |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/13860ca37b8df0b856ee1ce3bdbd7c327d5f53e8
- Patchhttps://git.kernel.org/stable/c/4cbee026db54cad39c39db4d356100cb133412b3
- Patchhttps://git.kernel.org/stable/c/592226d138378601ae28eb890e2bbc23ec3600f7
- Patchhttps://git.kernel.org/stable/c/83b8802c034e843b83a3e1ef6f30cdd4e9ec291c