A memory corruption vulnerability was found in the kernel function kern_getfsstat in MidnightBSD before 1.2.7 and 1.3 through 2020-08-19, and FreeBSD through 11.4, that allows an attacker to trigger an invalid free and crash the system via a crafted size value in conjunction with an invalid mode.
The product writes data past the end, or before the beginning, of the intended buffer.
Link | Tags |
---|---|
https://www.midnightbsd.org/notes/ | release notes vendor advisory |
https://github.com/MidnightBSD/src/blob/1691c07ff4f27b97220a5d65e217341e477f4014/sys/kern/vfs_syscalls.c | third party advisory exploit |
http://www.midnightbsd.org/security/adv/MIDNIGHTBSD-SA-20:01.txt | vendor advisory exploit |
https://www.freebsd.org/security/advisories/FreeBSD-EN-20:18.getfsstat.asc | patch vendor advisory |