Descrizione
In the Linux kernel, the following vulnerability has been resolved: proc: protect ptrace_may_access() with exec_update_lock (FD links) proc_pid_get_link() and proc_pid_readlink() currently look up the task from the pid once, then do the ptrace access check on that task, then look up the task from the pid a second time to do the actual access. That's racy in several ways. To fix it, pass the task to the ->proc_get_link() handler, and instead of proc_fd_access_allowed(), introduce a new helper call_proc_get_link() that looks up and locks the task, does the access check, and calls ->proc_get_link().
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.8.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
2.6.18precedenti 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.4→ aggiornare alla7.1.4o successiva.
Patch e advisory
- Patch: git.kernel.org/stable/c/138c692d2b2d63d26f2eb957d0e…
- Patch: git.kernel.org/stable/c/497c6bae5167428596575f20af6…
- Patch: git.kernel.org/stable/c/6253dfee5afba536bb54fc6fe6c…
- Patch: git.kernel.org/stable/c/6255da28d4bb5349fe18e84cb04…
- Patch: git.kernel.org/stable/c/65bf0d2b6e914f1448d6a2fde19…
- Patch: git.kernel.org/stable/c/83b17872e3166c295c599279fc9…
- Patch: git.kernel.org/stable/c/de497d7aa2fae453a7e7c8f7d3e…
- Patch: git.kernel.org/stable/c/dfd1894cb64cbd8758b461ed713…
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Limitare l'accesso di rete al servizio e applicare limiti di connessione per ridurre la finestra di sfruttamento.
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.18 < 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.4 | 7.1.4 |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/138c692d2b2d63d26f2eb957d0e4fcc5d61f9ff2
- Patchhttps://git.kernel.org/stable/c/497c6bae5167428596575f20af6613ff5671f383
- Patchhttps://git.kernel.org/stable/c/6253dfee5afba536bb54fc6fe6c091c3758fafe1
- Patchhttps://git.kernel.org/stable/c/6255da28d4bb5349fe18e84cb043ccd394eba75d
- Patchhttps://git.kernel.org/stable/c/65bf0d2b6e914f1448d6a2fde193dcf60936a651
- Patchhttps://git.kernel.org/stable/c/83b17872e3166c295c599279fc9562ac3840c638
- Patchhttps://git.kernel.org/stable/c/de497d7aa2fae453a7e7c8f7d3e8682e565e3aaf
- Patchhttps://git.kernel.org/stable/c/dfd1894cb64cbd8758b461ed713800fe73db4f82
- Advisory di terze partihttps://cert-portal.siemens.com/productcert/html/ssa-019113.html
- Riferimentohttps://cert-portal.siemens.com/productcert/html/ssa-457936.html