CVE-2004-0077
The do_mremap function for the mremap system call in Linux 2.2 to 2.2.25, 2.4 to 2.4.24, and 2.6 to 2.6.2, does not properly check the…
- 7.2HighCVSS base score
- 2.5%Exploitation in 30 daysEPSS · top 15% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 2Public exploitsMetasploit, Nuclei and Exploit-DB
Description
The do_mremap function for the mremap system call in Linux 2.2 to 2.2.25, 2.4 to 2.4.24, and 2.6 to 2.6.2, does not properly check the return value from the do_munmap function when the maximum number of VMA descriptors is exceeded, which allows local users to gain root privileges, a different vulnerability than CAN-2003-0985.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list 2 Exploit-DB entries for it.
Show the exploits2
Exploit-DB2 entries
- Linux Kernel 2.2.25/2.4.24/2.6.2 - 'mremap()' Local Privilege Escalation (Exploit-DB entry) (opens in a new tab)
EDB-ID 160local, linuxpublished 1 Mar 2004Verified
- Linux Kernel 2.2.25/2.4.24/2.6.2 - 'mremap()' Validator (Exploit-DB entry) (opens in a new tab)
EDB-ID 154local, linuxpublished 18 Feb 2004Verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By mitre
- 8 months later
· 8 months later
Published
- 20 years later
· 20 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | High7.2 | AV:L/AC:L/Au:N/C:C/I:C/A:C |
- EPSS (exploitation in 30 days)
- 2.5% · top 15% of all CVEs (9 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.2.
Affected products
n/a
- affected n/a
References
36
- SSA:2004-049 (opens in a new tab)vendor-advisoryx_refsource_SLACKWAREx_transferred
- DSA-450 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- DSA-440 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- RHSA-2004:069 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- O-082 (opens in a new tab)third-party-advisorygovernment-resourcex_refsource_CIACx_transferred
- FEDORA-2004-079 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- DSA-439 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- DSA-475 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- CLA-2004:820 (opens in a new tab)vendor-advisoryx_refsource_CONECTIVAx_transferred
- RHSA-2004:106 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- SuSE-SA:2004:005 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- DSA-442 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- RHSA-2004:065 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- DSA-470 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- MDKSA-2004:015 (opens in a new tab)vendor-advisoryx_refsource_MANDRAKEx_transferred
- 9686 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- DSA-438 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- DSA-514 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- http://isec.pl/vulnerabilities/isec-0014-mremap-unmap.txt (opens in a new tab)x_refsource_MISCx_transferred
- DSA-456 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- oval:org.mitre.oval:def:837 (opens in a new tab)vdb-entrysignaturex_refsource_OVALx_transferred
- GLSA-200403-02 (opens in a new tab)vendor-advisoryx_refsource_GENTOOx_transferred
- DSA-441 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- 20040218 Second critical mremap() bug found in all Linux kernels (opens in a new tab)mailing-listx_refsource_VULNWATCHx_transferred
- DSA-454 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- linux-mremap-gain-privileges(15244) (opens in a new tab)vdb-entryx_refsource_XFx_transferred
- 20040218 Second critical mremap() bug found in all Linux kernels (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- DSA-444 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- RHSA-2004:066 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- 2004-0008 (opens in a new tab)vendor-advisoryx_refsource_TRUSTIXx_transferred
- oval:org.mitre.oval:def:825 (opens in a new tab)vdb-entrysignaturex_refsource_OVALx_transferred
- DSA-453 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- 3986 (opens in a new tab)vdb-entryx_refsource_OSVDBx_transferred
- VU#981222 (opens in a new tab)third-party-advisoryx_refsource_CERT-VNx_transferred
- DSA-466 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- 2004-0007 (opens in a new tab)vendor-advisoryx_refsource_TRUSTIXx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2004-0077 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2004-0077)Record last updated .