Descrizione
In the Linux kernel, the following vulnerability has been resolved: wifi: cfg80211: advance loop vars in cfg80211_merge_profile() cfg80211_merge_profile() reassembles a Multi-BSSID non-transmitted BSS profile that has been split across multiple consecutive MBSSID elements. Its while-loop calls cfg80211_get_profile_continuation(ie, ielen, mbssid_elem, sub_elem) but never advances mbssid_elem or sub_elem inside the body. Each iteration therefore searches for a continuation that follows the same fixed pair; the helper returns the same next_mbssid; and the same next_sub bytes are memcpy()'d into merged_ie at a growing offset until the buffer fills. Advance both mbssid_elem and sub_elem to the just-consumed continuation so the next call to cfg80211_get_profile_continuation() searches for a further continuation beyond it (or returns NULL when none exists). A specially-crafted malicious beacon can take advantage of this bug to cause the kernel to spend an excessive amount of time in cfg80211_merge_profile (up to as much as 2ms per beacon received), which could theoretically be abused in some way.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
5.2precedenti alla5.10.258→ aggiornare alla5.10.258o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.11precedenti alla5.15.209→ aggiornare alla5.15.209o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.16precedenti alla6.1.175→ aggiornare alla6.1.175o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.2precedenti alla6.6.142→ aggiornare alla6.6.142o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.92→ aggiornare alla6.12.92o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.34→ aggiornare alla6.18.34o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla7.0.11→ aggiornare alla7.0.11o successiva. - Linux Linux Kernel: vulnerabile la versione
7.1 rc1→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.1 rc2→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.1 rc3→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.1 rc4→ installare l'ultima release supportata dal vendor.
Patch e advisory
- Patch: git.kernel.org/stable/c/1343a480f84b80c1249133a90ef…
- Patch: git.kernel.org/stable/c/1ced0f5a851f9cae274545a42a0…
- Patch: git.kernel.org/stable/c/5817e1e5205498a5df66eba2b34…
- Patch: git.kernel.org/stable/c/67915715fd3874057457363c87c…
- Patch: git.kernel.org/stable/c/6cfae4914439878b8acb35c7e3b…
- Patch: git.kernel.org/stable/c/7666dbb1bacc4ba522b96740cba…
- Patch: git.kernel.org/stable/c/c0bc4c8bd556cbe036a5b9ed333…
- Patch: git.kernel.org/stable/c/cedbb608494ba1e7a5c6c56b7f1…
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 | ≥ 5.2 < 5.10.258 | 5.10.258 |
| Linux | Linux Kernel | ≥ 5.11 < 5.15.209 | 5.15.209 |
| Linux | Linux Kernel | ≥ 5.16 < 6.1.175 | 6.1.175 |
| Linux | Linux Kernel | ≥ 6.2 < 6.6.142 | 6.6.142 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.92 | 6.12.92 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.34 | 6.18.34 |
| Linux | Linux Kernel | ≥ 6.19 < 7.0.11 | 7.0.11 |
| Linux | Linux Kernel | 7.1 rc1 | — |
| Linux | Linux Kernel | 7.1 rc2 | — |
| Linux | Linux Kernel | 7.1 rc3 | — |
| Linux | Linux Kernel | 7.1 rc4 | — |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/1343a480f84b80c1249133a90ef87f8751d65cbb
- Patchhttps://git.kernel.org/stable/c/1ced0f5a851f9cae274545a42a06c459b7fd8881
- Patchhttps://git.kernel.org/stable/c/5817e1e5205498a5df66eba2b34e817f4210fd0f
- Patchhttps://git.kernel.org/stable/c/67915715fd3874057457363c87c63e18829527df
- Patchhttps://git.kernel.org/stable/c/6cfae4914439878b8acb35c7e3b40096eeb2ad9c
- Patchhttps://git.kernel.org/stable/c/7666dbb1bacc4ba522b96740cba7283d243d16e1
- Patchhttps://git.kernel.org/stable/c/c0bc4c8bd556cbe036a5b9ed333c0aab9aadfcb8
- Patchhttps://git.kernel.org/stable/c/cedbb608494ba1e7a5c6c56b7f1d3fd470094f28