Description
The __sflush function in fflush.c in stdio in libc in FreeBSD 10.1 and the kernel in Apple iOS before 9 mishandles failures of the write system call, which allows context-dependent attackers to execute arbitrary code or cause a denial of service (heap-based buffer overflow) via a crafted application.
References
- FreeBSD-SA-14:27 vendor-advisory
- https://support.apple.com/HT205212
- APPLE-SA-2015-09-30-3 vendor-advisory
- https://svnweb.freebsd.org/base?view=revision&revision=275665
- https://support.apple.com/HT205267
- APPLE-SA-2015-09-16-1 vendor-advisory