FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

FreeBSD -- Privilege escalation via sound software buffer resizing

Affected packages
15.1 <= FreeBSD-kernel < 15.1_7
14.5 <= FreeBSD-kernel < 14.5_4
14.4 <= FreeBSD-kernel < 14.4_13

Details

VuXML ID ac524394-e312-11f1-a3e1-bc241121aa0a
Discovery 2026-11-17
Entry 2026-11-18

Problem Description:

When reading from or writing to an audio channel, the sound(4) driver dropped the channel lock while copying data between the channel's software buffer and userspace. The buffer resize path did not account for this, so a concurrent resize could free the buffer while the copy was in progress.

Impact:

An unprivileged local user with access to a /dev/dsp* sound device can exploit this race to trigger a use-after-free in the kernel and escalate privileges.

References

CVE Name CVE-2026-127741
FreeBSD Advisory SA-26:88.sound