CVE-2026-139272

ALSA: aloop: Keep the timer source alive until card release

Published Nov 30, 2026 CVSS 3.1 · 4.1 Medium EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ALSA: aloop: Keep the timer source alive until card release

The timer_source string must remain valid while PCM opens can select
and parse it. loopback_set_timer_source() allocates the string with
parent-device devres, which can release it while the card is still
registered.

A successful nonempty proc replacement after snd_card_register() adds
the string allocation after trigger_card_free. Unbinding the platform
device while snd_aloop remains loaded releases devres in reverse order.
An open for an unused cable can run after the string is freed and before
the card-free action disconnects the card:

Device unbind PCM open
devres_release_all()
free replacement string
snd_pcm_open()
snd_card_file_add()
loopback_open()
loopback_snd_timer_open()
loopback_parse_timer_id()
trigger_card_free()
snd_card_free()
snd_card_disconnect()

The parser can then read freed memory. KASAN has reported a one-byte
use-after-free read in strchr() from loopback_snd_timer_open(). The
cable_lock mutex serializes explicit replacements with opens, but
implicit devres release does not take it. The card and module references
held by PCM open do not retain this separate devres allocation.

Use kstrdup() and release the current string from card->private_free.
PCM admission already retains the card until each file is removed, and
card disconnect drains proc callbacks before final card release. This
keeps the string alive across admitted PCM opens and preserves the
cable_lock serialization of replacements. Install the callback before
the initial allocation so probe failures also release the string.

Analysis

AI-generated

Technical impact

The Linux ALSA loopback driver contains a use‑after‑free flaw that occurs when the timer source string is allocated with a devres that can be released while the PCM interface remains open. During a device unbind while the module is still loaded, the devres release frees the string in reverse order, allowing a concurrent PCM open to parse the freed memory. KASAN reports a one‑byte read in strchr during this parse, which could lead to memory disclosure or more severe exploitation. The weakness stems from insufficient synchronization and lifetime management of the devres allocation, characteristic of a use‑after‑free bug.

Affected Systems

All Linux kernel distributions that include the ALSA loopback driver (aloop) built into or loaded as a module prior to the fix remain affected. The vulnerability is present in any kernel that does not contain the patch updating loopback_set_timer_source to properly release the timer source string before card or PCM interactions are terminated.

Risk and Exploitability

The CVSS score is not supplied, and the EPSS value is unavailable, but the flaw is a classic use‑after‑free. Exploitation would require a local user with permission to unbind platform devices or to trigger the specific sequence of PCM opens during a device unbind, meaning the attack vector is local and privileged. Because the vulnerability involves a memory read rather than an immediate crash, the risk is moderate. The flaw is not listed in the CISA Known Exploited Vulnerabilities catalog, indicating no known broad exploitation, but patching remains essential to prevent potential information disclosure.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a release that contains the ALSA loopback timer source fix.
  • If an immediate kernel update is not possible, unload or disable the ALSA loopback module on systems that do not require it.
  • Restrict unbinding of platform devices to users with appropriate privileges and monitor for anomalous PCM open activity.

Generated by OpenCVE AI on December 1, 2026 at 07:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.1, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ALSA: aloop: Keep the timer source alive until card release The timer_source string must remain valid while PCM opens can select and parse it. loopback_set_timer_source() allocates the string with parent-device devres, which can release it while the card is still registered. A successful nonempty proc replacement after snd_card_register() adds the string allocation after trigger_card_free. Unbinding the platform device while snd_aloop remains loaded releases devres in reverse order. An open for an unused cable can run after the string is freed and before the card-free action disconnects the card: Device unbind PCM open devres_release_all() free replacement string snd_pcm_open() snd_card_file_add() loopback_open() loopback_snd_timer_open() loopback_parse_timer_id() trigger_card_free() snd_card_free() snd_card_disconnect() The parser can then read freed memory. KASAN has reported a one-byte use-after-free read in strchr() from loopback_snd_timer_open(). The cable_lock mutex serializes explicit replacements with opens, but implicit devres release does not take it. The card and module references held by PCM open do not retain this separate devres allocation. Use kstrdup() and release the current string from card->private_free. PCM admission already retains the card until each file is removed, and card disconnect drains proc callbacks before final card release. This keeps the string alive across admitted PCM opens and preserves the cable_lock serialization of replacements. Install the callback before the initial allocation so probe failures also release the string.
Title ALSA: aloop: Keep the timer source alive until card release
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:33 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:33 PM