CVE-2004-0077: Linux Kernel

High severity, CVSS 7.2. EPSS: 2.4% chance of exploitation in the next 30 days.

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.

Affected products

  • Linux Linux Kernel: version 2.2.0 only; version 2.2.1 only; version 2.2.2 only; version 2.2.3 only; version 2.2.4 only; version 2.2.5 only; …
  • Netwosix Netwosix Linux: version 1.0 only
  • Red Hat Bigmem Kernel: version 2.4.20-8 only
  • Red Hat Kernel: version 2.4.20-8 only
  • Red Hat Kernel Doc: version 2.4.20-8 only
  • Red Hat Kernel Source: version 2.4.20-8 only
  • Trustix Secure Linux: version 1.5 only; version 2.0 only

Published 2004-03-03. Last modified 2026-06-16.