From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796268703; b=4lAwsmJjl0iBi7Cruyfyt3uT/r2DOhacYk4ssfyID0gbPyS/a3c8lJFkiLZZkIpBVRcE wfhCrDQAe2ODNI8S4KYkXjsrt3mMbqaKTmhaUuulD3lE9fZOkMIDr+Zb0w+ZupvSnUrmP rp5LWu/CTlOm4LG04x60xljregKk9FZWxTCDs/JRqYYaX43vTPY+K0M/7blezBOuUkWRp 7zs+MSOXkW6XeAQW6CLhCT0ciP2yc9u0SyXX5fYuhgsuCA+3CRt4Xs00Jfu4daWi1SdHB ITAYjIgenK8GgtiUCnrQclY2bqtM/60FL2DivDghlTlhLmAvUj8xTI9/BN2WMFdxozg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796268703; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=kX6LQvhZm9gtlD6wIN4xhui8yebLLxJAsqYvibDYrs4=; b=LX/tcZbLQSPQeZXYGaGKs/DhQB4yhixRZbPyMSx6/QWLFdGyZFHivvc5L2zugmxGjQqQ GEOpD3K9fuwWjgT1M81jHIXCn6Mp+40G9zlgSpAuItK662LDoz9FGbAWdV6cgLZdl6nQt 5Ca2uD6YyojAMwCKlJcRT0+ET1EJ9m5QQ0dhJLqDMXcnM2Ted1TGWFRY2M39WGkMb1501 t711lvCPnDUiThu/eGjj2/Fm9UwGWz6UFS2T7Yt3hLSeGp6VWXkqq7AGSiSRGIoXBnQ/j as8ERXHxmGitzWbRmTzsp+nDSVAPi8FT9t0msGDHiaLMDhbxKUd8XkS8ugA92DnpRXw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b="TPxa9A/l"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 301C4606A32C for ; Thu, 3 Dec 2026 03:31:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=TPxa9A/l Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7549A1F00893; Thu, 3 Dec 2026 03:31:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796268703; bh=kX6LQvhZm9gtlD6wIN4xhui8yebLLxJAsqYvibDYrs4=; h=From:To:Cc:Subject:Date:Reply-To; b=TPxa9A/l3lhtu0Icq0aIDjFjpt3+9Z8Fp4GqdXeKL5CxA4TWnAyCJEK75H5SytlNo t79C/1YK4Qlh3E0G9RWU2X0da6BkMvuycNJYBLBWydDnTUFbTaYJC9YAM0bcaAzYen SKwsdS3DvR8gg4kajp5pNi2NUJqwlrBPL/Fn27+k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-142909: ALSA: vmaster: Serialize hook registration with control callbacks Date: Thu, 3 Dec 2026 04:26:40 +0100 Message-ID: <2026120322-CVE-2026-142909-affc@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=7505; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zhi9ApVlGRuWivrodfR6IFFSp/ynnJ6+h88qAes6h4c=; b=owGbwMvMwCRo6H6F97bub03G02pJDNkCD+O2XRT/JLj5usyeTY4R1v/L6lxfytgGnE34dy43j yc53bC5I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaSM51hfsr1qIjlUXc9zmX9 e/Mv1PminFBAEcP8kgzdI6xR6QpMDd/4j/KbrCs9s38NAA== 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: ALSA: vmaster: Serialize hook registration with control callbacks An HDA virtual-master hook must have its private argument initialized before a control callback can invoke it. snd_hda_add_vmaster_hook() installs the trampoline through snd_ctl_add_vmaster_hook(), which stores master->hook before master->hook_private_data without serialization. When a codec with a vmaster mute hook binds to an already registered card, snd_hda_gen_build_controls() publishes and initializes the Master Playback Switch before installing the hook. A native write that changes the switch can then run in the following order: 1. The codec bind path publishes and initializes the master control in __snd_hda_add_vmaster(), then calls snd_hda_add_vmaster_hook(). 2. The hook setter stores master->hook, but has not yet stored its private argument. 3. SNDRV_CTL_IOCTL_ELEM_WRITE takes controls_rwsem and calls master_put() while the setter remains between those stores. 4. master_put() sees the callback and invokes vmaster_hook() with a NULL argument. The trampoline dereferences it before the setter can complete publication. The write lock held by snd_ctl_elem_write() does not exclude the hook setter, so this can cause a NULL pointer dereference. Take the same controls_rwsem for writing inside snd_ctl_add_vmaster_hook() so the callback and its argument are installed together with respect to native control callbacks. Pass the card into the helper and update the HDA caller, keeping the lock in the ALSA core. Release it when registration returns, before the caller synchronizes the hook. KASAN report as below: Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 1 UID: 0 PID: 499 Comm: alsa-vmaster-tr Not tainted 7.2.0-rc6-pmb-bt-functional-v1+ #1 PREEMPT(lazy) Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:vmaster_hook+0x35/0xb0 Code: f5 53 48 89 fb 48 83 ec 08 e8 57 f0 9a fc eb 50 e8 50 f0 9a fc 48 8d 7b 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 59 48 8d 7b 10 48 8b 43 08 48 ba 00 00 00 00 00 fc RSP: 0018:ffff888117647cd0 EFLAGS: 00010212 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff84e9ff50 RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000008 RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff89427457 R11: ffff888115ad1d00 R12: ffffffff84e9ff30 R13: ffff888114943ca0 R14: 0000000000000000 R15: 0000000000000001 FS: 00007fe8167b3780(0000) GS:ffff88826b7e3000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000557c8c2842a8 CR3: 000000011579f005 CR4: 0000000000770ef0 PKRU: 55555554 Call Trace: master_put+0x20e/0x2b0 snd_ctl_elem_write+0x37f/0x5e0 snd_ctl_ioctl+0x997/0xdd0 ? __pfx_snd_ctl_ioctl+0x10/0x10 ? srso_alias_return_thunk+0x5/0xfbef5 ? selinux_file_ioctl+0xaa/0x280 ? __pfx_snd_ctl_ioctl+0x10/0x10 __x64_sys_ioctl+0x163/0x1d0 do_syscall_64+0x115/0x6a0 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe8168c291b Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 RSP: 002b:00007fffab0cb150 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fe8168c291b RDX: 00007fffab0cb310 RSI: 00000000c4c85513 RDI: 0000000000000003 RBP: 00007fffab0cb310 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007fffab0cb1c0 R14: 0000000000000001 R15: 0000557c4f71fd10 Modules linked in: ---[ end trace 0000000000000000 ]--- The Linux kernel CVE team has assigned CVE-2026-142909 to this issue. Affected and fixed versions =========================== Issue introduced in 4.1 with commit ee52e56e7b12834476cd0031c5986254ba1b6317 and fixed in 5.15.226 with commit dad9ecc05e53f1dca7d47124f03b223b2f3a3828 Issue introduced in 4.1 with commit ee52e56e7b12834476cd0031c5986254ba1b6317 and fixed in 6.1.193 with commit af75e181711154fe92bf483210011a44bfc40161 Issue introduced in 4.1 with commit ee52e56e7b12834476cd0031c5986254ba1b6317 and fixed in 6.6.163 with commit 5027de87bee94e60652541720ddcb42c9d7affda Issue introduced in 4.1 with commit ee52e56e7b12834476cd0031c5986254ba1b6317 and fixed in 6.12.119 with commit 7bea850e0212042c35adb7f09dd9df139e621f1f Issue introduced in 4.1 with commit ee52e56e7b12834476cd0031c5986254ba1b6317 and fixed in 6.18.65 with commit 7d67530f3bf01fa917f5d6effc86160c1140116c Issue introduced in 4.1 with commit ee52e56e7b12834476cd0031c5986254ba1b6317 and fixed in 7.3.6 with commit b6564204d6ee1430735ffad8d4028554033649de Issue introduced in 4.1 with commit ee52e56e7b12834476cd0031c5986254ba1b6317 and fixed in 7.4-rc1 with commit 6215cf3ff5b0ff1ca5ab66b79021f9e28b02eae1 Issue introduced in 3.4.109 with commit e35facb7a9bb47ba4335b14cb73f079b7cf5b25d Issue introduced in 3.10.78 with commit 4453c82b204f8ba4d3c107f04bd4f83c3132bde6 Issue introduced in 3.12.43 with commit 5de7565b4e5cf5e5e21027968d3a9bdad23c162c Issue introduced in 3.14.42 with commit d0263836be7676a082d5badc5401c2793613a9b6 Issue introduced in 3.18.18 with commit 9e207f53f3578b7a55bdebaec95cff44279a0a4b Issue introduced in 4.0.3 with commit 53e5604bbe12fddc549d837190409f25ecb1393a 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-142909 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: include/sound/control.h sound/core/vmaster.c sound/hda/common/codec.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/dad9ecc05e53f1dca7d47124f03b223b2f3a3828 https://git.kernel.org/stable/c/af75e181711154fe92bf483210011a44bfc40161 https://git.kernel.org/stable/c/5027de87bee94e60652541720ddcb42c9d7affda https://git.kernel.org/stable/c/7bea850e0212042c35adb7f09dd9df139e621f1f https://git.kernel.org/stable/c/7d67530f3bf01fa917f5d6effc86160c1140116c https://git.kernel.org/stable/c/b6564204d6ee1430735ffad8d4028554033649de https://git.kernel.org/stable/c/6215cf3ff5b0ff1ca5ab66b79021f9e28b02eae1