Descrizione
In the Linux kernel, the following vulnerability has been resolved: batman-adv: tp_meter: restrict number of unacked list entries When the unacked_list is unbound, an attacker could send messages with small lengths and appropriated seqno + gaps to force the receiver to allocate more and more unacked_list entries. And the end either causing an out-of-memory situation or increase the management overhead for the (large) list that significant portions of CPU cycles are wasted in searching through the list. When limiting the list to a specific number, it is important to still correctly add a new entry to the list. But if the list became larger than the limit, the last entry of the list (with the highest seqno) must be dropped to still allow the earlier seqnos to finish and therefore to continue the process. Otherwise, the process might get stuck with too high seqnos which are not handled by batadv_tp_ack_unordered().
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
4.8precedenti alla5.10.260→ aggiornare alla5.10.260o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.11precedenti alla5.15.211→ aggiornare alla5.15.211o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.16precedenti alla6.1.177→ aggiornare alla6.1.177o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.2precedenti alla6.6.144→ aggiornare alla6.6.144o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.95→ aggiornare alla6.12.95o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.38→ aggiornare alla6.18.38o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla7.1.3→ aggiornare alla7.1.3o successiva.
Patch e advisory
- Patch: git.kernel.org/stable/c/1111a3381bca2d1f084a07686bc…
- Patch: git.kernel.org/stable/c/1c616b0be4bd8399d485e25e918…
- Patch: git.kernel.org/stable/c/1fb8762600a393d1caccd63be5d…
- Patch: git.kernel.org/stable/c/2233787658db859f0a9b83cb397…
- Patch: git.kernel.org/stable/c/31a88792bfba142be3c9521538c…
- Patch: git.kernel.org/stable/c/c6231d628d06d841bc1617b2f70…
- Patch: git.kernel.org/stable/c/e7c775110e1858e5a7471a23a9c…
- Patch: git.kernel.org/stable/c/f8c499fd275e59203b77fca76ae…
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Applicare rate limiting e limiti sulle risorse a monte del servizio e monitorarne la disponibilità.
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 | ≥ 4.8 < 5.10.260 | 5.10.260 |
| Linux | Linux Kernel | ≥ 5.11 < 5.15.211 | 5.15.211 |
| Linux | Linux Kernel | ≥ 5.16 < 6.1.177 | 6.1.177 |
| Linux | Linux Kernel | ≥ 6.2 < 6.6.144 | 6.6.144 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.95 | 6.12.95 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.38 | 6.18.38 |
| Linux | Linux Kernel | ≥ 6.19 < 7.1.3 | 7.1.3 |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/1111a3381bca2d1f084a07686bc783af5ab23df7
- Patchhttps://git.kernel.org/stable/c/1c616b0be4bd8399d485e25e91859373b95d6013
- Patchhttps://git.kernel.org/stable/c/1fb8762600a393d1caccd63be5d07e1756982d68
- Patchhttps://git.kernel.org/stable/c/2233787658db859f0a9b83cb397cf783bb8be865
- Patchhttps://git.kernel.org/stable/c/31a88792bfba142be3c9521538c1db805677381f
- Patchhttps://git.kernel.org/stable/c/c6231d628d06d841bc1617b2f7034f5f39876b16
- Patchhttps://git.kernel.org/stable/c/e7c775110e1858e5a7471a23a9c9658c0af9df89
- Patchhttps://git.kernel.org/stable/c/f8c499fd275e59203b77fca76ae6ef2d096c2133