Skip to contentSkip to conversation

CVE-2026-53332: slimbus: qcom-ngd-ctrl: Register callbacks after creating the ngd

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 1

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

slimbus: qcom-ngd-ctrl: Register callbacks after creating the ngd

When the remoteproc starts in parallel with the NGD driver being probed, or the remoteproc is already up when the PDR lookup is being registered, or in the theoretical event that we get an interrupt from the hardware, these callbacks will operate on uninitialized data. This result in issues to boot the affected boards.

One such example can be seen in the following fault, where qcom_slim_ngd_ssr_pdr_notify() schedules work on the NULL ngd_up_work.

[   21.858578] ------------[ cut here ]------------
[   21.858745] WARNING: kernel/workqueue.c:2338 at __queue_work+0x5e0/0x790, CPU#2: kworker/2:2/116
...
[   21.859251] Call trace:
[   21.859255]  __queue_work+0x5e0/0x790 (P)
[   21.859265]  queue_work_on+0x6c/0xf0
[   21.859273]  qcom_slim_ngd_ssr_pdr_notify+0x110/0x150 [slim_qcom_ngd_ctrl]
[   21.859304]  qcom_slim_ngd_ssr_notify+0x24/0x40 [slim_qcom_ngd_ctrl]
[   21.859318]  notifier_call_chain+0xa4/0x230
[   21.859329]  srcu_notifier_call_chain+0x64/0xb8
[   21.859338]  ssr_notify_start+0x40/0x78 [qcom_common]
[   21.859355]  rproc_start+0x130/0x230
[   21.859367]  rproc_boot+0x3d4/0x518

...

Move the enablement of interrupts, and the registration of SSR and PDR until after the NGD device has been registered.

This could be further refined by moving initialization to the control driver probe and by removing the platform driver model from the picture.

The Linux kernel CVE team has assigned CVE-2026-53332 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.19 with commit 917809e2280bb83994be8b642373fd941d40c407 and fixed in 6.12.94 with commit fa3790c7ea98328ddc3f7d8bf40247556245a6fc
	Issue introduced in 4.19 with commit 917809e2280bb83994be8b642373fd941d40c407 and fixed in 6.18.36 with commit 24ec89123fc9d0d24ce719dcf7fd6c57e5b0d753
	Issue introduced in 4.19 with commit 917809e2280bb83994be8b642373fd941d40c407 and fixed in 7.0.13 with commit 08564e15c47a5fb0af6643a43ee15521d49bcdea
	Issue introduced in 4.19 with commit 917809e2280bb83994be8b642373fd941d40c407 and fixed in 7.1 with commit 2a9d50e9ea406e0c8735938484adc20515ef1b47

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-53332

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/slimbus/qcom-ngd-ctrl.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/fa3790c7ea98328ddc3f7d8bf40247556245a6fc
	https://git.kernel.org/stable/c/24ec89123fc9d0d24ce719dcf7fd6c57e5b0d753
	https://git.kernel.org/stable/c/08564e15c47a5fb0af6643a43ee15521d49bcdea
	https://git.kernel.org/stable/c/2a9d50e9ea406e0c8735938484adc20515ef1b47