百度空间 | 百度首页 
 
查看文章
 
我见过最好的关于最近Linux Kernel空指针利用的分析(CVE-2009-2695)
2009-09-30 10:26
CVE-2009-2695
其实应该是指一些利用空指针的方法,包括绕过SELinux和SELinux没开启的情况

The Linux kernel before 2.6.31-rc7 does not properly prevent mmap operations that target page zero and other low memory addresses, which allows local users to gain privileges by exploiting NULL pointer dereference vulnerabilities, related to (1) the default configuration of the allow_unconfined_mmap_low boolean in SELinux on Red Hat Enterprise Linux (RHEL) 5, (2) an error that causes allow_unconfined_mmap_low to be ignored in the unconfined_t domain, (3) lack of a requirement for the CAP_SYS_RAWIO capability for these mmap operations, and (4) interaction between the mmap_min_addr protection mechanism and certain application programs.


前段时间那个沸沸扬扬的linux kernel null pointer漏洞,折腾了好一段时间。

今天看到cnbeta上一篇很不错的分析

翻了一下,原来是翻译的老外的英文版本

Fun with NULL pointers, part 1


Fun with NULL pointers, part 2


其中关于GCC的那段说明极可能国内某大牛想在blog上写,但转眼就给删了,不过还是让我们的planet给抓到个头,可惜一直无缘得窥真容的那篇文章想要提到的问题。

"This is where the next interesting step in the chain of failures happens: the GCC compiler will, by default, optimize the NULL test out. The reasoning is that, since the pointer has already been dereferenced (and has not been changed), it cannot be NULL. So there is no point in checking it. "

中文版:
"这正是这一系列错误中的下一个:GCC编译器缺省会优化掉 NULL 的彻底检验。原因在于,因为这个指针已经被解引用过了(而且也什么都没发生),所以它不可能是 NULL。所以,没有理由再去检查它了。"

类别:象牙塔 | 添加到搜藏 | 浏览() | 评论 (3)
 
最近读者:
 
网友评论:
1
2009-09-30 10:30 | 回复

 
2
2009-09-30 18:56 | 回复
早就要你们开发planet的抓全文的功能的....
bs你和那谁
 
3
2009-10-09 10:46 | 回复
lwn上有很多高质量的文章
 
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu