CVE-2026-101308

TOCTOU race between sound(4) buffer resizing and mmap

Published Oct 15, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
When an audio channel's buffer needs to be resized, the sound(4) driver checks that the buffer is not memory-mapped and then drops the channel lock to allocate a new buffer. An mmap(2) call on another thread can complete during this window, after which the resize path frees the now-mapped buffer without rechecking.

An unprivileged local user with access to a sound device can exploit this race to trigger a use-after-free in the kernel, potentially escalating privileges.

Analysis

AI-generated

Technical impact

The vulnerability is a time‑of‑check to time‑of‑use race in FreeBSD’s sound(4) driver. When a channel buffer is resized, the driver checks that the buffer is not memory‑mapped, releases the channel lock, and re‑allocates a new buffer. During the brief period after the lock is dropped, an attacker can perform an mmap on the same buffer from another thread. The race causes the driver to free the now‑mapped buffer without re‑checking, leading to a use‑after‑free in the kernel. An unprivileged local user with access to a sound device can exploit this race to execute code in kernel context and potentially gain higher privileges.

Affected Systems

All FreeBSD releases that ship the stock sound(4) driver are affected. The advisory does not list specific versions, so any deployment using the original driver before the patch may be vulnerable.

Risk and Exploitability

The CVSS score of 5.5 indicates medium severity, and the EPSS score of less than 1% suggests a very low probability of exploitation in the wild. The vulnerability is not included in CISA’s KEV catalog. A local attacker who can orchestrate the timing of an mmap during the buffer resize can trigger the use‑after‑free to elevate privileges, but no widespread automated exploitation is reported at this time.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Install the latest FreeBSD security update that includes the fixed sound driver or apply the vendor patch that resolves the race condition
  • Restrict access to audio devices by limiting file system permissions on /dev/audio* or /dev/snd* to privileged users only, thereby reducing the local user attack surface
  • If audio services are not required on a system, disable or remove the sound subsystem or kernel module to eliminate the vulnerability

Generated by OpenCVE AI on October 16, 2026 at 22:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:o:freebsd:freebsd:14.4:-:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:14.4:p10:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:14.4:p1:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:14.4:p2:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:14.4:p3:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:14.4:p4:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:14.4:p5:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:14.4:p6:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:14.4:p7:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:14.4:p8:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:14.4:p9:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:14.5:-:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:14.5:p1:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.1:-:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.1:p1:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.1:p2:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.1:p3:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.1:p4:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Freebsd
Freebsd freebsd
Vendors & Products Freebsd
Freebsd freebsd
Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description When an audio channel's buffer needs to be resized, the sound(4) driver checks that the buffer is not memory-mapped and then drops the channel lock to allocate a new buffer. An mmap(2) call on another thread can complete during this window, after which the resize path frees the now-mapped buffer without rechecking. An unprivileged local user with access to a sound device can exploit this race to trigger a use-after-free in the kernel, potentially escalating privileges.
Title TOCTOU race between sound(4) buffer resizing and mmap
Weaknesses CWE-367
References
Weaknesses
  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition

Sources

Status
PUBLISHED
Assigner
freebsd
Published
Updated
Oct 15, 2026, 3:40 PM
Reserved
Sep 28, 2026, 1:33 PM
Status
Analyzed
Published
Oct 15, 2026, 7:17 AM
Modified
Oct 19, 2026, 9:07 PM