| 1b775b9e | 01-Jun-2026 |
Mark Johnston <markj@FreeBSD.org> |
sound: Fix software buffer lifetime issues
The channel buffer mapped by dsp_mmap_single() may be freed when the device handle is closed, but the mapping persists beyond that, allowing userspace to r
sound: Fix software buffer lifetime issues
The channel buffer mapped by dsp_mmap_single() may be freed when the device handle is closed, but the mapping persists beyond that, allowing userspace to read or write memory owned by a different consumer.
Fix the problem by adding a reference counter to the sound buffer. Define pager ops for the VM object returned by dsp_mmap_single() and use them to manage the extra reference.
Add a regression test.
Approved by: so Security: FreeBSD-SA-26:27.sound Security: CVE-2026-49417 Reported by: Lexpl0it, 75Acol, Liyw979, Rob1n Reviewed by kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57393
show more ...
|
| 52a0f967 | 26-Apr-2025 |
Christos Margiolis <christos@FreeBSD.org> |
sound tests: Fetch HWBUF_RATE and SWBUF_RATE in sndstat_nv
Introduced in 19ec522d6dc1 ("sound: Export hardware and software buffer sample rate in sndstat nvlist").
Sponsored by: The FreeBSD Foundat
sound tests: Fetch HWBUF_RATE and SWBUF_RATE in sndstat_nv
Introduced in 19ec522d6dc1 ("sound: Export hardware and software buffer sample rate in sndstat nvlist").
Sponsored by: The FreeBSD Foundation MFC after: 1 week
show more ...
|