BSD Kernel SHMAT System Call Privilege Escalation Vulnerability
FreeBSD has released an advisory with patches to address this issue. Please see the referenced advisory for details.
OpenBSD has released patches for versions 3.3 and 3.4.
NetBSD has released advisory 2004-004 dealing with this issue.
OpenBSD OpenBSD 3.4
OpenBSD OpenBSD 3.3
NetBSD NetBSD 1.6.1