{"id":43128,"date":"2024-10-04T18:01:31","date_gmt":"2024-10-04T10:01:31","guid":{"rendered":"https:\/\/server.hk\/cnblog\/43128\/"},"modified":"2024-10-04T18:01:31","modified_gmt":"2024-10-04T10:01:31","slug":"centos-7-%e7%99%bc%e5%b8%83%e5%85%a7%e6%a0%b8%e4%bf%ae%e5%be%a9%e8%a3%9c%e4%b8%81-%e4%bf%ae%e5%be%a9dirty-cow%e6%8f%90%e6%ac%8a%e6%bc%8f%e6%b4%9e","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/43128\/","title":{"rendered":"CentOS 7 \u767c\u5e03\u5167\u6838\u4fee\u5fa9\u88dc\u4e01 \u4fee\u5fa9\u201cDirty COW\u201d\u63d0\u6b0a\u6f0f\u6d1e"},"content":{"rendered":"<h1 id=\"centos-7-%e7%99%bc%e5%b8%83%e5%85%a7%e6%a0%b8%e4%bf%ae%e5%be%a9%e8%a3%9c%e4%b8%81-%e4%bf%ae%e5%be%a9dirty-cow%e6%8f%90%e6%ac%8a%e6%bc%8f%e6%b4%9e-oapwZExxVQ\">CentOS 7 \u767c\u5e03\u5167\u6838\u4fee\u5fa9\u88dc\u4e01 \u4fee\u5fa9\u201cDirty COW\u201d\u63d0\u6b0a\u6f0f\u6d1e<\/h1>\n<p>\u5728\u8cc7\u8a0a\u5b89\u5168\u9818\u57df\uff0c\u6f0f\u6d1e\u7684\u767c\u73fe\u8207\u4fee\u5fa9\u662f\u78ba\u4fdd\u7cfb\u7d71\u5b89\u5168\u7684\u91cd\u8981\u74b0\u7bc0\u3002\u6700\u8fd1\uff0cCentOS 7 \u767c\u5e03\u4e86\u4e00\u500b\u5167\u6838\u4fee\u5fa9\u88dc\u4e01\uff0c\u5c08\u9580\u91dd\u5c0d\u88ab\u7a31\u70ba\u201cDirty COW\u201d\u7684\u63d0\u6b0a\u6f0f\u6d1e\u9032\u884c\u4fee\u5fa9\u3002\u9019\u500b\u6f0f\u6d1e\u7684\u5f71\u97ff\u7bc4\u570d\u5ee3\u6cdb\uff0c\u5c0d\u65bc\u4f7f\u7528 CentOS 7 \u7684\u4f3a\u670d\u5668\u4f86\u8aaa\uff0c\u53ca\u6642\u66f4\u65b0\u662f\u81f3\u95dc\u91cd\u8981\u7684\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%afdirty-cow%e6%bc%8f%e6%b4%9e%ef%bc%9f-oapwZExxVQ\">\u4ec0\u9ebc\u662f\u201cDirty COW\u201d\u6f0f\u6d1e\uff1f<\/h2>\n<p>\u201cDirty COW\u201d\u6f0f\u6d1e\u7684\u5168\u540d\u662f\u201cDirty Copy-On-Write\u201d\uff0c\u9019\u662f\u4e00\u500b\u5f71\u97ff Linux \u6838\u5fc3\u7684\u6f0f\u6d1e\u3002\u8a72\u6f0f\u6d1e\u7684\u5b58\u5728\u4f7f\u5f97\u672a\u7d93\u6388\u6b0a\u7684\u7528\u6236\u80fd\u5920\u7372\u5f97\u7cfb\u7d71\u7684\u6839\u6b0a\u9650\uff0c\u5f9e\u800c\u5c0d\u7cfb\u7d71\u9032\u884c\u4efb\u610f\u64cd\u4f5c\u3002\u9019\u500b\u6f0f\u6d1e\u7684\u6839\u672c\u539f\u56e0\u5728\u65bc Linux \u6838\u5fc3\u5728\u8655\u7406\u5167\u5b58\u9801\u9762\u6642\u7684\u932f\u8aa4\uff0c\u5c0e\u81f4\u653b\u64ca\u8005\u53ef\u4ee5\u5229\u7528\u9019\u4e00\u9ede\u4f86\u4fee\u6539\u53ea\u8b80\u5167\u5b58\u9801\u9762\u3002<\/p>\n<h2 id=\"%e6%bc%8f%e6%b4%9e%e7%9a%84%e5%bd%b1%e9%9f%bf-oapwZExxVQ\">\u6f0f\u6d1e\u7684\u5f71\u97ff<\/h2>\n<p>\u6839\u64da\u5b89\u5168\u7814\u7a76\u4eba\u54e1\u7684\u5831\u544a\uff0c\u9019\u500b\u6f0f\u6d1e\u53ef\u4ee5\u88ab\u5229\u7528\u4f86\u57f7\u884c\u4efb\u610f\u4ee3\u78bc\uff0c\u751a\u81f3\u53ef\u4ee5\u4f7f\u653b\u64ca\u8005\u7372\u5f97\u7cfb\u7d71\u7684\u5b8c\u5168\u63a7\u5236\u6b0a\u3002\u9019\u5c0d\u65bc\u4f3a\u670d\u5668\u7ba1\u7406\u54e1\u4f86\u8aaa\u662f\u4e00\u500b\u56b4\u91cd\u7684\u5b89\u5168\u5a01\u8105\uff0c\u7279\u5225\u662f\u5728\u591a\u7528\u6236\u74b0\u5883\u4e2d\uff0c\u653b\u64ca\u8005\u53ef\u4ee5\u5229\u7528\u6b64\u6f0f\u6d1e\u4f86\u63d0\u5347\u81ea\u5df1\u7684\u6b0a\u9650\uff0c\u9032\u800c\u5c0d\u7cfb\u7d71\u9020\u6210\u640d\u5bb3\u3002<\/p>\n<h2 id=\"centos-7-%e7%9a%84%e4%bf%ae%e5%be%a9%e6%8e%aa%e6%96%bd-oapwZExxVQ\">CentOS 7 \u7684\u4fee\u5fa9\u63aa\u65bd<\/h2>\n<p>\u70ba\u4e86\u61c9\u5c0d\u9019\u4e00\u5b89\u5168\u5a01\u8105\uff0cCentOS 7 \u5718\u968a\u8fc5\u901f\u767c\u5e03\u4e86\u5167\u6838\u4fee\u5fa9\u88dc\u4e01\u3002\u7528\u6236\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u547d\u4ee4\u4f86\u66f4\u65b0\u7cfb\u7d71\uff1a<\/p>\n<pre><code>sudo yum update kernel<\/code><\/pre>\n<p>\u66f4\u65b0\u5b8c\u6210\u5f8c\uff0c\u5efa\u8b70\u91cd\u555f\u7cfb\u7d71\u4ee5\u78ba\u4fdd\u65b0\u5167\u6838\u751f\u6548\u3002\u7528\u6236\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u6aa2\u67e5\u7576\u524d\u5167\u6838\u7248\u672c\uff1a<\/p>\n<pre><code>uname -r<\/code><\/pre>\n<p>\u5982\u679c\u986f\u793a\u7684\u7248\u672c\u865f\u662f\u66f4\u65b0\u5f8c\u7684\u7248\u672c\uff0c\u5247\u8868\u793a\u4fee\u5fa9\u5df2\u6210\u529f\u61c9\u7528\u3002<\/p>\n<h2 id=\"%e5%a6%82%e4%bd%95%e9%98%b2%e7%af%84%e6%9c%aa%e4%be%86%e7%9a%84%e6%bc%8f%e6%b4%9e-oapwZExxVQ\">\u5982\u4f55\u9632\u7bc4\u672a\u4f86\u7684\u6f0f\u6d1e<\/h2>\n<p>\u9664\u4e86\u53ca\u6642\u66f4\u65b0\u5167\u6838\u5916\uff0c\u4f3a\u670d\u5668\u7ba1\u7406\u54e1\u9084\u61c9\u8a72\u63a1\u53d6\u5176\u4ed6\u5b89\u5168\u63aa\u65bd\u4f86\u9632\u7bc4\u672a\u4f86\u7684\u6f0f\u6d1e\u3002\u4f8b\u5982\uff1a<\/p>\n<ul>\n<li>\u5b9a\u671f\u6aa2\u67e5\u7cfb\u7d71\u66f4\u65b0\uff0c\u78ba\u4fdd\u6240\u6709\u8edf\u4ef6\u90fd\u662f\u6700\u65b0\u7248\u672c\u3002<\/li>\n<li>\u4f7f\u7528\u9632\u706b\u7246\u548c\u5165\u4fb5\u6aa2\u6e2c\u7cfb\u7d71\u4f86\u76e3\u63a7\u53ef\u7591\u6d3b\u52d5\u3002<\/li>\n<li>\u9650\u5236\u7528\u6236\u6b0a\u9650\uff0c\u78ba\u4fdd\u53ea\u6709\u5fc5\u8981\u7684\u7528\u6236\u64c1\u6709\u9ad8\u6b0a\u9650\u3002<\/li>\n<li>\u5b9a\u671f\u5099\u4efd\u6578\u64da\uff0c\u4ee5\u9632\u6b62\u6578\u64da\u4e1f\u5931\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b5%90%e8%ab%96-oapwZExxVQ\">\u7d50\u8ad6<\/h2>\n<p>\u7e3d\u4e4b\uff0c\u201cDirty COW\u201d\u6f0f\u6d1e\u5c0d\u65bc CentOS 7 \u7528\u6236\u4f86\u8aaa\u662f\u4e00\u500b\u4e0d\u5bb9\u5ffd\u8996\u7684\u5b89\u5168\u5a01\u8105\u3002\u53ca\u6642\u66f4\u65b0\u5167\u6838\u4fee\u5fa9\u88dc\u4e01\u662f\u4fdd\u8b77\u7cfb\u7d71\u5b89\u5168\u7684\u7b2c\u4e00\u6b65\u3002\u6b64\u5916\uff0c\u5be6\u65bd\u5176\u4ed6\u5b89\u5168\u63aa\u65bd\u4e5f\u80fd\u6709\u6548\u964d\u4f4e\u672a\u4f86\u6f0f\u6d1e\u5e36\u4f86\u7684\u98a8\u96aa\u3002\u5c0d\u65bc\u9700\u8981\u7a69\u5b9a\u548c\u5b89\u5168\u7684\u4f3a\u670d\u5668\u74b0\u5883\u7684\u7528\u6236\uff0c\u9078\u64c7\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u89e3\u6c7a\u65b9\u6848\u81f3\u95dc\u91cd\u8981\u3002\u4e86\u89e3\u66f4\u591a\u95dc\u65bc <a href=\"https:\/\/server.hk\">\u9999\u6e2f\u4f3a\u670d\u5668<\/a> \u7684\u8cc7\u8a0a\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CentOS 7 releases a kernel patch to fix the &#8220;Dirty COW&#8221; privilege escalation vulnerability, enhancing system security and stability.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-43128","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/43128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=43128"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/43128\/revisions"}],"predecessor-version":[{"id":43129,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/43128\/revisions\/43129"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=43128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=43128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=43128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}