5.5medium
firmware: stratix10-rsu: Fix NULL pointer dereference when RSU is disabled
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.12% (higher than 1% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: firmware: stratix10-rsu: Fix NULL pointer dereference when RSU is disabled When the Remote System Update (RSU) isn't enabled in the First Stage Boot Loader (FSBL), the driver encounters a NULL pointer dereference when excute svc_normal_to_secure_thread() thread, resulting in a kernel panic: Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008 Mem abort info: ... Data abort info: ... [0000000000000008] user address but active_mm is swapper Internal error: Oops: 0000000096000004 [#1] SMP Modules linked in: CPU: 0 UID: 0 PID: 79 Comm: svc_smc_hvc_thr Not tainted 6.19.0-rc8-yocto-standard+ #59 PREEMPT Hardware name: SoCFPGA Stratix 10 SoCDK (DT) pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : svc_normal_to_secure_thread+0x38c/0x990 lr : svc_normal_to_secure_thread+0x144/0x990 ... Call trace: svc_normal_to_secure_thread+0x38c/0x990 (P) kthread+0x150/0x210 ret_from_fork+0x10/0x20 Code: 97cfc113 f9400260 aa1403e1 f9400400 (f9400402) ---[ end trace 0000000000000000 ]--- The issue occurs because rsu_send_async_msg() fails when RSU is not enabled in firmware, causing the channel to be freed via stratix10_svc_free_channel(). However, the probe function continues execution and registers svc_normal_to_secure_thread(), which subsequently attempts to access the already-freed channel, triggering the NULL pointer dereference. Fix this by properly cleaning up the async client and returning early on failure, preventing the thread from being used with an invalid channel.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 15847537b623f844d9a08da99ff4568315e1d4f8 before aa5739e0c51ad01c6e763ca89c1bfb58fc6ea71a, from 15847537b623f844d9a08da99ff4568315e1d4f8 before c45f7263100cece247dd3fa5fe277bd97fdb5687, 6.19 Not affected: before 6.19, from 6.19.9 up to 6.19.*, from 7.0 up to * | CVE List |
| linux linux_kernel | from 6.19 before 6.19.9, 7.0 | NVD |
Classification
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: firmware: stratix10-rsu: Fix NULL pointer dereference when RSU is disabled When the Remote System Update (RSU) isn't enabled in the First Stage Boot Loader (FSBL), the driver encounters a NULL pointer dereference when excute svc_normal_to_secure_thread() thread, resulting in a kernel panic: Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008 Mem abort info: ... Data abort info: ... [0000000000000008] user address but active_mm is swapper Internal error: Oops: 0000000096000004 [#1] SMP Modules linked in: CPU: 0 UID: 0 PID: 79 Comm: svc_smc_hvc_thr Not tainted 6.19.0-rc8-yocto-standard+ #59 PREEMPT Hardware name: SoCFPGA Stratix 10 SoCDK (DT) pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : svc_normal_to_secure_thread+0x38c/0x990 lr : svc_normal_to_secure_thread+0x144/0x990 ... Call trace: svc_normal_to_secure_thread+0x38c/0x990 (P) kthread+0x150/0x210 ret_from_fork+0x10/0x20 Code: 97cfc113 f9400260 aa1403e1 f9400400 (f9400402) ---[ end trace 0000000000000000 ]--- The issue occurs because rsu_send_async_msg() fails when RSU is not enabled in firmware, causing the channel to be freed via stratix10_svc_free_channel(). However, the probe function continues execution and registers svc_normal_to_secure_thread(), which subsequently attempts to access the already-freed channel, triggering the NULL pointer dereference. Fix this by properly cleaning up the async client and returning early on failure, preventing the thread from being used with an invalid channel.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: firmware: stratix10-rsu: Corrección de desreferencia de puntero NULL cuando RSU está deshabilitado Cuando la Actualización Remota del Sistema (RSU) no está habilitada en el Cargador de Arranque de Primera Etapa (FSBL), el controlador encuentra una desreferencia de puntero NULL al ejecutar el hilo svc_normal_to_secure_thread(), lo que resulta en un pánico del kernel: No se puede manejar la desreferencia de puntero NULL del kernel en la dirección virtual 0000000000000008 Información de aborto de memoria: ... Información de aborto de datos: ... [0000000000000008] dirección de usuario pero active_mm es swapper Error interno: Oops: 0000000096000004 [#1] SMP Módulos enlazados: CPU: 0 UID: 0 PID: 79 Comm: svc_smc_hvc_thr No contaminado 6.19.0-rc8-yocto-standard+ #59 PREEMPT Nombre del hardware: SoCFPGA Stratix 10 SoCDK (DT) pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : svc_normal_to_secure_thread+0x38c/0x990 lr : svc_normal_to_secure_thread+0x144/0x990 ... Traza de llamada: svc_normal_to_secure_thread+0x38c/0x990 (P) kthread+0x150/0x210 ret_from_fork+0x10/0x20 Código: 97cfc113 f9400260 aa1403e1 f9400400 (f9400402) ---[ fin de traza 0000000000000000 ]--- El problema ocurre porque rsu_send_async_msg() falla cuando RSU no está habilitado en el firmware, lo que provoca que el canal sea liberado a través de stratix10_svc_free_channel(). Sin embargo, la función de sondeo continúa la ejecución y registra svc_normal_to_secure_thread(), que posteriormente intenta acceder al canal ya liberado, lo que desencadena la desreferencia de puntero NULL. Solucione esto limpiando adecuadamente el cliente asíncrono y regresando anticipadamente en caso de fallo, evitando que el hilo sea utilizado con un canal inválido.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43410 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2026-43410 changed 2026-11-11 | Public domain |