Descrizione
In the Linux kernel, the following vulnerability has been resolved: netfilter: ctnetlink: ignore explicit helper on new expectations Use the existing master conntrack helper, anything else is not really supported and it just makes validation more complicated, so just ignore what helper userspace suggests for this expectation. This was uncovered when validating CTA_EXPECT_CLASS via different helper provided by userspace than the existing master conntrack helper: BUG: KASAN: slab-out-of-bounds in nf_ct_expect_related_report+0x2479/0x27c0 Read of size 4 at addr ffff8880043fe408 by task poc/102 Call Trace: nf_ct_expect_related_report+0x2479/0x27c0 ctnetlink_create_expect+0x22b/0x3b0 ctnetlink_new_expect+0x4bd/0x5c0 nfnetlink_rcv_msg+0x67a/0x950 netlink_rcv_skb+0x120/0x350 Allowing to read kernel memory bytes off the expectation boundary. CTA_EXPECT_HELP_NAME is still used to offer the helper name to userspace via netlink dump.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.3.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
3.12precedenti alla6.1.168→ aggiornare alla6.1.168o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.2precedenti alla6.6.134→ aggiornare alla6.6.134o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.81→ aggiornare alla6.12.81o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.22→ aggiornare alla6.18.22o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla6.19.12→ aggiornare alla6.19.12o successiva. - Linux Linux Kernel: vulnerabile la versione
7.0 rc1→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.0 rc2→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.0 rc3→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.0 rc4→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.0 rc5→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.0 rc6→ installare l'ultima release supportata dal vendor.
Patch e advisory
- Patch: git.kernel.org/stable/c/0f6c33697ccfac6499d0b7a4dbd…
- Patch: git.kernel.org/stable/c/187b6ec5229ea93cb04c4f6d3b5…
- Patch: git.kernel.org/stable/c/21a04c31db4057deec85fcd6cc6…
- Patch: git.kernel.org/stable/c/2ea0f35f235f70c133ad61fe05b…
- Patch: git.kernel.org/stable/c/917b61fa2042f11e2af4c428e43…
- Patch: git.kernel.org/stable/c/e135f8e8212cbed12a03ab8dec7…
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 | ≥ 3.12 < 6.1.168 | 6.1.168 |
| Linux | Linux Kernel | ≥ 6.2 < 6.6.134 | 6.6.134 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.81 | 6.12.81 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.22 | 6.18.22 |
| Linux | Linux Kernel | ≥ 6.19 < 6.19.12 | 6.19.12 |
| Linux | Linux Kernel | 7.0 rc1 | — |
| Linux | Linux Kernel | 7.0 rc2 | — |
| Linux | Linux Kernel | 7.0 rc3 | — |
| Linux | Linux Kernel | 7.0 rc4 | — |
| Linux | Linux Kernel | 7.0 rc5 | — |
| Linux | Linux Kernel | 7.0 rc6 | — |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/0f6c33697ccfac6499d0b7a4dbdec5d3a3a566cd
- Patchhttps://git.kernel.org/stable/c/187b6ec5229ea93cb04c4f6d3b52efc80f513d0d
- Patchhttps://git.kernel.org/stable/c/21a04c31db4057deec85fcd6cc63d720b38819c3
- Patchhttps://git.kernel.org/stable/c/2ea0f35f235f70c133ad61fe05ba013753b978c6
- Patchhttps://git.kernel.org/stable/c/917b61fa2042f11e2af4c428e43f08199586633a
- Patchhttps://git.kernel.org/stable/c/e135f8e8212cbed12a03ab8dec77fa1247139897
- Riferimentohttps://cert-portal.siemens.com/productcert/html/ssa-019113.html
- Riferimentohttps://cert-portal.siemens.com/productcert/html/ssa-082556.html
- Riferimentohttps://cert-portal.siemens.com/productcert/html/ssa-457936.html