FreeBSD -- Buffer overflow in handling of UNIX socket addresses

2011-09-28T00:00:00
ID F56390A4-4638-11E1-9F47-00E0815B8DA8
Type freebsd
Reporter FreeBSD
Modified 2011-09-28T00:00:00

Description

Problem Description: When a UNIX-domain socket is attached to a location using the bind(2) system call, the length of the provided path is not validated. Later, when this address was returned via other system calls, it is copied into a fixed-length buffer. Linux uses a larger socket address structure for UNIX-domain sockets than FreeBSD, and the FreeBSD's linux emulation code did not translate UNIX-domain socket addresses into the correct size of structure.