CVE-2026-101308 PUBLISHED

TOCTOU race between sound(4) buffer resizing and mmap

Assigner: freebsd
Reserved: 28.09.2026 Published: 15.10.2026 Updated: 15.10.2026

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.

Product Status

Vendor FreeBSD
Product FreeBSD
Versions Default: unknown
  • affected from 15.1-RELEASE to p5 (excl.)
  • affected from 14.5-RELEASE to p2 (excl.)
  • affected from 14.4-RELEASE to p11 (excl.)

Credits

  • Hazley Samsudin of GovTech CSG finder

References

Problem Types

  • CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition CWE