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.
The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.
Link | Tags |
---|---|
https://www.freebsd.org/security/advisories/FreeBSD-SA-14:27.stdio.asc | vendor advisory |
https://support.apple.com/HT205212 | vendor advisory |
http://lists.apple.com/archives/security-announce/2015/Sep/msg00008.html | vendor advisory |
https://svnweb.freebsd.org/base?view=revision&revision=275665 | |
https://support.apple.com/HT205267 | vendor advisory |
http://lists.apple.com/archives/security-announce/2015/Sep/msg00001.html | vendor advisory |