Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A76013A4512 for ; Wed, 1 Jul 2026 13:35:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782912920; cv=none; b=SnHvFI8xBaYT0P8EHGDdyjKgaAL1SaxT+oKM5K3Q0FE5oww9xKRUP4hxBMD5YVbvOQ04g2XJwINpdMrB7TMeMz0zTEA3ynZDzGaRS2xpDa8ebHo5MHdWBMxlMx0uf/ssCJ4Kfpj9G7stmThg321an8g8f0R7RJIX+weme44sujM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782912920; c=relaxed/simple; bh=PqSdALQ2Zhs0zyMBz+qG2Ae6WC45TLwn/inIt1uyLbM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XW9ImMNBFIzBI6nbU6PoIDOziQBiTTTWHw0ShzwfkmxLb64z8tzrjn8Fotn518U3X0hw2w+KfSFUN+79pP4ZaZuH0tWaFov4DpLGosp36oOL7AJyhf0kagrSRbC/i2A2Sna+l6Oa2dUOXk8yAt+keX/zrzW8Z4Y4atZgrwEGtt0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vaWjsm7P; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="vaWjsm7P" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BF211F00A3A; Wed, 1 Jul 2026 13:35:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782912917; bh=9bASkrG15XaTqjAxfy2MFAyGxfWxC6WcK6Zkt6w20xg=; h=From:To:Cc:Subject:Date:Reply-To; b=vaWjsm7PrEXz38V1aW4JGEm6DXiOsilw/jsc/MzxbvvYhyUYlylZA2MP8BH/xdbJD F3XssThpjof9SOqjTR4tt1Aith16+8luZhy4ZvM3I5I+rYGmp1eXxXeBqiE4o8qsTw xZ+an7CYmc09d0Xe2tD7lD3k34d5KNJvVEOLC+xA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53348: ASoC: SDCA: fix NULL pointer dereference in sdca_dev_unregister_functions Date: Wed, 1 Jul 2026 15:35:03 +0200 Message-ID: <2026070145-CVE-2026-53348-4872@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3435; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2EHDHUwbZuUYlCvrho2ahL2WV9EOLRTqBjicBC9W/bI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmu4mUOPyOyJ05q4l3n87PHS/6LHUeu7jKe+0sOVKt5/ P67VTWqI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYywZFhvtvi+TFpBUv757In 337BnLh7Q4+XPsMcjh/smse8Jt/ewvEn+BNjfsHnV+7nAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: ASoC: SDCA: fix NULL pointer dereference in sdca_dev_unregister_functions sdca_dev_unregister_functions() iterates over all SDCA function descriptors and calls sdca_dev_unregister() on each func_dev without checking for NULL. When a function registration has failed partway through, or the device cleanup races with probe deferral, func_dev entries may be NULL, leading to a kernel oops: BUG: kernel NULL pointer dereference, address: 0000000000000040 RIP: 0010:device_del+0x1e/0x3e0 Call Trace: sdca_dev_unregister_functions+0x37/0x60 [snd_soc_sdca] release_nodes+0x35/0xb0 devres_release_all+0x90/0x100 device_unbind_cleanup+0xe/0x80 device_release_driver_internal+0x1c1/0x200 bus_remove_device+0xc6/0x130 device_del+0x161/0x3e0 device_unregister+0x17/0x60 sdw_delete_slave+0xb6/0xd0 [soundwire_bus] sdw_bus_master_delete+0x1e/0x50 [soundwire_bus] ... sof_probe_work+0x19/0x30 [snd_sof] This was observed on a Lenovo ThinkPad X1 Carbon G14 (Panther Lake) with the SOF audio driver probe failing due to missing Panther Lake firmware, causing the subsequent cleanup of SoundWire devices to trigger the crash. Fix this with three changes: 1) Add a NULL guard in sdca_dev_unregister() so that callers do not need to pre-validate the pointer (defense in depth). 2) In sdca_dev_unregister_functions(), skip NULL func_dev entries and clear func_dev to NULL after unregistration, making the function idempotent and safe against double-invocation. 3) In sdca_dev_register_functions(), roll back all previously registered functions when a later one fails, so the function array is never left in a partially-populated state. The Linux kernel CVE team has assigned CVE-2026-53348 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit 4496d1c65bad7a3a32d2e09aaf3c54bc562c3fcc and fixed in 7.0.13 with commit 9a4895059bb6a8505098a9f75de187fd15631fc8 Issue introduced in 6.19 with commit 4496d1c65bad7a3a32d2e09aaf3c54bc562c3fcc and fixed in 7.1 with commit e4c60a1d4b6ccc66aefb3789cd908d4f9482eefd 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-53348 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: sound/soc/sdca/sdca_function_device.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/9a4895059bb6a8505098a9f75de187fd15631fc8 https://git.kernel.org/stable/c/e4c60a1d4b6ccc66aefb3789cd908d4f9482eefd