CVE-2026-142915: ALSA: timer: Pin the module for userspace timer controllers

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ALSA: timer: Pin the module for userspace timer controllers

The static sndutimerids IDA must remain live until a userspace timer controller has returned its ID. However, sndutimerfops has no owner, so anoninodegetfd() does not take a reference to snd-timer for the controller file.

With CONFIGSNDTIMER=m and CONFIGSNDUTIMER=y, userspace can create a controller with SNDRVTIMERIOCTLCREATE and close the native timer file. If no timer instances or dependent modules retain snd-timer, ordinary module unload can then overlap the controller's final release:

Controller final release Module unload sndutimerrelease() sndutimerfree() sndtimerfree(): unlink provider sndutimerputid() enter idafree() deletemodule() alsatimerexit() freemodule(): free MODDATA access sndutimerids.xa

The provider is already absent from sndtimerfreeall() when unload runs. Neither registermutex nor the IDA's lock keeps module storage resident through the remaining IDA access. That access can therefore use freed module data and fault while acquiring the XArray lock, as shown in the Oops below.

Set sndutimerfops.owner to THISMODULE so anonymous-file creation takes the existing module reference. The VFS drops it only after sndutimerrelease() returns, keeping the IDA resident through idafree() and preventing ordinary unload during that interval.

Oops report as below:

BUG: unable to handle page fault for address: fffffbfff80480af #PF: supervisor read access in kernel mode #PF: errorcode(0x0000) - not-present page PGD 1a7ff6067 P4D 1a7ff6067 PUD 1a7ff2067 PMD 100ad6067 PTE 0 Oops: Oops: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 485 Comm: alsa-utimer-fix Tainted: G O 7.2.0-rc6-pmb-bt-functional-v1+ #1 PREEMPT(lazy) Tainted: [O]=OOTMODULE Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, archcaps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:kasanbyteaccessible+0x15/0x30 Code: 00 00 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 40 d6 48 b8 00 00 00 00 00 fc ff df 48 c1 ef 03 48 01 c7 <0f> b6 07 3c 07 0f 96 c0 e9 69 f1 2b ff 66 66 2e 0f 1f 84 00 00 00 RSP: 0018:ffff88811a457c48 EFLAGS: 00010086 RAX: dffffc0000000000 RBX: ffffffffc0240578 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff861f111c RDI: fffffbfff80480af RBP: ffffffffc0240578 R08: 0000000000000001 R09: 0000000000000000 R10: ffffffff891cc057 R11: ffff88811531ba00 R12: ffffffff861f111c R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007ff190ff7780(0000) GS:ffff8881fda2a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffffbfff80480af CR3: 0000000116890003 CR4: 0000000000770ef0 PKRU: 55555554 Call Trace: <TASK> kasancheckbyte+0x13/0x50 lockacquire+0x113/0x2f0 ? pfxpmbdprobehitcookie+0x10/0x10 ? lockrelease+0xc8/0x280 ? srsoaliasreturnthunk+0x5/0xfbef5 rawspinlockirqsave+0x3c/0x60 ? idafree+0xd4/0x2b0 idafree+0xd4/0x2b0 ? pfxidafree+0x10/0x10 ? srsoaliasreturnthunk+0x5/0xfbef5 ? pfxlocksremovefile+0x10/0x10 ? fput+0x39f/0xa60 ? fputclosesync+0xff/0x200 ? pfxfputclosesync+0x10/0x10 ? dnotifyflush+0x22/0x4b0 ? x64sysclose+0x8c/0xf0 ? dosyscall64+0x115/0x6a0 ? entrySYSCALL64afterhwframe+0x77/0x7f </TASK> Modules linked in: snd(O) [last unloaded: sndtimer(O)] CR2: fffffbfff80480af ---[ end trace 0000000000000000 ]---

Affected Software

4 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.12.0<6.12.119
6.12.119
linux/kernel>=6.13.0<6.18.65
6.18.65
linux/kernel>=6.19.0<7.3.6
7.3.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.119
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.65
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.6
  4. Compensating control

    Set snd_utimer_fops.owner to THIS_MODULE so anonymous-file creation holds a reference to snd-timer.

Event History

Dec 3, 2026
CVE Published
via MITRE·03:25 AM
Data Sourced
via MITRE·03:25 AM
Description
Data Sourced
via OSV·03:25 AM
DescriptionAffected Software
Data Sourced
via NVD·04:18 AM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

The described condition requires the ALSA timer driver to be built as a module (CONFIG_SND_TIMER=m) and userspace timer controllers to be enabled (CONFIG_SND_UTIMER=y). Systems that do not use that configuration are not described as affected.

2

What sequence is required to trigger the fault?

A userspace process must create a timer controller with SNDRV_TIMER_IOCTL_CREATE, then close the native timer file while retaining the controller. If no timer instances or dependent modules keep snd-timer loaded, unloading the module can overlap the controller's final release and access freed module data.

3

What can be done if the fix cannot be applied immediately?

Avoid unloading the snd-timer module while userspace timer controllers may still exist. The affected configuration can also be avoided by not using a modular ALSA timer driver together with enabled userspace timer controllers.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203