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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 3.0 | kernel-image-2.2.10-powerpc-apus | 2.2.10-13woody1 | DSA-466 |
| Debian 3.0 | kernel-image-2.2.20-amiga | 2.20-4 | DSA-453 |
| Debian 3.0 | kernel-image-2.2.20-i386 | 2.2.20-5woody5 | DSA-453 |
| Debian 3.0 | kernel-image-2.2.20-mac +4 | 2.2.20-3 | DSA-453 |
| Debian 3.0 | kernel-image-2.2.20-reiserfs-i386 | 2.2.20-4woody1 | DSA-453 |
| Debian 3.0 | kernel-image-2.2.22-alpha | 2.2.22-2 | DSA-454 |
| Debian 3.0 | kernel-image-2.4.16-lart +2 | 2.4.16-20040204 | DSA-439 |
| Debian 3.0 | kernel-image-2.4.17-hppa | 32.3 | DSA-470 |
| Debian 3.0 | kernel-image-2.4.17-ia64 | 011226.16 | DSA-444 |
| Debian 3.0 | kernel-image-2.4.17-s390 | 2.4.17-2.woody.3 | DSA-442 |
| Debian 3.0 | kernel-image-2.4.18-1-alpha | 2.4.18-14 | DSA-438 |
| Debian 3.0 | kernel-image-2.4.18-1-i386 | 2.4.18-12.2 | DSA-438 |
| Debian 3.0 | kernel-image-2.4.18-hppa | 62.1 | DSA-475 |
| Debian 3.0 | kernel-image-2.4.18-i386bf | 2.4.18-5woody7 | DSA-438 |
| Debian 3.0 | kernel-patch-2.2.19-arm +2 | 20040303 | DSA-456 |
| Debian 3.0 | kernel-patch-2.2.20-powerpc | 2.2.20-3woody1 | DSA-453 |
| Debian 3.0 | kernel-patch-2.4.16-arm | 20040204 | DSA-439 |
| Debian 3.0 | kernel-patch-2.4.17-mips | 2.4.17-0.020226.2.woody5 | DSA-441 |
| Debian 3.0 | kernel-patch-2.4.17-s390 | 0.0.20020816-0.woody.2 | DSA-442 |
| Debian 3.0 | kernel-patch-2.4.18-powerpc | 2.4.18-1woody4 | DSA-438 |
| Debian 3.0 | kernel-patch-2.4.19-mips | 2.4.19-4.woody1 | DSA-450 |
| Debian 3.0 | kernel-source-2.2.10 | 2.2.10-2 | DSA-466 |
| Debian 3.0 | kernel-source-2.2.19 | 2.2.19.1-4woody1 | DSA-456 |
| Debian 3.0 | kernel-source-2.2.20 | 2.2.20-5woody3 | DSA-514, DSA-453 |
| Debian 3.0 | kernel-source-2.2.22 | 2.2.22-1woody1 | DSA-454 |
| Debian 3.0 | kernel-source-2.4.17 +1 | 2.4.17-4 | DSA-440 |
| Debian 3.0 | kernel-source-2.4.18 | 2.4.18-14.2 | DSA-438 |
| Debian 3.0 | kernel-source-2.4.19 | 2.4.19-0.020911.1.woody3 | DSA-450 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 3 | kernel +8 | 2.4.21-9.0.1.EL | RHSA-2004:066 |
| RHEL 3 | s390utils | 2:1.2.4-3 | RHSA-2004:066 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 2
- Linux Kernel 2.2.25/2.4.24/2.6.2 - 'mremap()' Local Privilege Escalation EDB-160 · local · Mar 1, 2004 · verified
- Linux Kernel 2.2.25/2.4.24/2.6.2 - 'mremap()' Validator EDB-154 · local · Feb 18, 2004 · verified
GitHub 1 repository
-
0b0111100/2004 ★ 0 · Sep 7, 2026
Linux Kernel Exploits -> CVE-2004-0077 + CVE-2004-1235 + caps_to_root
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 15
- RHSA-2004:066 Red Hat Security Advisory: kernel security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DSA-454 linux-kernel-2.2.22-alpha - failing function and TLB flush Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-470 linux-kernel-2.4.17-hppa - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-466 linux-kernel-2.2.10-powerpc-apus - failing function and TLB flush Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-439 linux-kernel-2.4.16-arm - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-444 linux-kernel-2.4.17-ia64 - missing function return value check Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-456 linux-kernel-2.2.19-arm - failing function and TLB flush Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-514 kernel-image-sparc-2.2 - failing function and TLB flush Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-438 linux-kernel-2.4.18-alpha+i386+powerpc - missing function return value check Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-450 linux-kernel-2.4.19-mips - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-442 linux-kernel-2.4.17-s390 - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-441 linux-kernel-2.4.17-mips+mipsel - missing function return value check Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-475 linux-kernel-2.4.18-hppa - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-453 linux-kernel-2.2.20-i386+m68k+powerpc - failing function and TLB flush Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-440 linux-kernel-2.4.17-powerpc-apus - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
References
- SSA:2004-049 vendor-advisory
- DSA-450 vendor-advisory
- DSA-440 vendor-advisory
- RHSA-2004:069 vendor-advisory
- O-082 third-party-advisory government-resource
- FEDORA-2004-079 vendor-advisory
- DSA-439 vendor-advisory
- DSA-475 vendor-advisory
- CLA-2004:820 vendor-advisory
- RHSA-2004:106 vendor-advisory
- SuSE-SA:2004:005 vendor-advisory
- DSA-442 vendor-advisory
- RHSA-2004:065 vendor-advisory
- DSA-470 vendor-advisory
- MDKSA-2004:015 vendor-advisory
- 9686 vdb-entry
- DSA-438 vendor-advisory
- DSA-514 vendor-advisory
- http://isec.pl/vulnerabilities/isec-0014-mremap-unmap.txt
- DSA-456 vendor-advisory
- oval:org.mitre.oval:def:837 vdb-entry signature
- GLSA-200403-02 vendor-advisory
- DSA-441 vendor-advisory
- 20040218 Second critical mremap() bug found in all Linux kernels mailing-list
- DSA-454 vendor-advisory
- linux-mremap-gain-privileges(15244) vdb-entry
- 20040218 Second critical mremap() bug found in all Linux kernels mailing-list
- DSA-444 vendor-advisory
- RHSA-2004:066 vendor-advisory
- 2004-0008 vendor-advisory
- oval:org.mitre.oval:def:825 vdb-entry signature
- DSA-453 vendor-advisory
- 3986 vdb-entry
- VU#981222 third-party-advisory
- DSA-466 vendor-advisory
- 2004-0007 vendor-advisory