{"id":38227,"date":"2023-01-26T05:49:38","date_gmt":"2023-01-25T21:49:38","guid":{"rendered":"http:\/\/gulass.cn\/?p=38227"},"modified":"2023-01-26T05:49:38","modified_gmt":"2023-01-25T21:49:38","slug":"dirtycow-community-think","status":"publish","type":"post","link":"https:\/\/gulass.cn\/dirtycow-community-think.html","title":{"rendered":"\u5185\u6838\u793e\u533a\u5e94\u5f53\u53cd\u601dDirtyCow \u6f0f\u6d1e"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u7f16\u53f7\u4e3a CVE-2016-5195 \u7684\u6f0f\u6d1e\u5728 Linux \u5185\u6838\u793e\u533a\u4fee\u590d\u5b8c\u6210\u540e\u7684\u6545\u4e8b\u5e76\u6ca1\u6709\u7ed3\u675f\uff0c72\u5c0f\u65f6\u5185\u516c\u5f00\u7684\u53ef\u4f5c\u975e\u7a33\u5b9a\u6f0f\u6d1e\u5229\u7528\u7684 PoC \u5df2\u7ecf\u6709 9 \u4e2a\u3002\u5982\u679c\u662f\u6807\u51c6\u7248\u672c\u7684\u5185\u6838\uff0c\u5199 \/proc\/pid\/mem\uff0cvDSO\uff08\u90e8\u5206\u7248\u672c\uff09\u4ee5\u53ca\u5e38\u89c4 ptrace() \u65b9\u6cd5\u90fd\u53ef\u4ee5\u76f4\u63a5\u5229\u7528\uff0cPaX\/Grsecurity \u5185\u6838\u5bf9\u4e8e\u8fd9\u4e2a PoC \u4e5f\u96be\u4ee5\u9632\u5fa1\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u9488\u5bf9 ptrace\/madvise \u505a seccomp \u7684\u89c4\u5219\u867d\u7136\u53ef\u4ee5\u51cf\u7f13\u653b\u51fb\u8fdb\u5ea6\uff0c\u4f46\u5e26\u6765\u6027\u80fd\u5f00\u9500\u7684\u540c\u65f6\u4e5f\u4e0d\u80fd\u4e00\u52b3\u6c38\u9038\u7684\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u5982\u679c\u6ca1\u6709 RBAC \u7684\u573a\u666f\u8fd8\u662f\u5efa\u8bae\u5347\u7ea7\u3002<\/p>\n <\/p>\n \u8fd9\u4e2a\u6f0f\u6d1e\u5728\u81ea\u7531\u8f6f\u4ef6\u4e16\u754c\u662f\u6bd4\u8f83\u7f55\u89c1\u7684\uff0c\u5bf9 GNU\/Linux \u670d\u52a1\u5668\u6784\u6210\u5de8\u5927\u5a01\u80c1\u548c\u98ce\u9669\u7684\u540c\u65f6\u4e5f\u6210\u4e3a\u4e86 Android root \u6076\u610f\u4ee3\u7801\u94fe\u6761\uff08\u5305\u62ec\u4e00\u952e root \u5de5\u5177\uff09\u4ee5\u53ca IoT \u5165\u4fb5\u7684\u5f3a\u5927\u52a9\u653b\u3002Jonathan Corbet \u7684\u6587\u7ae0\u63d0\u5230 Linux \u5185\u6838\u793e\u533a\u5bf9\u5f85\u5b89\u5168\u7684\u6001\u5ea6\u9700\u8981\u53cd\u601d\uff0c\u8fd9\u4e2a\u4e25\u91cd\u6f0f\u6d1e\u7684\u4fee\u590d\u7adf\u7136\u662f\u548c cleanup \u7684 patch \u4e00\u8d77\u5408\u5e76\u5230\u4e3b\u7ebf\u7684\uff0c\u5373\u4f7f\u662f\u5355\u72ec\u7684\u63d0\u4ea4\u4e5f\u50cf\u5f80\u5e38\u4e00\u6837\u5e76\u672a\u63d0\u4f9b\u66f4\u591a\u7684\u5b89\u5168\u8bc4\u4f30\u4fe1\u606f\u3002<\/p>\n \u8fd9\u79cd\u4e0d\u63d0\u4f9b\u516c\u5f00\u6f0f\u6d1e\u4fe1\u606f\u7684\u505a\u6cd5\u662f\u5728 1990 \u5e74\u4ee3\u7528\u4e8e\u9632\u5fa1\u811a\u672c\u5c0f\u5b50\u83b7\u5f97\u66f4\u591a\u4fe1\u606f\uff0c\u540e\u6765 Linux \u57fa\u91d1\u4f1a\u7684\u201c\u5ba2\u6237\u201d\u4eec\u5e76\u6ca1\u6709\u63d0\u51fa\u6539\u53d8\u7684\u610f\u89c1\u6240\u4ee5\u4e00\u76f4\u6cbf\u7528\u81f3\u4eca\u3002\u4f46 2016 \u5e74\u7684\u4e92\u8054\u7f51\u73af\u5883\u548c 1990 \u5e74\u4ee3\u6709\u7740\u5f88\u5927\u7684\u533a\u522b\uff0c\u5373\u4f7f\u6ca1\u6709\u516c\u5f00\u7684\u6f0f\u6d1e\u4fe1\u606f\u653b\u51fb\u8005\u53ef\u4ee5\u51ed\u7740\u5bf9\u4ee3\u7801\u63d0\u4ea4\u7684\u7406\u89e3\u4e5f\u53ef\u4ee5\u6253\u9020\u51fa\u76f8\u5e94\u7684\u6f0f\u6d1e\u5229\u7528\u3002<\/p>\n \u6216\u8bb8\u5728 Linux \u5185\u6838\u81ea\u9632\u62a4\u9879\u76ee\u5f00\u59cb 10 \u4e2a\u6708\u540e\u9047\u5230\u4e86 DirtyCow \u5e76\u4e0d\u662f\u4ef6\u574f\u4e8b\u3002\u5185\u6838\u81ea\u9632\u62a4\u9879\u76ee\u5c1d\u8bd5\u79fb\u690d PaX\/Grsecurity \u7684\u4e00\u4e9b\u7279\u6027\u7ec8\u7ed3\u6389 Linus Torvlads \u7684\u201cA bug is bug\u201d\u6d41\u6d3e\uff0c\u800c DirtyCow \u6709\u671b\u5728\u751f\u6001\u4e0a\u8ba9 Linux \u57fa\u91d1\u4f1a\u7684\u201c\u5ba2\u6237\u201d\u4eec\u5411 Linux \u5185\u6838\u793e\u533a\u65bd\u538b\uff0c\u8bf4\u4e0d\u5b9a\u4f1a\u6539\u53d8\u201csecurity through obscurity\u201d\u7684\u683c\u5c40\u3002\u6bd5\u7adf\u4eca\u5929\u662f\u4e00\u4e2a\u66f4\u5f00\u653e\u7684\u5e74\u4ee3\uff0c\u4e2a\u4f53\u66f4\u6ce8\u91cd\u5b89\u5168\uff0cGNU\/Linux\uff0cAndroid \u548c IoT \u7684\u76f8\u5173\u5382\u5546\u90fd\u91cd\u5ea6\u4f9d\u8d56\u4e8e Linux \u7684\u5b89\u5168\u6027\uff0cRedHat \u6216\u8005 Linux \u57fa\u91d1\u4f1a\u5728\u5b89\u5168\u65b9\u9762\u60f3\u8981\u4e00\u624b\u906e\u5929\u76f8\u6bd4 2002 \u5e74\u8fd8\u662f\u56f0\u96be\u5f88\u591a\u3002<\/p>\n \n |