In the Linux kernel, the following vulnerability has been resolved: ASoC: SOF: amd: guard adata->sdw dereferences with NULL check in IRQ handler The ACP external IRQ handler is registered before sdw_amd_probe() assigns adata->sdw, so a stray interrupt in the probe window could reach the adata->sdw->pdev[i] dereference with adata->sdw still NULL. The same window exists on the teardown side: after sdw_amd_exit() frees the context but before adata->sdw is cleared by the caller. Add NULL checks for adata->sdw in acp_irq_handler() before dereferencing ->pdev[0] and ->pdev[1], and in amd_sof_handle_acp70_sdw_wake_event() for the same reason. The interrupt-status register write that acknowledges the IRQ is kept outside the guard so the hardware bit is always cleared regardless of whether the SoundWire context is live.
https://git.kernel.org/stable/c/c6b7786081211e49f62e553a01083f080a0907a6
https://git.kernel.org/stable/c/b0641053416dbe5f3589a3c64bb268592b898b4e
https://git.kernel.org/stable/c/34ea81a7f284a13d825279fdede36b7f793f9936
https://git.kernel.org/stable/c/22954ad665a1de71012fc5a37e3078ed44efb051