⚠️

سلب مسئولیت و اخلاق حرفه‌ای

این مطالب صرفاً برای اهداف آموزشی، پژوهشی و افزایش آگاهی امنیتی ارائه شده‌اند. هرگونه استفاده غیرمجاز، غیرقانونی یا سوءاستفاده از اطلاعات، ابزارها و روش‌های مطرح‌شده، کاملاً بر عهده مخاطب است. نویسنده و منتشرکننده هیچ مسئولیتی در قبال خسارات، آسیب‌ها یا پیامدهای ناشی از استفاده نادرست از این مطالب نخواهند داشت.

CVE-2026-143435: Linux Kernel ALSA Channel-Map Read Race | Alireza Bolbolabadi - Red Team Security
LOADING

CVE-2026-143435: Linux Kernel ALSA Channel-Map Read Race

Executive summary

CVE-2026-143435 affects the Linux kernel's Advanced Linux Sound Architecture (ALSA) PCM channel-map control implementation. The flaw arises when an ALSA control read races with the final close of the same PCM substream. Because the control callback and the close path do not share sufficient locking, the callback may read substream->runtime->channels after the runtime pointer has been cleared or freed.

The likely observable consequence is a kernel fault and denial of service. The supplied advisory does not report active exploitation, a public proof of concept, CISA KEV listing, or a CVSS vector. It also identifies the issue as non-remotely exploitable. Exact affected Linux kernel releases are not provided, but multiple stable-tree patch commits are cited.

Detailed analysis

Affected systems

The affected product is the linux_kernel, specifically ALSA PCM channel-map controls and the in-tree HDA path that publishes generic controls through add_std_chmaps(). The available advisory does not enumerate affected version ranges, so the precise vulnerable releases cannot be derived from the supplied material.

The following stable-tree commits are listed as references:

  • 2762cb36378cf162521cb6fcd073d1c39b3ffecd

  • 639fa18439ad62566c5f34230a91c4802b1fa26f

  • 69518e80c154952ce30b19c57c9a89754c4eee6a

  • 9b06541e4c36ee67cf909965e40ed654fd8d7ddf

  • bb4834d5242c4829c0d8467ee68eb25a9bafc38d

  • f65e2c6c159b8d8a3235b7573d4bc176e5ee0d18

The relationship between each commit and a released kernel version must be confirmed through the corresponding stable-kernel record and the relevant Linux distribution's package changelog.

Root cause

Channel-map controls can remain available between PCM opens. In the in-tree HDA implementation, add_std_chmaps() publishes generic controls, allowing a SNDRV_CTL_IOCTL_ELEM_READ operation to overlap the final close of the same PCM substream.

The problematic sequence is:

  1. snd_ctl_elem_read() obtains a read lock on controls_rwsem.

  1. pcm_chmap_ctl_get() checks whether substream->runtime is present.

  1. Concurrently, the final PCM close acquires pcm->open_mutex.

  1. snd_pcm_release_substream() invokes snd_pcm_detach_substream().

  1. substream->runtime is set to NULL and the runtime object is freed.

  1. The control callback subsequently reads substream->runtime->channels.

Holding controls_rwsem keeps the control object alive, but it does not serialize the matching PCM close. The result is either a NULL-pointer fault or an access to released storage.

Patch design

The fix copies the channel count while pcm->open_mutex is held and uses that copied scalar during the channel-map lookup. This prevents the callback from dereferencing a runtime pointer that may have been cleared or freed.

The patch also uses trylock and returns -EBUSY where appropriate. A blocking acquisition could create a lock-order inversion because snd_pcm_dev_disconnect() acquires pcm->open_mutex before removing controls under controls_rwsem.

Attack surface and exploitability

The attack vector is local. Reaching the vulnerable sequence requires interaction with the ALSA PCM and control interfaces and successful timing between a channel-map control read and the final substream close. Unprivileged reachability depends on ALSA device permissions and system configuration, neither of which is established in the supplied context.

No exploitation is known in the provided intelligence. There is also no confirmed public proof of concept or CVSS vector to support a higher rating. Even so, this remains a genuine kernel memory-safety defect: use-after-free behavior can have consequences beyond a simple crash, although code execution, privilege escalation, and a practical exploit are not demonstrated here.

Security relevance

Reliability depends on winning a narrow race and observing useful memory state afterward. That reduces exploitability, but it does not eliminate the risk of disruption in environments where untrusted local code can access affected ALSA devices. Multi-user systems and workloads that repeatedly open, query, and close PCM substreams deserve particular attention.

Mitigation

Apply the stable-tree patch corresponding to the running kernel branch, or install a distribution kernel package that includes the fix. Package-specific version mappings are absent from the supplied material, so the cited commits and the distributor's package advisory are the appropriate references for version determination.

As defense in depth, restrict access to ALSA device and control nodes through device permissions, udev rules, or equivalent controls. On systems where ALSA access is granted to less-trusted applications or users, this can reduce exposure to the affected operations without replacing the kernel update.

No complete user-space workaround is documented. Because the defect resides in the kernel, application-level behavior should not be treated as a substitute for patching.

Expert insight

This bug illustrates why lifetime validation and dereference must occur under the same synchronization mechanism. Checking substream->runtime and later dereferencing it is safe only if the close path cannot invalidate the object between those operations. The proposed change avoids extending object lifetime by taking a scalar snapshot under pcm->open_mutex, which is a focused solution to the race.

The trylock decision is equally significant. Fixing a use-after-free by introducing an unconditional blocking lock can create a deadlock when another path establishes the opposite lock order. The patch therefore addresses both memory safety and lock-order compatibility.

The present evidence supports a low-severity assessment: local reachability is conditional, exploitation requires precise timing, and no weaponized exploit is documented. Nevertheless, the defect resides in a privileged memory boundary, so successful triggering may terminate the kernel and affect every workload on the host.

Actionable recommendations

  1. Identify the running kernel branch and review the six cited stable-tree commits to determine the applicable fix.

  1. Apply the relevant kernel patch or install a distribution package whose changelog confirms inclusion of the fix.

  1. Review ALSA control and device-node permissions, especially on shared or multi-user systems.

  1. Prioritize updates on hosts where less-trusted local code can access audio controls or repeatedly exercise PCM lifecycle operations.

  1. Monitor kernel logs for ALSA channel-map faults, NULL dereferences involving substream->runtime, and use-after-free warnings.

  1. Treat repeated SNDRV_CTL_IOCTL_ELEM_READ activity against channel-map controls followed by rapid PCM closure as a possible investigation signal, noting that no validated detection signature is provided.

منابع

·
← اخبار