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. 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.