Linux
powerpc/xive: propagate IPI init errors to prevent use-after-free
In the Linux kernel, the following vulnerability has been resolved: powerpc/xive: propagate IPI init errors to prevent use-after-free When xive_init_ipis() fails (e.g. irq_domain_alloc_irqs() fails), the error path frees the global xive_ipis array. However, xive_smp_probe() previously ignored this failure and proceeded to call xive_setup_cpu_ipi(), which dereferences the already-freed xive_ipis pointer -- a use-after-free. Now that xive_smp_probe() returns int (previous patch), propagate the error from xive_init_ipis() and xive_setup_cpu_ipi() through xive_smp_probe(). Check the return value in both pnv_smp_probe() and pSeries_smp_probe() so that IPI setup is aborted cleanly on failure, avoiding the use-after-free.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 243e25112d06b348f087a6f7aba4bbc288285bdd, < 89e1caa5b0aafe23e9938d9a311e9d41baee583e
- >= 243e25112d06b348f087a6f7aba4bbc288285bdd, < e36b1c2eafcaaddefa70d55e6fda74cf6cda38af
- >= 243e25112d06b348f087a6f7aba4bbc288285bdd, < 2ea6238343691309e68308131c7e80c3ae05afea
- >= 243e25112d06b348f087a6f7aba4bbc288285bdd, < 5c9ab0c9cede9f149733d330e2d7d45341b71359
- >= 243e25112d06b348f087a6f7aba4bbc288285bdd, < c554a8d376d5aea1b237ed6bef6f9fbfc550e67f
- >= 243e25112d06b348f087a6f7aba4bbc288285bdd, < 411a3c016e7a95f5fa105a0587e07d0647a77727
Fixed in 89e1caa5b0aafe23e9938d9a311e9d41baee583e, e36b1c2eafcaaddefa70d55e6fda74cf6cda38af, 2ea6238343691309e68308131c7e80c3ae05afea, 5c9ab0c9cede9f149733d330e2d7d45341b71359, c554a8d376d5aea1b237ed6bef6f9fbfc550e67f, 411a3c016e7a95f5fa105a0587e07d0647a77727
- 4.12
Fixed in 0, 6.1.191, 6.6.160, 6.12.114, 6.18.57, 7.2.6, 7.3
Mitigation
Upgrade Linux to 89e1caa5b0aafe23e9938d9a311e9d41baee583e or e36b1c2eafcaaddefa70d55e6fda74cf6cda38af or 2ea6238343691309e68308131c7e80c3ae05afea or 5c9ab0c9cede9f149733d330e2d7d45341b71359 or c554a8d376d5aea1b237ed6bef6f9fbfc550e67f or 411a3c016e7a95f5fa105a0587e07d0647a77727 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.114 or 6.18.57 or 7.2.6 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.