{"id":"CVE-2004-0114","aliases":["EUVD-2004-0114","GHSA-5j5g-mmc4-hqmg"],"status":"published","title":"The shmat system call in the System V Shared Memory interface for FreeBSD 5.2 and earlier, NetBSD...","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.","severity":{"version":"2.0","score":4.6,"vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.00724,"percentile":0.54312,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"published":"2004-03-03T05:00:00Z","modified":"2026-06-16T22:04:58Z","exploits":[{"source":"exploitdb","id":"EDB-23655","title":"BSD - SHMAT System Call Privilege Escalation","type":"local","platform":"bsd","date":"2004-02-05","verified":true,"url":"https://www.exploit-db.com/exploits/23655"}],"products":[{"vendor":"freebsd","product":"freebsd"},{"vendor":"netbsd","product":"netbsd"},{"vendor":"openbsd","product":"openbsd"}],"references":[{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/15061","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://www.securityfocus.com/bid/9586","tags":["vdb-entry","x_refsource_BID","x_transferred","Patch","Vendor Advisory"]},{"url":"http://www.osvdb.org/3836","tags":["vdb-entry","x_refsource_OSVDB","x_transferred"]},{"url":"http://www.openbsd.org/errata33.html#sysvshm","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://marc.info/?l=bugtraq\u0026m=107608375207601\u0026w=2","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/FreeBSD-SA-04:02.shmat.asc","tags":["vendor-advisory","x_refsource_FREEBSD","x_transferred","Patch","Vendor Advisory"]},{"url":"http://www.pine.nl/press/pine-cert-20040201.txt","tags":["x_refsource_MISC","x_transferred"]},{"url":"ftp://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2004-004.txt.asc","tags":["vendor-advisory","x_refsource_NETBSD","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-0114"},{"url":"https://github.com/advisories/GHSA-5j5g-mmc4-hqmg"}],"sources":{"cve":[{"id":"CVE-2004-0114","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.","status":"published","published":"2004-09-01T04:00:00Z","modified":"2024-08-08T00:10:03.552Z","updated_at":"2026-11-02T14:34:55.098814Z"}],"euvd":[{"id":"EUVD-2004-0114","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.","status":"published","published":"2004-09-01T04:00:00Z","modified":"2024-08-08T00:10:03Z","updated_at":"2026-11-03T01:15:20.586153Z"}],"ghsa":[{"id":"GHSA-5j5g-mmc4-hqmg","title":"The shmat system call in the System V Shared Memory interface for FreeBSD 5.2 and earlier, NetBSD...","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.","status":"published","published":"2022-05-03T03:12:55Z","modified":"2023-02-01T05:01:06Z","updated_at":"2026-11-02T14:49:40.106969Z"}],"nvd":[{"id":"CVE-2004-0114","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.","status":"published","published":"2004-03-03T05:00:00Z","modified":"2026-06-16T22:04:58.17Z","cvss":[{"version":"2.0","score":4.6,"vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:00:49.729639Z"}]}}
