CVE-2004-0114

FreeBSD <5.2, NetBSD <1.3, OpenBSD <2.6 - Privilege Escalation

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2004-0114. PoCs published by Joost Pol.

AI-analyzed exploit summary The provided content is a writeup describing a vulnerability in the 'shmat()' system call in the BSD kernel, which could allow local attackers to inject instructions into privileged process memory. It references a security advisory and a link to a binary exploit but does not contain actual exploit code.

Description

The shmat system call in the System V Shared Memory interface for FreeBSD 5.2 and earlier, NetBSD 1.3 and earlier, and OpenBSD 2.6 and earlier, does not properly decrement a shared memory segment's reference count when the vm_map_find function fails, which could allow local users to gain read or write access to a portion of kernel memory and gain privileges.

Exploits (1)

exploitdb WRITEUP VERIFIED
by Joost Pol · textlocalbsd
https://www.exploit-db.com/exploits/23655

The provided content is a writeup describing a vulnerability in the 'shmat()' system call in the BSD kernel, which could allow local attackers to inject instructions into privileged process memory. It references a security advisory and a link to a binary exploit but does not contain actual exploit code.

Classification
Writeup 90%
Attack Type
Lpe
Complexity
Moderate
Reliability
Theoretical
Target: BSD kernel (versions affected by CVE-2004-0114)
No auth needed
Prerequisites: Local access to a vulnerable BSD system
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →

References (8)

Core 8
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/15061
Patch, Vendor Advisory vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/9586
Various Sources x_refsource_confirm
http://www.openbsd.org/errata33.html#sysvshm
Various Sources x_refsource_misc
http://www.pine.nl/press/pine-cert-20040201.txt
Third Party Advisory, VDB Entry vdb-entry x_refsource_osvdb
http://www.osvdb.org/3836
Mailing List mailing-list x_refsource_bugtraq
http://marc.info/?l=bugtraq&m=107608375207601&w=2
Patch, Vendor Advisory vendor-advisory x_refsource_freebsd
ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/FreeBSD-SA-04:02.shmat.asc
Vendor Advisory vendor-advisory x_refsource_netbsd
ftp://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2004-004.txt.asc

Scores

EPSS 0.0072
EPSS Percentile 49.6%

Details

Status published
Products (3)
freebsd/freebsd < 5.2
netbsd/netbsd < 1.3
openbsd/openbsd < 2.6
Published Mar 03, 2004
Tracked Since Feb 18, 2026