Descrizione
In the Linux kernel, the following vulnerability has been resolved: ACPI: CPPC: Suppress UBSAN warning caused by field misuse The definition of reg->access_width changes depending on the reg->space_id type. Type ACPI_ADR_SPACE_PLATFORM_COMM uses access_width to indicate the PCC region, which can result in a UBSAN if the value is greater than 4. For example: UBSAN: shift-out-of-bounds in drivers/acpi/cppc_acpi.c:1090:9 shift exponent 32 is too large for 32-bit type 'int' CPU: 61 UID: 0 PID: 1220 Comm: (udev-worker) Not tainted 7.0.10-201.fc44.aarch64 #1 PREEMPT(lazy) Hardware name: To be filled by O.E.M. Call trace: ...(trimming) ubsan_epilogue+0x10/0x48 __ubsan_handle_shift_out_of_bounds+0xdc/0x1e0 cpc_write+0x4d0/0x670 cppc_set_perf+0x18c/0x490 cppc_cpufreq_cpu_init+0x1c8/0x380 [cppc_cpufreq] ... (trimming) Lets fix this by validating the region type, as well as whether access_width has a value. Then since we are returning bit_width directly for ACPI_ADR_SPACE_PLATFORM_COMM, drop the code correcting the size.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
6.1.90precedenti alla6.1.178→ aggiornare alla6.1.178o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.6.30precedenti alla6.6.145→ aggiornare alla6.6.145o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.8.9precedenti alla6.12.96→ aggiornare alla6.12.96o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.39→ aggiornare alla6.18.39o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla7.1.4→ aggiornare alla7.1.4o successiva. - Linux Linux Kernel: vulnerabile la versione
5.15.154→ installare l'ultima release supportata dal vendor.
Patch e advisory
- Patch: git.kernel.org/stable/c/1b1acf2dada0cc3931bb2cb9ff8…
- Patch: git.kernel.org/stable/c/2fb80e962029000959f651665ba…
- Patch: git.kernel.org/stable/c/37f28bf8f14672dfa395994e41f…
- Patch: git.kernel.org/stable/c/b54c4632946ae42f2b39ed38abd…
- Patch: git.kernel.org/stable/c/dc066bd13c860bb27d6ace51121…
- Patch: git.kernel.org/stable/c/e904596ba6dd108534ffa15e3e4…
- Patch: git.kernel.org/stable/c/f29dc6132d4968e39d8fa575d1a…
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 | ≥ 6.1.90 < 6.1.178 | 6.1.178 |
| Linux | Linux Kernel | ≥ 6.6.30 < 6.6.145 | 6.6.145 |
| Linux | Linux Kernel | ≥ 6.8.9 < 6.12.96 | 6.12.96 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.39 | 6.18.39 |
| Linux | Linux Kernel | ≥ 6.19 < 7.1.4 | 7.1.4 |
| Linux | Linux Kernel | 5.15.154 | — |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/1b1acf2dada0cc3931bb2cb9ff8832edfbee46a1
- Patchhttps://git.kernel.org/stable/c/2fb80e962029000959f651665baa4838cc92eb99
- Patchhttps://git.kernel.org/stable/c/37f28bf8f14672dfa395994e41fd778a63f0bf5c
- Patchhttps://git.kernel.org/stable/c/b54c4632946ae42f2b39ed38abd909bbf78cbcc2
- Patchhttps://git.kernel.org/stable/c/dc066bd13c860bb27d6ace511210e18b8064c1d9
- Patchhttps://git.kernel.org/stable/c/e904596ba6dd108534ffa15e3e46b2fe245145e2
- Patchhttps://git.kernel.org/stable/c/f29dc6132d4968e39d8fa575d1a12e2c718ce57b