CVE-2026-142909

Source
https://cve.org/CVERecord?id=CVE-2026-142909
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142909.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-142909
Downstream
Published
2026-12-03T03:25:53Z
Modified
2026-12-03T05:00:21Z
Summary
ALSA: vmaster: Serialize hook registration with control callbacks
Details

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:
 <TASK>
 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: 00007fff

---truncated---

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142909.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ee52e56e7b12834476cd0031c5986254ba1b6317
Fixed
dad9ecc05e53f1dca7d47124f03b223b2f3a3828
Fixed
af75e181711154fe92bf483210011a44bfc40161
Fixed
5027de87bee94e60652541720ddcb42c9d7affda
Fixed
7bea850e0212042c35adb7f09dd9df139e621f1f
Fixed
7d67530f3bf01fa917f5d6effc86160c1140116c
Show 2 more events Show fewer events
Fixed
b6564204d6ee1430735ffad8d4028554033649de
Fixed
6215cf3ff5b0ff1ca5ab66b79021f9e28b02eae1
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
e35facb7a9bb47ba4335b14cb73f079b7cf5b25d
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4453c82b204f8ba4d3c107f04bd4f83c3132bde6
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
5de7565b4e5cf5e5e21027968d3a9bdad23c162c
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d0263836be7676a082d5badc5401c2793613a9b6
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
9e207f53f3578b7a55bdebaec95cff44279a0a4b
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
53e5604bbe12fddc549d837190409f25ecb1393a

Affected versions

v3.*
v3.10.100
v3.10.101
v3.10.102
v3.10.103
v3.10.104
v3.10.105
v3.10.106
v3.10.107
v3.10.108
v3.10.78
v3.10.79
v3.10.80
v3.10.81
v3.10.82
v3.10.83
v3.10.84
v3.10.85
v3.10.86
v3.10.87
v3.10.88
v3.10.89
v3.10.90
v3.10.91
v3.10.92
v3.10.93
v3.10.94
v3.10.95
v3.10.96
v3.10.97
v3.10.98
v3.10.99
v3.12.43
v3.12.44
v3.12.45
v3.12.46
v3.12.47
v3.12.48
v3.12.49
v3.12.50
v3.12.51
v3.12.52
v3.12.53
v3.12.54
v3.12.55
v3.12.56
v3.12.57
v3.12.58
v3.12.59
v3.12.60
v3.12.61
v3.12.62
v3.12.63
v3.12.64
v3.12.65
v3.12.66
v3.12.67
v3.12.68
v3.12.69
v3.12.70
v3.12.71
v3.12.72
v3.12.73
v3.12.74
v3.14.42
v3.14.43
v3.14.44
v3.14.45
v3.14.46
v3.14.47
v3.14.48
v3.14.49
v3.14.50
v3.14.51
v3.14.52
v3.14.53
v3.14.54
v3.14.55
v3.14.56
v3.14.57
v3.14.58
v3.14.59
v3.14.60
v3.14.61
v3.14.62
v3.14.63
v3.14.64
v3.14.65
v3.14.66
v3.14.67
v3.14.68
v3.14.69
v3.14.70
v3.14.71
v3.14.72
v3.14.73
v3.14.74
v3.14.75
v3.14.76
v3.14.77
v3.14.78
v3.14.79
v3.18.100
v3.18.101
v3.18.102
v3.18.103
v3.18.104
v3.18.105
v3.18.106
v3.18.107
v3.18.108
v3.18.109
v3.18.110
v3.18.111
v3.18.112
v3.18.113
v3.18.114
v3.18.115
v3.18.116
v3.18.117
v3.18.118
v3.18.119
v3.18.120
v3.18.121
v3.18.122
v3.18.123
v3.18.124
v3.18.125
v3.18.126
v3.18.127
v3.18.128
v3.18.129
v3.18.130
v3.18.131
v3.18.132
v3.18.133
v3.18.134
v3.18.135
v3.18.136
v3.18.137
v3.18.138
v3.18.139
v3.18.140
v3.18.18
v3.18.19
v3.18.20
v3.18.21
v3.18.22
v3.18.23
v3.18.24
v3.18.25
v3.18.26
v3.18.27
v3.18.28
v3.18.29
v3.18.30
v3.18.31
v3.18.32
v3.18.33
v3.18.34
v3.18.35
v3.18.36
v3.18.37
v3.18.38
v3.18.39
v3.18.40
v3.18.41
v3.18.42
v3.18.43
v3.18.44
v3.18.45
v3.18.46
v3.18.47
v3.18.48
v3.18.49
v3.18.50
v3.18.51
v3.18.52
v3.18.53
v3.18.54
v3.18.55
v3.18.56
v3.18.57
v3.18.58
v3.18.59
v3.18.60
v3.18.61
v3.18.62
v3.18.63
v3.18.64
v3.18.65
v3.18.66
v3.18.67
v3.18.68
v3.18.69
v3.18.70
v3.18.71
v3.18.72
v3.18.73
v3.18.74
v3.18.75
v3.18.76
v3.18.77
v3.18.78
v3.18.79
v3.18.80
v3.18.81
v3.18.82
v3.18.83
v3.18.84
v3.18.85
v3.18.86
v3.18.87
v3.18.88
v3.18.89
v3.18.90
v3.18.91
v3.18.92
v3.18.93
v3.18.94
v3.18.95
v3.18.96
v3.18.97
v3.18.98
v3.18.99
v3.4.109
v3.4.110
v3.4.111
v3.4.112
v3.4.113
v4.*
v4.0.3
v4.0.4
v4.0.5
v4.0.6
v4.0.7
v4.0.8
v4.0.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142909.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.4.109
Fixed
3.5
Type
ECOSYSTEM
Events
Introduced
3.10.78
Fixed
3.11
Type
ECOSYSTEM
Events
Introduced
3.12.43
Fixed
3.13
Type
ECOSYSTEM
Events
Introduced
3.14.42
Fixed
3.15
Type
ECOSYSTEM
Events
Introduced
3.18.18
Fixed
3.19
Type
ECOSYSTEM
Events
Introduced
4.0.3
Fixed
4.1
Type
ECOSYSTEM
Events
Introduced
4.1.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.119
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142909.json"