{"api_version":"1","generated_at":"2026-12-03T05:14:25+00:00","cve":"CVE-2026-142909","urls":{"html":"https://cve.report/CVE-2026-142909","api":"https://cve.report/api/cve/CVE-2026-142909.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142909","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142909"},"summary":{"title":"ALSA: vmaster: Serialize hook registration with control callbacks","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: vmaster: Serialize hook registration with control callbacks\n\nAn HDA virtual-master hook must have its private argument initialized\nbefore a control callback can invoke it. snd_hda_add_vmaster_hook()\ninstalls the trampoline through snd_ctl_add_vmaster_hook(), which stores\nmaster->hook before master->hook_private_data without serialization.\n\nWhen a codec with a vmaster mute hook binds to an already registered\ncard, snd_hda_gen_build_controls() publishes and initializes the Master\nPlayback Switch before installing the hook. A native write that changes\nthe switch can then run in the following order:\n\n  1. The codec bind path publishes and initializes the master control in\n     __snd_hda_add_vmaster(), then calls snd_hda_add_vmaster_hook().\n  2. The hook setter stores master->hook, but has not yet stored its\n     private argument.\n  3. SNDRV_CTL_IOCTL_ELEM_WRITE takes controls_rwsem and calls\n     master_put() while the setter remains between those stores.\n  4. master_put() sees the callback and invokes vmaster_hook() with a\n     NULL argument. The trampoline dereferences it before the setter\n     can complete publication.\n\nThe write lock held by snd_ctl_elem_write() does not exclude the hook\nsetter, so this can cause a NULL pointer dereference. Take the same\ncontrols_rwsem for writing inside snd_ctl_add_vmaster_hook() so the\ncallback and its argument are installed together with respect to\nnative control callbacks. Pass the card into the helper and update\nthe HDA caller, keeping the lock in the ALSA core. Release it when\nregistration returns, before the caller synchronizes the hook.\n\nKASAN report as below:\n\n    Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] SMP KASAN NOPTI\n    KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]\n    CPU: 1 UID: 0 PID: 499 Comm: alsa-vmaster-tr Not tainted 7.2.0-rc6-pmb-bt-functional-v1+ #1 PREEMPT(lazy)\n    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\n    RIP: 0010:vmaster_hook+0x35/0xb0\n    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\n    RSP: 0018:ffff888117647cd0 EFLAGS: 00010212\n    RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff84e9ff50\n    RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000008\n    RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000001\n    R10: ffffffff89427457 R11: ffff888115ad1d00 R12: ffffffff84e9ff30\n    R13: ffff888114943ca0 R14: 0000000000000000 R15: 0000000000000001\n    FS:  00007fe8167b3780(0000) GS:ffff88826b7e3000(0000) knlGS:0000000000000000\n    CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033\n    CR2: 0000557c8c2842a8 CR3: 000000011579f005 CR4: 0000000000770ef0\n    PKRU: 55555554\n    Call Trace:\n     <TASK>\n     master_put+0x20e/0x2b0\n     snd_ctl_elem_write+0x37f/0x5e0\n     snd_ctl_ioctl+0x997/0xdd0\n     ? __pfx_snd_ctl_ioctl+0x10/0x10\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? selinux_file_ioctl+0xaa/0x280\n     ? __pfx_snd_ctl_ioctl+0x10/0x10\n     __x64_sys_ioctl+0x163/0x1d0\n     do_syscall_64+0x115/0x6a0\n     entry_SYSCALL_64_after_hwframe+0x77/0x7f\n    RIP: 0033:0x7fe8168c291b\n    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\n    RSP: 002b:00007fffab0cb150 EFLAGS: 00000246 ORIG_RAX: 0000000000000010\n    RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fe8168c291b\n    RDX: 00007fffab0cb310 RSI: 00000000c4c85513 RDI: 0000000000000003\n    RBP: 00007fffab0cb310 R08: 0000000000000000 R09: 0000000000000000\n    R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001\n    R13: 00007fff\n---truncated---","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 04:18:30","updated_at":"2026-12-03 04:18:30"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/af75e181711154fe92bf483210011a44bfc40161","name":"https://git.kernel.org/stable/c/af75e181711154fe92bf483210011a44bfc40161","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b6564204d6ee1430735ffad8d4028554033649de","name":"https://git.kernel.org/stable/c/b6564204d6ee1430735ffad8d4028554033649de","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6215cf3ff5b0ff1ca5ab66b79021f9e28b02eae1","name":"https://git.kernel.org/stable/c/6215cf3ff5b0ff1ca5ab66b79021f9e28b02eae1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7d67530f3bf01fa917f5d6effc86160c1140116c","name":"https://git.kernel.org/stable/c/7d67530f3bf01fa917f5d6effc86160c1140116c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5027de87bee94e60652541720ddcb42c9d7affda","name":"https://git.kernel.org/stable/c/5027de87bee94e60652541720ddcb42c9d7affda","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7bea850e0212042c35adb7f09dd9df139e621f1f","name":"https://git.kernel.org/stable/c/7bea850e0212042c35adb7f09dd9df139e621f1f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/dad9ecc05e53f1dca7d47124f03b223b2f3a3828","name":"https://git.kernel.org/stable/c/dad9ecc05e53f1dca7d47124f03b223b2f3a3828","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142909","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142909","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ee52e56e7b12834476cd0031c5986254ba1b6317 dad9ecc05e53f1dca7d47124f03b223b2f3a3828 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ee52e56e7b12834476cd0031c5986254ba1b6317 af75e181711154fe92bf483210011a44bfc40161 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ee52e56e7b12834476cd0031c5986254ba1b6317 5027de87bee94e60652541720ddcb42c9d7affda git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ee52e56e7b12834476cd0031c5986254ba1b6317 7bea850e0212042c35adb7f09dd9df139e621f1f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ee52e56e7b12834476cd0031c5986254ba1b6317 7d67530f3bf01fa917f5d6effc86160c1140116c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ee52e56e7b12834476cd0031c5986254ba1b6317 b6564204d6ee1430735ffad8d4028554033649de git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ee52e56e7b12834476cd0031c5986254ba1b6317 6215cf3ff5b0ff1ca5ab66b79021f9e28b02eae1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e35facb7a9bb47ba4335b14cb73f079b7cf5b25d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4453c82b204f8ba4d3c107f04bd4f83c3132bde6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5de7565b4e5cf5e5e21027968d3a9bdad23c162c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d0263836be7676a082d5badc5401c2793613a9b6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9e207f53f3578b7a55bdebaec95cff44279a0a4b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 53e5604bbe12fddc549d837190409f25ecb1393a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3.4.109 3.5 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3.10.78 3.11 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3.12.43 3.13 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3.14.42 3.15 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3.18.18 3.19 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.0.3 4.1 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.1","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.1 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["include/sound/control.h","sound/core/vmaster.c","sound/hda/common/codec.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"dad9ecc05e53f1dca7d47124f03b223b2f3a3828","status":"affected","version":"ee52e56e7b12834476cd0031c5986254ba1b6317","versionType":"git"},{"lessThan":"af75e181711154fe92bf483210011a44bfc40161","status":"affected","version":"ee52e56e7b12834476cd0031c5986254ba1b6317","versionType":"git"},{"lessThan":"5027de87bee94e60652541720ddcb42c9d7affda","status":"affected","version":"ee52e56e7b12834476cd0031c5986254ba1b6317","versionType":"git"},{"lessThan":"7bea850e0212042c35adb7f09dd9df139e621f1f","status":"affected","version":"ee52e56e7b12834476cd0031c5986254ba1b6317","versionType":"git"},{"lessThan":"7d67530f3bf01fa917f5d6effc86160c1140116c","status":"affected","version":"ee52e56e7b12834476cd0031c5986254ba1b6317","versionType":"git"},{"lessThan":"b6564204d6ee1430735ffad8d4028554033649de","status":"affected","version":"ee52e56e7b12834476cd0031c5986254ba1b6317","versionType":"git"},{"lessThan":"6215cf3ff5b0ff1ca5ab66b79021f9e28b02eae1","status":"affected","version":"ee52e56e7b12834476cd0031c5986254ba1b6317","versionType":"git"},{"status":"affected","version":"e35facb7a9bb47ba4335b14cb73f079b7cf5b25d","versionType":"git"},{"status":"affected","version":"4453c82b204f8ba4d3c107f04bd4f83c3132bde6","versionType":"git"},{"status":"affected","version":"5de7565b4e5cf5e5e21027968d3a9bdad23c162c","versionType":"git"},{"status":"affected","version":"d0263836be7676a082d5badc5401c2793613a9b6","versionType":"git"},{"status":"affected","version":"9e207f53f3578b7a55bdebaec95cff44279a0a4b","versionType":"git"},{"status":"affected","version":"53e5604bbe12fddc549d837190409f25ecb1393a","versionType":"git"},{"lessThan":"3.5","status":"affected","version":"3.4.109","versionType":"semver"},{"lessThan":"3.11","status":"affected","version":"3.10.78","versionType":"semver"},{"lessThan":"3.13","status":"affected","version":"3.12.43","versionType":"semver"},{"lessThan":"3.15","status":"affected","version":"3.14.42","versionType":"semver"},{"lessThan":"3.19","status":"affected","version":"3.18.18","versionType":"semver"},{"lessThan":"4.1","status":"affected","version":"4.0.3","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["include/sound/control.h","sound/core/vmaster.c","sound/hda/common/codec.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.1"},{"lessThan":"4.1","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"4.1","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"4.1","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"4.1","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"4.1","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"4.1","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"4.1","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"4.1","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.4.109","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10.78","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12.43","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.14.42","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.18.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0.3","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: vmaster: Serialize hook registration with control callbacks\n\nAn HDA virtual-master hook must have its private argument initialized\nbefore a control callback can invoke it. snd_hda_add_vmaster_hook()\ninstalls the trampoline through snd_ctl_add_vmaster_hook(), which stores\nmaster->hook before master->hook_private_data without serialization.\n\nWhen a codec with a vmaster mute hook binds to an already registered\ncard, snd_hda_gen_build_controls() publishes and initializes the Master\nPlayback Switch before installing the hook. A native write that changes\nthe switch can then run in the following order:\n\n  1. The codec bind path publishes and initializes the master control in\n     __snd_hda_add_vmaster(), then calls snd_hda_add_vmaster_hook().\n  2. The hook setter stores master->hook, but has not yet stored its\n     private argument.\n  3. SNDRV_CTL_IOCTL_ELEM_WRITE takes controls_rwsem and calls\n     master_put() while the setter remains between those stores.\n  4. master_put() sees the callback and invokes vmaster_hook() with a\n     NULL argument. The trampoline dereferences it before the setter\n     can complete publication.\n\nThe write lock held by snd_ctl_elem_write() does not exclude the hook\nsetter, so this can cause a NULL pointer dereference. Take the same\ncontrols_rwsem for writing inside snd_ctl_add_vmaster_hook() so the\ncallback and its argument are installed together with respect to\nnative control callbacks. Pass the card into the helper and update\nthe HDA caller, keeping the lock in the ALSA core. Release it when\nregistration returns, before the caller synchronizes the hook.\n\nKASAN report as below:\n\n    Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] SMP KASAN NOPTI\n    KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]\n    CPU: 1 UID: 0 PID: 499 Comm: alsa-vmaster-tr Not tainted 7.2.0-rc6-pmb-bt-functional-v1+ #1 PREEMPT(lazy)\n    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\n    RIP: 0010:vmaster_hook+0x35/0xb0\n    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\n    RSP: 0018:ffff888117647cd0 EFLAGS: 00010212\n    RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff84e9ff50\n    RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000008\n    RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000001\n    R10: ffffffff89427457 R11: ffff888115ad1d00 R12: ffffffff84e9ff30\n    R13: ffff888114943ca0 R14: 0000000000000000 R15: 0000000000000001\n    FS:  00007fe8167b3780(0000) GS:ffff88826b7e3000(0000) knlGS:0000000000000000\n    CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033\n    CR2: 0000557c8c2842a8 CR3: 000000011579f005 CR4: 0000000000770ef0\n    PKRU: 55555554\n    Call Trace:\n     <TASK>\n     master_put+0x20e/0x2b0\n     snd_ctl_elem_write+0x37f/0x5e0\n     snd_ctl_ioctl+0x997/0xdd0\n     ? __pfx_snd_ctl_ioctl+0x10/0x10\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? selinux_file_ioctl+0xaa/0x280\n     ? __pfx_snd_ctl_ioctl+0x10/0x10\n     __x64_sys_ioctl+0x163/0x1d0\n     do_syscall_64+0x115/0x6a0\n     entry_SYSCALL_64_after_hwframe+0x77/0x7f\n    RIP: 0033:0x7fe8168c291b\n    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\n    RSP: 002b:00007fffab0cb150 EFLAGS: 00000246 ORIG_RAX: 0000000000000010\n    RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fe8168c291b\n    RDX: 00007fffab0cb310 RSI: 00000000c4c85513 RDI: 0000000000000003\n    RBP: 00007fffab0cb310 R08: 0000000000000000 R09: 0000000000000000\n    R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001\n    R13: 00007fff\n---truncated---"}],"providerMetadata":{"dateUpdated":"2026-12-03T03:25:53.382Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/dad9ecc05e53f1dca7d47124f03b223b2f3a3828"},{"url":"https://git.kernel.org/stable/c/af75e181711154fe92bf483210011a44bfc40161"},{"url":"https://git.kernel.org/stable/c/5027de87bee94e60652541720ddcb42c9d7affda"},{"url":"https://git.kernel.org/stable/c/7bea850e0212042c35adb7f09dd9df139e621f1f"},{"url":"https://git.kernel.org/stable/c/7d67530f3bf01fa917f5d6effc86160c1140116c"},{"url":"https://git.kernel.org/stable/c/b6564204d6ee1430735ffad8d4028554033649de"},{"url":"https://git.kernel.org/stable/c/6215cf3ff5b0ff1ca5ab66b79021f9e28b02eae1"}],"title":"ALSA: vmaster: Serialize hook registration with control callbacks","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-142909","datePublished":"2026-12-03T03:25:53.382Z","dateReserved":"2026-12-03T03:10:28.336Z","dateUpdated":"2026-12-03T03:25:53.382Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 04:18:30","lastModifiedDate":"2026-12-03 04:18:30","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142909","Ordinal":"1","Title":"ALSA: vmaster: Serialize hook registration with control callback","CVE":"CVE-2026-142909","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142909","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: vmaster: Serialize hook registration with control callbacks\n\nAn HDA virtual-master hook must have its private argument initialized\nbefore a control callback can invoke it. snd_hda_add_vmaster_hook()\ninstalls the trampoline through snd_ctl_add_vmaster_hook(), which stores\nmaster->hook before master->hook_private_data without serialization.\n\nWhen a codec with a vmaster mute hook binds to an already registered\ncard, snd_hda_gen_build_controls() publishes and initializes the Master\nPlayback Switch before installing the hook. A native write that changes\nthe switch can then run in the following order:\n\n  1. The codec bind path publishes and initializes the master control in\n     __snd_hda_add_vmaster(), then calls snd_hda_add_vmaster_hook().\n  2. The hook setter stores master->hook, but has not yet stored its\n     private argument.\n  3. SNDRV_CTL_IOCTL_ELEM_WRITE takes controls_rwsem and calls\n     master_put() while the setter remains between those stores.\n  4. master_put() sees the callback and invokes vmaster_hook() with a\n     NULL argument. The trampoline dereferences it before the setter\n     can complete publication.\n\nThe write lock held by snd_ctl_elem_write() does not exclude the hook\nsetter, so this can cause a NULL pointer dereference. Take the same\ncontrols_rwsem for writing inside snd_ctl_add_vmaster_hook() so the\ncallback and its argument are installed together with respect to\nnative control callbacks. Pass the card into the helper and update\nthe HDA caller, keeping the lock in the ALSA core. Release it when\nregistration returns, before the caller synchronizes the hook.\n\nKASAN report as below:\n\n    Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] SMP KASAN NOPTI\n    KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]\n    CPU: 1 UID: 0 PID: 499 Comm: alsa-vmaster-tr Not tainted 7.2.0-rc6-pmb-bt-functional-v1+ #1 PREEMPT(lazy)\n    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\n    RIP: 0010:vmaster_hook+0x35/0xb0\n    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\n    RSP: 0018:ffff888117647cd0 EFLAGS: 00010212\n    RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff84e9ff50\n    RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000008\n    RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000001\n    R10: ffffffff89427457 R11: ffff888115ad1d00 R12: ffffffff84e9ff30\n    R13: ffff888114943ca0 R14: 0000000000000000 R15: 0000000000000001\n    FS:  00007fe8167b3780(0000) GS:ffff88826b7e3000(0000) knlGS:0000000000000000\n    CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033\n    CR2: 0000557c8c2842a8 CR3: 000000011579f005 CR4: 0000000000770ef0\n    PKRU: 55555554\n    Call Trace:\n     <TASK>\n     master_put+0x20e/0x2b0\n     snd_ctl_elem_write+0x37f/0x5e0\n     snd_ctl_ioctl+0x997/0xdd0\n     ? __pfx_snd_ctl_ioctl+0x10/0x10\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? selinux_file_ioctl+0xaa/0x280\n     ? __pfx_snd_ctl_ioctl+0x10/0x10\n     __x64_sys_ioctl+0x163/0x1d0\n     do_syscall_64+0x115/0x6a0\n     entry_SYSCALL_64_after_hwframe+0x77/0x7f\n    RIP: 0033:0x7fe8168c291b\n    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\n    RSP: 002b:00007fffab0cb150 EFLAGS: 00000246 ORIG_RAX: 0000000000000010\n    RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fe8168c291b\n    RDX: 00007fffab0cb310 RSI: 00000000c4c85513 RDI: 0000000000000003\n    RBP: 00007fffab0cb310 R08: 0000000000000000 R09: 0000000000000000\n    R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001\n    R13: 00007fff\n---truncated---","Type":"Description","Title":"ALSA: vmaster: Serialize hook registration with control callback"}]}}}