FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

FreeBSD -- Buffer overflow in handling of UNIX socket addresses

Affected packages
7.3 <= FreeBSD < 7.3_8
7.4 <= FreeBSD < 7.4_4
8.1 <= FreeBSD < 8.1_6
8.2 <= FreeBSD < 8.2_4

Details

VuXML ID f56390a4-4638-11e1-9f47-00e0815b8da8
Discovery 2011-09-28
Entry 2012-01-29

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.

References

FreeBSD Advisory SA-11:05.unix