mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 18:50:31 -04:00
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 |
||
|---|---|---|
| .. | ||
| fdt | ||
| isa | ||
| macio | ||
| midi | ||
| pci | ||
| pcm | ||
| usb | ||
| driver.c | ||
| dummy.c | ||