{"id":80993,"date":"2023-09-30T13:58:06","date_gmt":"2023-09-30T05:58:06","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=80993"},"modified":"2023-09-30T13:58:06","modified_gmt":"2023-09-30T05:58:06","slug":"linux-kernel-issue","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-kernel-issue.html","title":{"rendered":"Linux\u5185\u6838\u5b58\u5728\u7f3a\u9677\u53d1\u884c\u9677\u56f0\u5883"},"content":{"rendered":"
\u8bbe\u7f6e\u7279\u8272\u56fe\u7247<\/div>\n\n\n\n
\u5bfc\u8bfb<\/td>\nLinux\u5185\u6838\u5df2\u7ecf\u4fee\u590d\u4e86\u672c\u5730\u7279\u6743esclation\u7f3a\u9677\uff0c\u4f46\u662f\u51e0\u4e2a\u4e0a\u6e38\u5206\u53d1\u7248\u672c\u4f8b\u5982Red Hat\uff0cCanonical\u548cDebian\u53d1\u884c\u7248\u5c1a\u672a\u53d1\u5e03\u66f4\u65b0\u3002\u7ba1\u7406\u5458\u5e94\u8ba1\u5212\u51cf\u8f7bLinux\u670d\u52a1\u5668\u548c\u5de5\u4f5c\u7ad9\u672c\u8eab\u7684\u6f0f\u6d1e\uff0c\u5e76\u76d1\u63a7\u5176\u66f4\u65b0\u8ba1\u5212\u7684\u53d1\u5e03\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

\u5185\u6838\u7f3a\u9677\u4ecd\u5b58\u5728<\/strong><\/div>\n

\u5728Linux\u5185\u68384.10.1(CVE-2017-2636)\u7684n_hdlc\u9a71\u52a8\u7a0b\u5e8f(drivers \/ tty \/ n_hdlc.c)\u4e2d\u7684\u7ade\u4e89\u6761\u4ef6\u7f3a\u9677\u53ef\u80fd\u5bfc\u81f4\u5728\u8bbf\u95een_hdlc.tbuf\u65f6n_hdlc_release()\u51fa\u73b0\u53cc\u91cd\u9519\u8bef\uff0c\u8fd9\u662f\u4fc4\u7f57\u65af\u7684\u6280\u672f\u7814\u7a76\u5458Alexander Popov\u53d1\u73b0\u548c\u62a5\u544a\u7684\u7f3a\u9677\u3002\u672c\u5730\u65e0\u7279\u6743\u7528\u6237\u80fd\u591f\u5728tty\u8bbe\u5907\u4e0a\u8bbe\u7f6eHDLC\u7ebf\u8def\u89c4\u5219\uff0c\u4ece\u800c\u5229\u7528\u6b64\u7f3a\u9677\u83b7\u5f97\u53d7\u5f71\u54cd\u7cfb\u7edf\u7684\u66f4\u591a\u6743\u9650\u6216\u5bfc\u81f4\u62d2\u7edd\u670d\u52a1\u6761\u4ef6\u3002
\n\u8be5\u6f0f\u6d1e\u5728\u5e38\u89c1\u6f0f\u6d1e\u8bc4\u5206\u7cfb\u7edf(CVSS)3.0\u4e0b\u7684\u57fa\u672c\u5206\u6570\u4e3a7.8\uff0c\u4e0d\u9700\u8981\u7531\u4efb\u4f55\u7528\u6237\u4ea4\u4e92\u89e6\u53d1\uff0c\u653b\u51fb\u590d\u6742\u6027\u88ab\u8ba4\u4e3a\u8f83\u4f4e\uff0c\u5229\u7528\u8fd9\u4e2a\u7f3a\u9677\u4e0d\u9700\u8981\u5728\u76ee\u6807\u7cfb\u7edf\u4e2d\u653b\u51fb\u4e13\u95e8\u7684\u786c\u4ef6\u6216\u5916\u8bbe\u3002\u5728CVSS\u4e0b\uff0c\u8be5\u6f0f\u6d1e\u88ab\u89c6\u4e3a\u5177\u6709\u8f83\u9ad8\u4e25\u91cd\u6027\u3002
\n\u8be5\u8865\u4e01\u5df2\u4e8e2\u670828\u65e5\u53d1\u9001\u5230Linux\u5185\u6838\uff0c\u5e76\u4e14\u65b0\u7248\u672c\u7684\u5185\u6838\u57283\u67087\u65e5\u5df2\u7ecf\u53d1\u5e03\u4e86\uff0c\u6240\u6709\u7248\u672c\u7684Linux\u5185\u6838(\u76f4\u52304.10.1)\u90fd\u88ab\u89c6\u4e3a\u6709\u6f0f\u6d1e\u3002
\n\u8be5\u6f0f\u6d1e\u5c06\u5f71\u54cdLinux\u670d\u52a1\u5668\u548c\u5de5\u4f5c\u7ad9\u4ee5\u53ca\u865a\u62df\u673a\uff0c\u4f46\u5927\u591a\u6570\u5bb9\u5668\u4e0d\u53d7\u5f71\u54cd\u3002\u5f00\u6e90\u5b89\u5168\u516c\u53f8Black Duck Software\u7684Patrick Carey\u8bf4\uff0c\u7531\u4e8eDocker\u4e0a\u7684ioctl\u8bbe\u7f6e\uff0c\u8fd9\u4e2a\u95ee\u9898\u4e0d\u4f1a\u5728\u5bb9\u5668\u5185\u6267\u884c\u3002\u663e\u7136\uff0c\u5982\u679c\u4f60\u6709\u6743\u8bbf\u95ee\u5bb9\u5668\u4e3b\u673a\uff0c\u4e00\u5207\u53ea\u80fd\u542c\u5929\u7531\u547d\u4e86\u3002<\/p>\n

\u7b49\u5f85\u8865\u4e01<\/strong><\/div>\n

\u7ea2\u5e3d\u5df2\u5c06\u6b64\u95ee\u9898\u8bc4\u4e3a\u201c\u9ad8\u201d\u4e25\u91cd\u6027\uff0c\u5e76\u627f\u8bfa\u5728\u5c06\u6765\u7684\u66f4\u65b0\u4e2d\u4f1a\u4fee\u590d\u8be5\u9519\u8bef\u3002\u8be5\u95ee\u9898\u5f71\u54cdRed Hat Enterprise MRG 2\u9644\u5e26\u7684\u5b9e\u65f6\u5185\u6838\u5305\uff0cRed Hat Enterprise Linux 7\u9644\u5e26\u7684kernel-rt\u5305\u4ee5\u53caRed Hat Enterprise Linux 5\/6\/7\u4e2d\u7684\u5185\u6838\u5305\uff0c\u5b83\u4e0d\u5f71\u54cdRed Hat Enterprise Linux 5\u9644\u5e26\u7684Linux\u5185\u6838\u5305\u3002
\nCanonical\u4e5f\u5c06\u8fd9\u4e2a\u95ee\u9898\u8bc4\u4e3a\u9ad8\u4e25\u91cd\u6027\uff0c\u56e0\u4e3a\u6240\u6709Ubuntu\u7248\u672c\u90fd\u4f1a\u53d7\u5230\u5f71\u54cd\uff0c\u516c\u53f8\u5df2\u7ecf\u53d1\u5e03\u4e86\u9488\u5bf9Ubuntu Linux 12.04 LTS\uff0c14.04 LTS\uff0cUbuntu 16.04 LTS(Xenial Xerus) \u548cUbuntu 16.10(Yakket Yak)\u7684\u4fee\u8865\u7a0b\u5e8f\u3002Ubuntu Core 15.04\u548cUbuntu Linux 17.04(Zesty Zapus)\u7684\u66f4\u65b0\u4ecd\u5728\u7b49\u5f85\u4e2d\u3002 Canonical\u5df2\u7ecf\u66f4\u65b0\u4e86\u4e00\u4e9b\u5185\u6838\u5305\uff0c\u4f8b\u5982linux-ti-omap4\u5305(\u7528\u4e8e12.04 LTS)\u548clinux-gke(16.04 LTS)\uff0c\u4f46\u4e0d\u8ba1\u5212\u66f4\u65b0\u5176\u4ed6\u5305\uff0c\u4f8b\u5982linux-maguro\u5305(\u7528\u4e8e14.04 LTS)\u3002\u4fee\u590d\u4ecd\u7136\u9700\u8981\u7eb3\u5165\u4e00\u4e9b\u5176\u4ed6\u8f6f\u4ef6\u5305\u5982\u5bf9\u5e9414.04 LTS\u7684linux-lts-vivid \u548c17.04\u7684linux-rapi2\u3002\u7ba1\u7406\u5458\u5e94\u53c2\u8003Canonical\u7684\u5b8c\u6574\u5217\u8868\u4ee5\u786e\u5b9a\u5176\u5185\u6838\u548c\u5206\u53d1\u72b6\u6001\u3002
\n\u7528\u4e8esparc\uff0cs \/ 390\uff0cpowerpc\uff0cmips\uff0cia-64\uff0cua-32\uff0carm\uff0camd64\u7684\u5404\u79cdDebian Linux 6.0\u8f6f\u4ef6\u5305\uff0cDebian wheezy 3.2.78-1\uff0cjessie 3.16.39-1\u4e2d\u7684Linux\u5185\u6838\uff0c .13-1\u662f\u6bd4\u8f83\u8106\u5f31\u7684\u3002 \u6700\u65b0\u7248\u672c\u7684Debian jessie\uff0c3.16.39-1 + deb8u2\u548cwheezy\uff0c3.2.86-1\u5df2\u7ecf\u6709\u56fa\u5b9a\u7684\u5185\u6838\u6a21\u5757\u3002<\/p>\n

Linux\u7ba1\u7406\u5458\u5e94\u8be5\u505a\u4e9b\u4ec0\u4e48\u5462?<\/strong><\/div>\n

\u5728\u66f4\u65b0\u7684\u5185\u6838\u53ef\u7528\u4e4b\u524d\uff0cLinux\u7ba1\u7406\u5458\u53ef\u4ee5\u901a\u8fc7\u624b\u52a8\u9632\u6b62\u5185\u6838\u52a0\u8f7d\u6765\u7f13\u89e3\u6b64\u6f0f\u6d1e\u3002Then_hdlc\u5185\u6838\u6a21\u5757\u901a\u5e38\u4f1a\u5728\u5e94\u7528\u7a0b\u5e8f\u5c1d\u8bd5\u4ece\u7528\u6237\u7a7a\u95f4\u4f7f\u7528HDLC\u7ebf\u8def\u89c4\u5219\u65f6\u81ea\u52a8\u52a0\u8f7d\uff0c\u4f46\u53ef\u4ee5\u4f7f\u7528\u7cfb\u7edf\u8303\u56f4\u7684modprob\u89c4\u5219\u963b\u6b62\u3002\u4ee5root\u8eab\u4efd\u8fd0\u884c<\/p>\n

#echo\u201cinstall n_hdlc \/ bin \/ true\u201d>> \/etc\/modprobe.d\/disable-n_hdlc.conf<\/pre>\n

\u5c06\u9632\u6b62\u610f\u5916\u6216\u6709\u610f\u52a0\u8f7d\u6a21\u5757\u3002\u5982\u679cn_hdlc\u6a21\u5757\u5df2\u52a0\u8f7d\uff0c\u5219\u9700\u8981\u91cd\u65b0\u542f\u52a8\u7cfb\u7edf\u3002\u7ea2\u5e3d\u4ea7\u54c1\u5b89\u5168\u65b9\u9762\u8ba4\u4e3a\uff0c\u8fd9\u662f\u4e00\u4e2a\u9632\u6b62\u610f\u5916\u52a0\u8f7d\u6a21\u5757\u7684\u53ef\u9760\u65b9\u6cd5\u3002
\n\u5728\u5185\u6838\u914d\u7f6e\u4e2d\u5177\u6709CONFIG_N_HDLC = m\u7684Linux\u53d1\u884c\u7248\u90fd\u53ef\u80fd\u53d7\u5230\u5f71\u54cd\uff0c\u56e0\u4e3a\u5b83\u4f7f\u7528\u6613\u53d7\u653b\u51fb\u7684\u9a71\u52a8\u7a0b\u5e8f\u3002Popov\u5728\u4f7f\u7528\u65e0\u76d1\u7763\u7684Linux\u7cfb\u7edf\u8c03\u7528fuzzing\u5de5\u5177syzkaller\u8c03\u67e5\u53ef\u7591\u5185\u6838\u5d29\u6e83\u65f6\u53d1\u73b0\u4e86\u8be5\u9519\u8bef\u3002 \u8be5\u6f0f\u6d1e\u4e0e\u4ee5\u4e0b\u4e8b\u5b9e\u6709\u5173\uff1an_hdlc\u4f7f\u7528\u81ea\u5236\u7684\u5355\u94fe\u8868\u4f5c\u4e3a\u6570\u636e\u7f13\u51b2\u533a\uff0c\u5e76\u4f7f\u7528n_hdlc.tbuf\u6307\u9488\u5728\u53d1\u751f\u9519\u8bef\u540e\u91cd\u65b0\u53d1\u9001\u7f13\u51b2\u533a\u3002\u5982\u679c\u6570\u636e\u7f13\u51b2\u533a\u7531\u4e8e\u67d0\u4e9b\u539f\u56e0\u65e0\u6cd5\u53d1\u9001\uff0c\u5219\u5730\u5740\u5c06\u4fdd\u5b58\u5728n_hdlc.tbuf\u4e2d\uff0c\u7f13\u51b2\u533a\u662f\u4e0b\u4e00\u6b21\u8c03\u7528hdlc_send_frames()\u65f6\u9996\u6b21\u53d1\u9001\u7684\u3002flux_tx_queue()\u548chdlc_send_frames()\u4f1a\u5c06\u7f13\u51b2\u533a\u653e\u5165tx_free_buf_list\u4e24\u6b21\uff0c\u5bfc\u81f4\u53cc\u91cd\u9519\u8bef\u3002
\n\u8be5\u6f0f\u6d1e\u5b58\u5728\u4e8e\u5e7f\u6cdb\u4f7f\u7528\u7684\u5f00\u653e\u6e90\u4ee3\u7801\u7ec4\u4ef6\u4e2d\uff0c\u4f46\u793e\u533a\u548c\u7ec4\u7ec7\u4e5f\u5728\u79ef\u6781\u89e3\u51b3\u5b89\u5168\u95ee\u9898\uff0c\u5e7f\u5927Linux\u7528\u6237\u66f4\u8981\u5bc6\u5207\u5173\u6ce8Linux\u5185\u6838\u7684\u4fee\u590d\u60c5\u51b5\u3002<\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttp:\/\/tech.it168.com\/a2017\/0321\/3105\/000003105541.shtml<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttp:\/\/lrxjmw.cn\/linux-kernel-issue.html<\/a>\u7f16\u8f91\uff1a\u5f20@\u5b87\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u5bfc\u8bfb Linux\u5185\u6838\u5df2\u7ecf\u4fee\u590d\u4e86\u672c\u5730\u7279\u6743esclation\u7f3a\u9677\uff0c\u4f46\u662f\u51e0\u4e2a\u4e0a\u6e38\u5206\u53d1\u7248\u672c\u4f8b\u5982Red Hat\uff0cCano […]<\/p>\n","protected":false},"author":310,"featured_media":80995,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-80993","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/80993","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/310"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=80993"}],"version-history":[{"count":5,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/80993\/revisions"}],"predecessor-version":[{"id":81064,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/80993\/revisions\/81064"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/80995"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=80993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=80993"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=80993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}