Descrizione
In the Linux kernel, the following vulnerability has been resolved: EFI/CPER: don't go past the ARM processor CPER record buffer There's a logic inside GHES/CPER to detect if the section_length is too small, but it doesn't detect if it is too big. Currently, if the firmware receives an ARM processor CPER record stating that a section length is big, kernel will blindly trust section_length, producing a very long dump. For instance, a 67 bytes record with ERR_INFO_NUM set 46198 and section length set to 854918320 would dump a lot of data going a way past the firmware memory-mapped area. Fix it by adding a logic to prevent it to go past the buffer if ERR_INFO_NUM is too big, making it report instead: [Hardware Error]: Hardware error from APEI Generic Hardware Error Source: 1 [Hardware Error]: event severity: recoverable [Hardware Error]: Error 0, type: recoverable [Hardware Error]: section_type: ARM processor error [Hardware Error]: MIDR: 0xff304b2f8476870a [Hardware Error]: section length: 854918320, CPER size: 67 [Hardware Error]: section length is too big [Hardware Error]: firmware-generated error record is incorrect [Hardware Error]: ERR_INFO_NUM is 46198 [ rjw: Subject and changelog tweaks ]
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
4.13precedenti alla5.10.252→ aggiornare alla5.10.252o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.11precedenti alla5.15.202→ aggiornare alla5.15.202o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.16precedenti alla6.1.165→ aggiornare alla6.1.165o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.2precedenti alla6.6.128→ aggiornare alla6.6.128o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.75→ aggiornare alla6.12.75o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.16→ aggiornare alla6.18.16o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla6.19.6→ aggiornare alla6.19.6o successiva.
Patch e advisory
- Patch: git.kernel.org/stable/c/25b290624b0e3d2f0f90238709e…
- Patch: git.kernel.org/stable/c/45766863baf899059e75595dd3c…
- Patch: git.kernel.org/stable/c/64eb63f573f497553e1a0c388bb…
- Patch: git.kernel.org/stable/c/a68d22902a6916e10ee235fee60…
- Patch: git.kernel.org/stable/c/be10c1bdf64a39832998f54900a…
- Patch: git.kernel.org/stable/c/c80113dcfc807308f5ab33847fa…
- Patch: git.kernel.org/stable/c/ca2aad8771aa9091bc9e42e7d54…
- Patch: git.kernel.org/stable/c/eae21beecb95a3b69ee5c38a659…
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 | ≥ 4.13 < 5.10.252 | 5.10.252 |
| Linux | Linux Kernel | ≥ 5.11 < 5.15.202 | 5.15.202 |
| Linux | Linux Kernel | ≥ 5.16 < 6.1.165 | 6.1.165 |
| Linux | Linux Kernel | ≥ 6.2 < 6.6.128 | 6.6.128 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.75 | 6.12.75 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.16 | 6.18.16 |
| Linux | Linux Kernel | ≥ 6.19 < 6.19.6 | 6.19.6 |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/25b290624b0e3d2f0f90238709ee0b6009b9fde8
- Patchhttps://git.kernel.org/stable/c/45766863baf899059e75595dd3cb1116467f2095
- Patchhttps://git.kernel.org/stable/c/64eb63f573f497553e1a0c388bbcdd639e0f0704
- Patchhttps://git.kernel.org/stable/c/a68d22902a6916e10ee235fee609239004e129d0
- Patchhttps://git.kernel.org/stable/c/be10c1bdf64a39832998f54900aa309b3917abcf
- Patchhttps://git.kernel.org/stable/c/c80113dcfc807308f5ab33847fae77e07531aeb8
- Patchhttps://git.kernel.org/stable/c/ca2aad8771aa9091bc9e42e7d546bd40b72ddcd4
- Patchhttps://git.kernel.org/stable/c/eae21beecb95a3b69ee5c38a659f774e171d730e