CVE-2004-0114 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 re...
MediumCVSS 4.6
EPSS 0.72%
Public exploit
- Published
- Updated
- Exploit status
- Public exploit available
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.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| freebsd | <= 5.2 | after 5.2 | Fixed |
| netbsd | <= 1.3 | after 1.3 | Fixed |
| OpenBSD | <= 2.6 | after 2.6 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| freebsd | <= 5.2 | No fix listed |
| netbsd | <= 1.3 | No fix listed |
| OpenBSD | <= 2.6 | No fix listed |
References
- 20040205 [PINE-CERT-20040201] reference count overflow in shmat() mailing-list
- www.openbsd.org
- 3836 vdb-entry
- www.pine.nl
- 9586 patch vdb-entry vendor-advisory
- bsd-shmat-gain-privileges(15061) vdb-entry