Instituto Nacional de ciberseguridad. Sección Incibe
Instituto Nacional de Ciberseguridad. Sección INCIBE-CERT

CVE-2026-64447

Gravedad:
Pendiente de análisis
Tipo:
No Disponible / Otro tipo
Fecha de publicación:
25/07/2026
Última modificación:
25/07/2026

Descripción

*** Pendiente de traducción *** In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> staging: media: ipu7: fix double-free and use-after-free in error paths<br /> <br /> In both ipu7_isys_init() and ipu7_psys_init(), pdata is allocated and<br /> then passed to ipu7_bus_initialize_device(), which stores it in<br /> adev-&gt;pdata. The ipu7_bus_release() function frees adev-&gt;pdata when the<br /> device&amp;#39;s reference count drops to zero.<br /> <br /> Two error paths incorrectly call kfree(pdata) after the device teardown<br /> has already freed it:<br /> <br /> 1. When ipu7_mmu_init() fails: put_device() is called, which drops the<br /> reference count to zero and triggers ipu7_bus_release() -&gt;<br /> kfree(pdata). The subsequent kfree(pdata) is a double-free.<br /> <br /> 2. When ipu7_bus_add_device() fails: it calls auxiliary_device_uninit()<br /> internally, which calls put_device() -&gt; ipu7_bus_release() -&gt;<br /> kfree(pdata). The subsequent kfree(pdata) is again a double-free.<br /> <br /> Note that the kfree(pdata) when ipu7_bus_initialize_device() itself<br /> fails is correct, because in that case auxiliary_device_init() failed<br /> and the release function was never set up, so pdata must be freed<br /> manually.<br /> <br /> Additionally, the error code was not saved before calling put_device(),<br /> causing ERR_CAST() to dereference the already-freed adev pointer when<br /> constructing the return value. Fix this by saving the error from<br /> dev_err_probe() before put_device() and returning ERR_PTR() instead.<br /> <br /> Remove the redundant kfree(pdata) calls and fix the use-after-free in<br /> the return values of the two affected error paths.

Impacto