Skip to contentSkip to conversation

CVE-2026-90193: mailbox: qcom-cpucp: fix PREEMPT_RT self-deadlock in IRQ handler

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

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

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

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

mailbox: qcom-cpucp: fix PREEMPT_RT self-deadlock in IRQ handler

qcom_cpucp_mbox_irq_fn() calls mbox_chan_received_data() while holding chan->lock. Under PREEMPT_RT, spin_lock_irqsave() is converted to an rt_spinlock (rtmutex-based), which tracks ownership and can sleep.

The callback chain triggered by mbox_chan_received_data() eventually reaches mailbox_clear_channel() -> mbox_send_message() -> add_to_rbuf(), which attempts to re-acquire the same chan->lock. Since rtmutex detects the re-entrant lock attempt by the same owner, the thread blocks waiting for a lock it already holds, causing a permanent deadlock.

This deadlock manifests as 'irq/N-apss_cpucp_mbox' stuck in D state with the following call trace:
rt_spin_lock -> mbox_send_message -> mailbox_clear_channel -> scmi_rx_callback -> mbox_chan_received_data [<- held chan->lock here]

Fix by saving chan->cl locally and clearing the HW interrupt register inside the lock, then invoking mbox_chan_received_data() after releasing the lock. This preserves the mutual exclusion for chan->cl access while avoiding the lock re-entrancy that causes the PREEMPT_RT deadlock.

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

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

	Issue introduced in 6.11 with commit 0e2a9a03106cd5fa0dbc9047675e7645c55e2669 and fixed in 6.12.110 with commit aa482273f32117c3adeba9b1cc945e0b5d33722d
	Issue introduced in 6.11 with commit 0e2a9a03106cd5fa0dbc9047675e7645c55e2669 and fixed in 6.18.52 with commit 8b8de6400c86937ed57d680d06d716e167b381de
	Issue introduced in 6.11 with commit 0e2a9a03106cd5fa0dbc9047675e7645c55e2669 and fixed in 7.2.6 with commit e40b3edeaf25cd09e9c88edb1ef99373ca37593b
	Issue introduced in 6.11 with commit 0e2a9a03106cd5fa0dbc9047675e7645c55e2669 and fixed in 7.3-rc1 with commit 3690aaa6d18f6775c3e7932fb8af8c5bf6a6b69c

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-90193

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/mailbox/qcom-cpucp-mbox.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/aa482273f32117c3adeba9b1cc945e0b5d33722d
	https://git.kernel.org/stable/c/8b8de6400c86937ed57d680d06d716e167b381de
	https://git.kernel.org/stable/c/e40b3edeaf25cd09e9c88edb1ef99373ca37593b
	https://git.kernel.org/stable/c/3690aaa6d18f6775c3e7932fb8af8c5bf6a6b69c