69

为什么内核访问用户数据之前,要做access_ok?

 5 years ago
source link: http://www.10tiao.com/html/606/201806/2664605458/1.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.


原理


先看一段小视频,如果内核访问用户不做access_ok会怎样?

接下来继续深入地做功课!


案例

比如内核的如下commit引入了一个严重的安全漏洞(编号CVE-2017-5123):



危害

一个攻击案例可以参考:

http://www.freebuf.com/vuls/152412.html

《Linux内核Waitid系统调用本地提权漏洞(CVE-2017-5123)的分析与利用》


修复

而内核的这个commit对其进行了修复:

显然,它只是增加了对access_ok的调用。

(完)




About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK