Descrizione
In the Linux kernel, the following vulnerability has been resolved: rxrpc: Fix missing validation of ticket length in non-XDR key preparsing In rxrpc_preparse(), there are two paths for parsing key payloads: the XDR path (for large payloads) and the non-XDR path (for payloads <= 28 bytes). While the XDR path (rxrpc_preparse_xdr_rxkad()) correctly validates the ticket length against AFSTOKEN_RK_TIX_MAX, the non-XDR path fails to do so. This allows an unprivileged user to provide a very large ticket length. When this key is later read via rxrpc_read(), the total token size (toksize) calculation results in a value that exceeds AFSTOKEN_LENGTH_MAX, triggering a WARN_ON(). [ 2001.302904] WARNING: CPU: 2 PID: 2108 at net/rxrpc/key.c:778 rxrpc_read+0x109/0x5c0 [rxrpc] Fix this by adding a check in the non-XDR parsing path of rxrpc_preparse() to ensure the ticket length does not exceed AFSTOKEN_RK_TIX_MAX, bringing it into parity with the XDR parsing logic.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.8.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
3.17precedenti alla6.6.136→ aggiornare alla6.6.136o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.84→ aggiornare alla6.12.84o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.25→ aggiornare alla6.18.25o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla7.0.2→ aggiornare alla7.0.2o 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.
Patch e advisory
- Patch: git.kernel.org/stable/c/1fa36cf495b0023e8475d038535…
- Patch: git.kernel.org/stable/c/4458757c020592a3094366e0fb2…
- Patch: git.kernel.org/stable/c/a1be1c9ece26cea69654f28b255…
- Patch: git.kernel.org/stable/c/ac33733b10b484d666f97688561…
- Patch: git.kernel.org/stable/c/ce383ba615339f8eaec646a166d…
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.17 < 6.6.136 | 6.6.136 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.84 | 6.12.84 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.25 | 6.18.25 |
| Linux | Linux Kernel | ≥ 6.19 < 7.0.2 | 7.0.2 |
| Linux | Linux Kernel | 7.1 rc1 | — |
| Linux | Linux Kernel | 7.1 rc2 | — |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/1fa36cf495b0023e8475d038535c05e4063211e1
- Patchhttps://git.kernel.org/stable/c/4458757c020592a3094366e0fb20457383b42f92
- Patchhttps://git.kernel.org/stable/c/a1be1c9ece26cea69654f28b255ff9a7906b897b
- Patchhttps://git.kernel.org/stable/c/ac33733b10b484d666f97688561670afd5861383
- Patchhttps://git.kernel.org/stable/c/ce383ba615339f8eaec646a166d2c2b015bb5ca0
- Riferimentohttps://git.kernel.org/stable/c/41a117dd80371343babc52198d1114e83eb37627
- Riferimentohttps://git.kernel.org/stable/c/44714dfda386884919ba366411880b6fb3c3efd3
- Riferimentohttps://git.kernel.org/stable/c/9a397aa9b5e53ca63d4d6aefb542832eca389618
- Riferimentohttps://cert-portal.siemens.com/productcert/html/ssa-784472.html