Description
In the Linux kernel, the following vulnerability has been resolved: firmware: arm_scmi: Publish channel state before callbacks Transport setup can enable callbacks before the setup routine returns. mailbox_chan_setup() registers the mailbox client with mbox_request_channel(), and the mailbox controller startup path can enable interrupt delivery before SCMI mailbox channel state has been published. Similarly, smc_chan_setup() requests the optional A2P completion IRQ before the SMC transport has made its cinfo pointer visible. If a pending or spurious callback fires in those windows, the transport RX callback can dereference a NULL transport cinfo pointer. Publishing only the transport-private pointer is not sufficient either: an early callback can enter the SCMI core before scmi_chan_setup() has assigned cinfo->handle. The core derives scmi_info from cinfo->handle in the RX path, so a NULL handle can still fault even when the transport-private cinfo is valid. Assign cinfo->handle before invoking the transport setup callback. Publish the mailbox and SMC transport-private channel state before requesting the mailbox channels or IRQ, and clear the early-published pointers again on setup failure. Also unwind mailbox setup devres resources on failure so an optional RX setup error that is ignored by the core does not leave stale transport state behind.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
5c8a47a5a91d4d6e185f758d61997613d9c5d6ac to < 50e38091a657ad81385e2aea7e2575e17ac23d79affected5c8a47a5a91d4d6e185f758d61997613d9c5d6ac to < 6f3f532531e4a27d28a2240719d1b05ac11766c6affected5c8a47a5a91d4d6e185f758d61997613d9c5d6ac to < 1bea027f7ef6fb889628b16c568a5f7c07a51b30affected5c8a47a5a91d4d6e185f758d61997613d9c5d6ac to < a1bc587568a4e373db76261dc9561dfc3653917faffected5c8a47a5a91d4d6e185f758d61997613d9c5d6ac to < 0314900dcdde044af0208fed212035dbfaa55843affected
Linux Linux
Default version status: affected
5.7affected0 to < 5.7unaffected6.6.160 to ≤ 6.6.*unaffected6.12.110 to ≤ 6.12.*unaffected6.18.52 to ≤ 6.18.*unaffected7.2.6 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/50e38091a657ad81385e2aea7e2575e17ac23d79 ↗
- https://git.kernel.org/stable/c/6f3f532531e4a27d28a2240719d1b05ac11766c6 ↗
- https://git.kernel.org/stable/c/1bea027f7ef6fb889628b16c568a5f7c07a51b30 ↗
- https://git.kernel.org/stable/c/a1bc587568a4e373db76261dc9561dfc3653917f ↗
- https://git.kernel.org/stable/c/0314900dcdde044af0208fed212035dbfaa55843 ↗