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…
Check your servers for CVE-2004-0077
The Vulnpocalypse agent sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2004-0077 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 2.45%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 85.1% of all scored CVEs. Scores of 27 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2004-0077 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2004-0077RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2004-0077Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2004-0077
trivy image --scanners vuln IMAGE | grep CVE-2004-0077
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the agent.
References
Advisories
- SSA:2004-049 slackware.com · vendor advisory
- DSA-450 debian.org · vendor advisory
- DSA-440 debian.org · vendor advisory
- RHSA-2004:069 redhat.com · vendor advisory
- O-082 ciac.org · third party advisory, government resource
- FEDORA-2004-079 fedoranews.org · vendor advisory
- DSA-439 debian.org · vendor advisory
- DSA-475 debian.org · vendor advisory
- CLA-2004:820 distro.conectiva.com.br · vendor advisory
- RHSA-2004:106 redhat.com · vendor advisory
- SuSE-SA:2004:005 novell.com · vendor advisory
- DSA-442 debian.org · vendor advisory
16 more
- RHSA-2004:065 redhat.com · vendor advisory
- DSA-470 debian.org · vendor advisory
- MDKSA-2004:015 frontal2.mandriva.com · vendor advisory
- DSA-438 debian.org · vendor advisory
- DSA-514 debian.org · vendor advisory
- DSA-456 debian.org · vendor advisory
- GLSA-200403-02 security.gentoo.org · vendor advisory
- DSA-441 debian.org · vendor advisory
- DSA-454 debian.org · vendor advisory
- DSA-444 debian.org · vendor advisory
- RHSA-2004:066 redhat.com · vendor advisory
- 2004-0008 marc.info · vendor advisory
- DSA-453 debian.org · vendor advisory
- VU#981222 kb.cert.org · third party advisory
- DSA-466 debian.org · vendor advisory
- 2004-0007 marc.info · vendor advisory
Other references
- 9686 securityfocus.com · vdb entry
- http://isec.pl/vulnerabilities/isec-0014-mremap-unmap.txt isec.pl
- oval:org.mitre.oval:def:837 oval.cisecurity.org · vdb entry, signature
- 20040218 Second critical mremap() bug found in all Linux kernels archives.neohapsis.com · mailing list
- linux-mremap-gain-privileges(15244) exchange.xforce.ibmcloud.com · vdb entry
- 20040218 Second critical mremap() bug found in all Linux kernels marc.info · mailing list
- oval:org.mitre.oval:def:825 oval.cisecurity.org · vdb entry, signature
- 3986 osvdb.org · vdb entry
Source: the record CVE-2004-0077 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse