Descrizione
In the Linux kernel, the following vulnerability has been resolved: sctp: validate STALE_COOKIE cause length before reading staleness When an ERROR chunk with a STALE_COOKIE cause is received in the COOKIE_ECHOED state, sctp_sf_do_5_2_6_stale() reads the 4-byte Measure of Staleness that follows the cause header: err = (struct sctp_errhdr *)(chunk->skb->data); stale = ntohl(*(__be32 *)((u8 *)err + sizeof(*err))); err is the first cause in the chunk, not the STALE_COOKIE cause that caused the dispatch, and nothing guarantees the staleness field is present. sctp_walk_errors() only requires a cause to be as long as the 4-byte header, so for a STALE_COOKIE cause of length 4 the read runs past the cause, and for a minimal ERROR chunk past skb->tail. The value is echoed to the peer in the Cookie Preservative of the reply INIT, leaking uninitialized memory. sctp_sf_cookie_echoed_err() already walks to the STALE_COOKIE cause, so check its length there and pass it to sctp_sf_do_5_2_6_stale(), which reads that cause instead of the first one. A STALE_COOKIE cause too short to hold the staleness field is discarded. The read is reachable by any peer that can drive an association into COOKIE_ECHOED, including an unprivileged process using a raw SCTP socket in a user and network namespace.
Come correggere
Priorità: Alta — pianificare la correzione entro pochi giorni. Motivazione: CVSS 9.1.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
2.6.12.1precedenti alla5.10.261→ aggiornare alla5.10.261o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.11precedenti alla5.15.212→ aggiornare alla5.15.212o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.16precedenti alla6.1.178→ aggiornare alla6.1.178o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.2precedenti alla6.6.145→ aggiornare alla6.6.145o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.97→ aggiornare alla6.12.97o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.40→ aggiornare alla6.18.40o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla7.1.5→ aggiornare alla7.1.5o successiva. - Linux Linux Kernel: vulnerabile la versione
2.6.12→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
2.6.12 rc2→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
2.6.12 rc3→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
2.6.12 rc4→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
2.6.12 rc5→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.2 rc1→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.2 rc2→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.2 rc3→ installare l'ultima release supportata dal vendor.
Patch e advisory
- Patch: git.kernel.org/stable/c/08a8f2d13f703924316e9aeac86…
- Patch: git.kernel.org/stable/c/1cd23ca80784223fa2204e16203…
- Patch: git.kernel.org/stable/c/588706ebaf8cdb4a4161602949e…
- Patch: git.kernel.org/stable/c/6022da37786701df1fc5dd946a6…
- Patch: git.kernel.org/stable/c/861f884f5471632c731cbbd612a…
- Patch: git.kernel.org/stable/c/a257b41ddfe9e327b26581ad277…
- Patch: git.kernel.org/stable/c/bbd6b2ea966cf57b6ae095cf5a8…
- Patch: git.kernel.org/stable/c/ebe0a55d954fa8da383b6192edb…
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Ridurre la superficie esposta (disattivare servizi e funzionalità inutilizzati), mantenere attive le protezioni del sistema operativo (ASLR, DEP/NX) e segmentare la rete.
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 | ≥ 2.6.12.1 < 5.10.261 | 5.10.261 |
| Linux | Linux Kernel | ≥ 5.11 < 5.15.212 | 5.15.212 |
| Linux | Linux Kernel | ≥ 5.16 < 6.1.178 | 6.1.178 |
| Linux | Linux Kernel | ≥ 6.2 < 6.6.145 | 6.6.145 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.97 | 6.12.97 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.40 | 6.18.40 |
| Linux | Linux Kernel | ≥ 6.19 < 7.1.5 | 7.1.5 |
| Linux | Linux Kernel | 2.6.12 | — |
| Linux | Linux Kernel | 2.6.12 rc2 | — |
| Linux | Linux Kernel | 2.6.12 rc3 | — |
| Linux | Linux Kernel | 2.6.12 rc4 | — |
| Linux | Linux Kernel | 2.6.12 rc5 | — |
| Linux | Linux Kernel | 7.2 rc1 | — |
| Linux | Linux Kernel | 7.2 rc2 | — |
| Linux | Linux Kernel | 7.2 rc3 | — |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/08a8f2d13f703924316e9aeac863a88ef50990c7
- Patchhttps://git.kernel.org/stable/c/1cd23ca80784223fa2204e16203f754da4e821f8
- Patchhttps://git.kernel.org/stable/c/588706ebaf8cdb4a4161602949eba365514b1db1
- Patchhttps://git.kernel.org/stable/c/6022da37786701df1fc5dd946a6dcba59d5473b1
- Patchhttps://git.kernel.org/stable/c/861f884f5471632c731cbbd612a1c072e391a624
- Patchhttps://git.kernel.org/stable/c/a257b41ddfe9e327b26581ad2777f04b23ac73f5
- Patchhttps://git.kernel.org/stable/c/bbd6b2ea966cf57b6ae095cf5a8dbc993cd197a0
- Patchhttps://git.kernel.org/stable/c/ebe0a55d954fa8da383b6192edb8f763dcb002d5