# CVE-2026-53204: firmware: stratix10-rsu: Fix NULL deref on rsu_send_msg() timeout in probe

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-06-25T08:39:11.618Z
- Modified: 2026-07-02T20:55:42.140Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

firmware: stratix10-rsu: Fix NULL deref on rsu_send_msg() timeout in probe

rsu_send_msg() can return -ETIMEDOUT when
wait_for_completion_interruptible_timeout() fires while the SMC call is still
pending. In stratix10_rsu_probe(), the error paths for COMMAND_RSU_DCMF_VERSION,
COMMAND_RSU_DCMF_STATUS, COMMAND_RSU_MAX_RETRY and COMMAND_RSU_GET_SPT_TABLE
call stratix10_svc_free_channel() - which sets chan->scl to NULL - but then
fall through and queue the next request on the same channel. The next svc
kthread that runs will dereference pdata->chan->scl in its receive callback
path, triggering a NULL pointer dereference identical to the one fixed by
commit c45f7263100c ("firmware: stratix10-rsu: Fix NULL pointer dereference
when RSU is disabled") for the COMMAND_RSU_STATUS path.

Apply the same cleanup pattern to the remaining failure paths: remove the
async client, free the channel, and return early so no further messages are
queued on a channel whose scl has been cleared.

While at it, clean up stratix10_rsu_probe() in two ways without changing
behavior:

- Drop redundant zero-initialization of fields already cleared by
  devm_kzalloc(): client.receive_cb, status.* and spt0/1_address
  (INVALID_SPT_ADDRESS is 0x0).

- Replace five identical 3-line error-cleanup blocks
  (stratix10_svc_remove_async_client() + stratix10_svc_free_channel() +
  return ret) with goto labels (remove_async_client, free_channel),
  matching the standard kernel resource-unwinding pattern and making it
  easier to extend the probe sequence without forgetting matching
  cleanup.

Also move init_completion() next to mutex_init() so sync-primitive
initialization is grouped before anything that could trigger a
callback.

---
v2: Add a minor clean-up of the function stratix10_rsu_probe() to have a
    centralize exit for all the rsu_send_async_msg() and rsu_send_msg().

(As written by CVE List.)

## Affected

- Linux Linux: from 15847537b623f844d9a08da99ff4568315e1d4f8 before 6bc249d324241c64118a3018124798c28e2950f7; from 15847537b623f844d9a08da99ff4568315e1d4f8 before bfd2eb9bba548a8f63c3339bb1fb9a2031a42d86; 6.19 (not affected: before 6.19; from 7.0.13 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.19 before 7.0.13; 7.1

## References

- <https://git.kernel.org/stable/c/6bc249d324241c64118a3018124798c28e2950f7> (patch)
- <https://git.kernel.org/stable/c/bfd2eb9bba548a8f63c3339bb1fb9a2031a42d86> (patch)

## Sources

- CVE List: [CVE-2026-53204](https://www.cve.org/CVERecord?id=CVE-2026-53204), CVE Terms of Use, modified 2026-06-25
- NVD: [CVE-2026-53204](https://nvd.nist.gov/vuln/detail/CVE-2026-53204), Public domain, modified 2026-07-02

---

Page: https://cve.day/CVE-2026-53204 · Whole record: https://cve.day/CVE-2026-53204.json · Rebuilt by cve.day 2026-11-25T22:59:26.312Z
