{"id":101560,"date":"2019-02-21T12:00:55","date_gmt":"2019-02-21T20:00:55","guid":{"rendered":"https:\/\/unit42.paloaltonetworks.com\/?p=101560\/"},"modified":"2019-11-28T18:47:12","modified_gmt":"2019-11-29T02:47:12","slug":"breaking-docker-via-runc-explaining-cve-2019-5736","status":"publish","type":"post","link":"https:\/\/unit42.paloaltonetworks.com\/ja\/breaking-docker-via-runc-explaining-cve-2019-5736\/","title":{"rendered":"runC\u306b\u3088\u308bDocker\u30b3\u30f3\u30c6\u30ca\u30d6\u30ec\u30fc\u30af\u30a2\u30a6\u30c8: CVE-2019-5736\u306e\u89e3\u8aac"},"content":{"rendered":"<h2>\u6982\u8981<\/h2>\n<p>\u5148\u9031(2019\u5e742\u670811\u65e5)\u3001runC\u306e\u65b0\u305f\u306a\u8106\u5f31\u6027\u304c\u4fdd\u5b88\u7ba1\u7406\u8005\u306b\u3088\u3063\u3066<a href=\"https:\/\/www.openwall.com\/lists\/oss-security\/2019\/02\/11\/2\">\u5831\u544a<\/a>\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u3001Adam Iwaniuk\u6c0f\u3068Borys Poplawski\u6c0f\u306b\u3088\u3063\u3066\u767a\u898b\u3055\u308c\u305f\u3082\u306e\u3067\u3059\u3002CVE-2019-5736\u3068\u547c\u3070\u308c\u308b\u3053\u306e\u8106\u5f31\u6027\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308bDocker\u30b3\u30f3\u30c6\u30ca\u306b\u5f71\u97ff\u3092\u53ca\u307c\u3059\u3053\u3068\u304b\u3089\u3001\u30db\u30b9\u30c8\u306b\u5bfe\u3059\u308broot\u30ec\u30d9\u30eb\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u5165\u624b\u3059\u308b\u305f\u3081\u306b\u653b\u6483\u8005\u304c\u5229\u7528\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\nrunC\u306e\u4fdd\u5b88\u7ba1\u7406\u8005\u306e1\u4eba\u3067\u3042\u308bAleksa Sarai\u6c0f\u306f\u3001LXC\u306b\u3082\u540c\u69d8\u306e\u6839\u672c\u7684\u306a\u6b20\u9665\u304c\u5b58\u5728\u3059\u308b\u3053\u3068\u3092\u767a\u898b\u3057\u307e\u3057\u305f\u3002\u305f\u3060\u3057\u3001Docker\u3068\u306f\u5bfe\u7167\u7684\u306b\u3001\u8106\u5f31\u6027\u304c\u3042\u308b\u306e\u306f\u7279\u6a29LXC\u30b3\u30f3\u30c6\u30ca\u306e\u307f\u3067\u3059\u3002<a href=\"https:\/\/github.com\/opencontainers\/runc\/commit\/6635b4f0c6af3810594d2770f662f34ddc15b40d\">runC<\/a>\u3068<a href=\"https:\/\/github.com\/lxc\/lxc\/commit\/6400238d08cdf1ca20d49bafb85f4e224348bf9d\">LXC<\/a>\u306e\u4e21\u65b9\u306b\u30d1\u30c3\u30c1\u304c\u9069\u7528\u3055\u308c\u3001\u65b0\u305f\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u8106\u5f31\u6027\u306e\u5f71\u97ff\u306f\u5927\u304d\u304f\u3001\u591a\u6570\u306e\u30c6\u30af\u30ce\u30ed\u30b8 \u30b5\u30a4\u30c8\u3084\u55b6\u5229\u4f01\u696d\u306f\u3001\u3053\u308c\u306b\u7279\u5316\u3057\u305f\u6295\u7a3f\u3067\u5bfe\u51e6\u3057\u307e\u3057\u305f\u3002\u3053\u3053Twistlock\u3067\u306f\u3001CTO\u3067\u3042\u308bJohn Morello\u304c\u95a2\u9023\u3059\u308b\u3042\u3089\u3086\u308b\u8a73\u7d30\u60c5\u5831\u3068Twistlock\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u304b\u3089\u63d0\u4f9b\u3055\u308c\u308b\u8efd\u6e1b\u7b56\u3092\u4f7f\u7528\u3057\u3066\u3001<a href=\"https:\/\/www.twistlock.com\/2019\/02\/11\/how-to-mitigate-cve-2019-5736-in-runc-and-docker\/\">\u3059\u3070\u3089\u3057\u3044\u8a18\u4e8b<\/a>\u3092\u66f8\u304d\u4e0a\u3052\u307e\u3057\u305f\u3002<\/p>\n<p>\u5f53\u521d\u3001\u516c\u5f0f\u306e\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8 \u30b3\u30fc\u30c9\u306f2019\u5e742\u670818\u65e5\u307e\u3067\u516c\u958b\u3055\u308c\u306a\u3044\u4e88\u5b9a\u3067\u3057\u305f\u3002\u3053\u308c\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u66f4\u65b0\u3059\u308b\u524d\u306b\u3001\u60aa\u610f\u306e\u3042\u308b\u4e00\u56e3\u304c\u3053\u306e\u30b3\u30fc\u30c9\u3092\u5175\u5668\u5316\u3059\u308b\u306e\u3092\u9632\u3050\u305f\u3081\u3067\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u305d\u306e\u5f8c\u306e\u6570\u65e5\u9593\u3067\u3001\u4e00\u90e8\u306e\u4eba\u3005\u304c\u72ec\u81ea\u306e\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8 \u30b3\u30fc\u30c9\u3092\u30ea\u30ea\u30fc\u30b9\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u3088\u308a\u3001runC\u30c1\u30fc\u30e0\u306f\u6700\u7d42\u7684\u306b\u4e88\u5b9a\u3088\u308a\u3082\u65e9\u304f(2019\u5e742\u670813\u65e5\u306b)<a href=\"https:\/\/www.openwall.com\/lists\/oss-security\/2019\/02\/13\/3\">\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8 \u30b3\u30fc\u30c9\u3092\u30ea\u30ea\u30fc\u30b9<\/a>\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u5f7c\u3089\u304c\u8a00\u3046\u3053\u3068\u306b\u306f\u3001\u300c\u79d8\u5bc6\u304c\u6f0f\u308c\u305f\u300d\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u6295\u7a3f\u3067\u306f\u3001\u8106\u5f31\u6027\u3068\u305d\u306e\u591a\u69d8\u306a\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u65b9\u6cd5\u306b\u5bfe\u3059\u308b\u5305\u62ec\u7684\u306a\u6280\u8853\u7684\u8003\u5bdf\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<h3><a id=\"post-101560-so-what-is-runc\"><\/a>runC\u3068\u306f?<\/h3>\n<p>runC\u306f\u3001\u5143\u6765\u3001Docker\u306e\u4e00\u90e8\u3068\u3057\u3066\u958b\u767a\u3055\u308c\u305f\u30b3\u30f3\u30c6\u30ca \u30e9\u30f3\u30bf\u30a4\u30e0\u3067\u3001\u5f8c\u306b\u72ec\u7acb\u3057\u305f\u30aa\u30fc\u30d7\u30f3 \u30bd\u30fc\u30b9 \u30c4\u30fc\u30eb\u304a\u3088\u3073\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u3057\u3066\u62bd\u51fa\u3055\u308c\u307e\u3057\u305f\u3002\u300c\u4f4e\u30ec\u30d9\u30eb\u300d\u306e\u30b3\u30f3\u30c6\u30ca \u30e9\u30f3\u30bf\u30a4\u30e0\u3068\u3057\u3066\u3001runC\u306f\u3001\u4e3b\u306b\u300c\u9ad8\u30ec\u30d9\u30eb\u300d\u306e\u30b3\u30f3\u30c6\u30ca \u30e9\u30f3\u30bf\u30a4\u30e0(Docker\u306a\u3069)\u306b\u3088\u3063\u3066\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u30b9\u30bf\u30f3\u30c9\u30a2\u30ed\u30f3 \u30c4\u30fc\u30eb\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<br \/>\nDocker\u306a\u3069\u306e\u300c\u9ad8\u30ec\u30d9\u30eb\u300d\u306e\u30b3\u30f3\u30c6\u30ca \u30e9\u30f3\u30bf\u30a4\u30e0\u306f\u3001\u901a\u5e38\u3001\u30a4\u30e1\u30fc\u30b8\u306e\u4f5c\u6210\u3084\u7ba1\u7406\u306a\u3069\u306e\u6a5f\u80fd\u3092\u5b9f\u88c5\u3057\u3001runC\u3092\u4f7f\u7528\u3057\u3066\u3001\u5b9f\u884c\u4e2d\u306e\u30b3\u30f3\u30c6\u30ca\u306b\u95a2\u9023\u3059\u308b\u30bf\u30b9\u30af\u3001\u3064\u307e\u308a\u3001\u30b3\u30f3\u30c6\u30ca\u306e\u4f5c\u6210\u3001\u65e2\u5b58\u306e\u30b3\u30f3\u30c6\u30ca(docker exec)\u3078\u306e\u30d7\u30ed\u30bb\u30b9\u306e\u8ffd\u52a0\u306a\u3069\u306e\u30bf\u30b9\u30af\u3092\u51e6\u7406\u3057\u307e\u3059\u3002<\/p>\n<h3><a id=\"post-101560-procfs\"><\/a>procfs (\u30d7\u30ed\u30bb\u30b9 \u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0)<\/h3>\n<p>\u8106\u5f31\u6027\u3092\u7406\u89e3\u3059\u308b\u306b\u306f\u3001procfs\u306e\u57fa\u790e\u3092\u3044\u304f\u3064\u304b\u5b66\u7fd2\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002proc filesystem (\u30d7\u30ed\u30bb\u30b9 \u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0)\u306f\u3001\u4e3b\u306b\u30d7\u30ed\u30bb\u30b9\u306b\u95a2\u3059\u308b\u60c5\u5831(\u901a\u5e38\u306f\/proc\u306b\u30de\u30a6\u30f3\u30c8)\u3092\u793a\u3059Linux\u306e\u4eee\u60f3\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3067\u3059\u3002\u3053\u308c\u306f\u3001\u30c7\u30a3\u30b9\u30af\u4e0a\u306b\u5b58\u5728\u3057\u306a\u3044\u3068\u3044\u3046\u610f\u5473\u3067\u4eee\u60f3\u3067\u3059\u3002\u4ee3\u308f\u308a\u306b\u3001\u30ab\u30fc\u30cd\u30eb\u306b\u3088\u3063\u3066\u30e1\u30e2\u30ea\u5185\u306b\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002\u307e\u305f\u3001\u30ab\u30fc\u30cd\u30eb\u3067\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3068\u3057\u3066\u516c\u958b\u3055\u308c\u308b\u30b7\u30b9\u30c6\u30e0 \u30c7\u30fc\u30bf\u306b\u5bfe\u3059\u308b\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3068\u8003\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5404\u30d7\u30ed\u30bb\u30b9\u306b\u306f\u3001procfs\u5185\u306e\/proc\/[pid]:\u306b\u56fa\u6709\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_101564\" aria-describedby=\"caption-attachment-101564\" style=\"width: 512px\" class=\"wp-caption aligncenter\"><img  class=\"wp-image-101564 lozad\"  data-src=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file.jpeg\" alt=\"\/proc\/self \u306f\u73fe\u5728\u5b9f\u884c\u4e2d\u306e\u30d7\u30ed\u30bb\u30b9(\u3053\u3053\u3067\u306fpid 177)\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\" width=\"512\" height=\"194\" srcset=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file.jpeg 512w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-300x114.jpeg 300w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-370x140.jpeg 370w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><figcaption id=\"caption-attachment-101564\" class=\"wp-caption-text\">\/proc\/self \u306f\u73fe\u5728\u5b9f\u884c\u4e2d\u306e\u30d7\u30ed\u30bb\u30b9(\u3053\u3053\u3067\u306fpid 177)\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af<\/figcaption><\/figure>\n<p>\u4e0a\u56f3\u306b\u793a\u3059\u3088\u3046\u306b\u3001\/proc\/self\u306f\u73fe\u5728\u5b9f\u884c\u4e2d\u306e\u30d7\u30ed\u30bb\u30b9(\u3053\u3053\u3067\u306fpid 177)\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af \u30ea\u30f3\u30af\u3067\u3059\u3002\u5404\u30d7\u30ed\u30bb\u30b9\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u306f\u3001\u30d7\u30ed\u30bb\u30b9\u306b\u95a2\u3059\u308b\u60c5\u5831\u3092\u542b\u3080\u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u8106\u5f31\u6027\u306b\u95a2\u9023\u3059\u308b\u3082\u306e\u306f\u3001\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>\/proc\/self\/exe \u2013 \u30d7\u30ed\u30bb\u30b9\u304c\u5b9f\u884c\u3057\u3066\u3044\u308b\u5b9f\u884c\u53ef\u80fd\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af \u30ea\u30f3\u30af\u3002<\/li>\n<li>\/proc\/self\/fd \u2013 \u30d7\u30ed\u30bb\u30b9\u304c\u30aa\u30fc\u30d7\u30f3\u3057\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u8a18\u8ff0\u5b50\u3092\u4fdd\u6301\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3002<\/li>\n<\/ul>\n<p>\u305f\u3068\u3048\u3070\u3001ls \/proc\/self\u3092\u4f7f\u7528\u3057\u3066\/proc\/self\u4e0b\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u30ea\u30b9\u30c8\u8868\u793a\u3059\u308b\u3068\u3001\/proc\/self\/exe\u304c\u300cls\u300d\u5b9f\u884c\u53ef\u80fd\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_101566\" aria-describedby=\"caption-attachment-101566\" style=\"width: 718px\" class=\"wp-caption aligncenter\"><img  class=\"wp-image-101566 lozad\"  data-src=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/word-image.jpeg\" alt=\"\/proc\/self\/exe \u306f ls \u306e\u5b9f\u884c\u53ef\u80fd\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u3057\u3066\u3044\u308b\" width=\"718\" height=\"61\" srcset=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/word-image.jpeg 718w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/word-image-300x25.jpeg 300w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/word-image-370x31.jpeg 370w\" sizes=\"(max-width: 718px) 100vw, 718px\" \/><figcaption id=\"caption-attachment-101566\" class=\"wp-caption-text\">\/proc\/self\/exe \u306f ls \u306e\u5b9f\u884c\u53ef\u80fd\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u3057\u3066\u3044\u308b<\/figcaption><\/figure>\n<p>\/proc\/self\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306e\u306f\u30b7\u30a7\u30eb\u304c\u751f\u6210\u3057\u305f\u300cls\u300d\u30d7\u30ed\u30bb\u30b9\u3067\u3042\u308b\u305f\u3081\u3001\u3053\u308c\u306f\u7406\u306b\u304b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2><a id=\"post-101560-the-vulnerability\"><\/a>\u8106\u5f31\u6027<\/h2>\n<p>runC\u30c1\u30fc\u30e0\u304c\u63d0\u4f9b\u3059\u308b\u8106\u5f31\u6027\u306e\u6982\u8981\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3053\u306e\u8106\u5f31\u6027\u306b\u3088\u308a\u3001\u60aa\u610f\u306e\u3042\u308b\u30b3\u30f3\u30c6\u30ca\u306f(\u6700\u5c0f\u9650\u306e\u30e6\u30fc\u30b6\u30fc\u64cd\u4f5c\u3067)\u30db\u30b9\u30c8\u306erunC\u30d0\u30a4\u30ca\u30ea\u3092\u4e0a\u66f8\u304d\u3057\u3001\u30db\u30b9\u30c8\u4e0a\u3067root\u30ec\u30d9\u30eb\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3067\u304d\u308b\u6a29\u9650\u3092\u7372\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u30e6\u30fc\u30b6\u30fc\u64cd\u4f5c\u30ec\u30d9\u30eb\u3067\u306f\u3001\u6b21\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306e\u3044\u305a\u308c\u304b\u306b\u304a\u3044\u3066\u3001\u30b3\u30f3\u30c6\u30ca\u5185\u3067root\u3068\u3057\u3066\u4efb\u610f\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u653b\u6483\u8005\u306b\u3088\u3063\u3066\u5236\u5fa1\u3055\u308c\u305f\u30a4\u30e1\u30fc\u30b8\u3092\u4f7f\u7528\u3057\u3066\u3001\u65b0\u3057\u3044\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3059\u308b\u3002<\/li>\n<li>\u653b\u6483\u8005\u304c\u4ee5\u524d\u66f8\u304d\u8fbc\u307f\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u6301\u3063\u3066\u3044\u305f\u65e2\u5b58\u306e\u30b3\u30f3\u30c6\u30ca\u306b(docker exec\u3092)\u8ffd\u52a0\u3059\u308b\u3002<\/li>\n<\/ul>\n<p>\u3053\u308c\u30892\u3064\u306e\u30b7\u30ca\u30ea\u30aa\u306f\u7570\u306a\u308b\u3088\u3046\u306b\u601d\u308f\u308c\u307e\u3059\u304c\u3001\u3069\u3061\u3089\u3082\u3001\u30b3\u30f3\u30c6\u30ca\u5185\u3067\u65b0\u3057\u3044\u30d7\u30ed\u30bb\u30b9\u3092\u30b9\u30d4\u30f3 \u30a2\u30c3\u30d7\u3059\u308b\u3088\u3046runC\u306b\u6c42\u3081\u308b\u3053\u3068\u306b\u52a0\u3048\u3001\u540c\u3058\u3088\u3046\u306a\u65b9\u6cd5\u3067\u5b9f\u88c5\u3055\u308c\u307e\u3059\u3002\u3069\u3061\u3089\u306e\u5834\u5408\u3082\u3001runC\u306b\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u5b9a\u7fa9\u306e\u30d0\u30a4\u30ca\u30ea\u3092\u30b3\u30f3\u30c6\u30ca\u5185\u3067\u5b9f\u884c\u3059\u308b\u30bf\u30b9\u30af\u304c\u8ab2\u3055\u308c\u307e\u3059\u3002Docker\u3067\u306f\u3001\u3053\u306e\u30d0\u30a4\u30ca\u30ea\u306f\u3001\u65b0\u3057\u3044\u30b3\u30f3\u30c6\u30ca\u3092\u8d77\u52d5\u3059\u308b\u969b\u306e\u30a4\u30e1\u30fc\u30b8\u306e\u30a8\u30f3\u30c8\u30ea \u30dd\u30a4\u30f3\u30c8\u3001\u307e\u305f\u306f\u65e2\u5b58\u306e\u30b3\u30f3\u30c6\u30ca\u306b\u8ffd\u52a0\u3059\u308b\u969b\u306edocker exec\u306e\u5f15\u6570\u306e\u3044\u305a\u308c\u304b\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u30e6\u30fc\u30b6\u30fc \u30d0\u30a4\u30ca\u30ea\u304c\u5b9f\u884c\u3055\u308c\u308b\u3068\u304d\u306f\u3001\u30b3\u30f3\u30c6\u30ca\u5185\u3067\u3059\u3067\u306b\u7279\u5b9a\u304a\u3088\u3073\u5236\u9650\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u3046\u3057\u306a\u3044\u3068\u3001\u30db\u30b9\u30c8\u304c\u5371\u967a\u306b\u3055\u3089\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306b\u3001runC\u306f\u300crunC init\u300d\u30b5\u30d6\u30d7\u30ed\u30bb\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3053\u306e\u30b5\u30d6\u30d7\u30ed\u30bb\u30b9\u306f\u3001\u5fc5\u8981\u306a\u3059\u3079\u3066\u306e\u5236\u9650(\u540d\u524d\u7a7a\u9593\u306e\u5165\u529b\u3084\u8a2d\u5b9a\u306a\u3069)\u3092\u81ea\u3089\u306b\u8a2d\u5b9a\u3057\u3001\u81ea\u3089\u3092\u30b3\u30f3\u30c6\u30ca\u5185\u306b\u52b9\u7387\u7684\u306b\u914d\u7f6e\u3057\u307e\u3059\u3002\u6b21\u306b\u3001\u73fe\u5728\u30b3\u30f3\u30c6\u30ca\u5185\u306b\u3042\u308brunC init\u30d7\u30ed\u30bb\u30b9\u306f\u3001execve\u30b7\u30b9\u30c6\u30e0 \u30b3\u30fc\u30eb\u3092<a href=\"https:\/\/github.com\/opencontainers\/runc\/blob\/751f18de2af90495e9c5665b95bfc7adf66ddd57\/libcontainer\/standard_init_linux.go&quot; \\l &quot;L206\">\u547c\u3073\u51fa\u3057\u3066<\/a>\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u305f\u30d0\u30a4\u30ca\u30ea\u3067\u81ea\u3089\u3092\u4e0a\u66f8\u304d\u3057\u307e\u3059\u3002<\/p>\n<p><img  class=\"aligncenter wp-image-101568 size-large lozad\"  data-src=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/word-image-1-1024x95.jpeg\" alt=\"\" width=\"1024\" height=\"95\" srcset=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/word-image-1-1024x95.jpeg 1024w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/word-image-1-300x28.jpeg 300w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/word-image-1-768x71.jpeg 768w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/word-image-1-1536x142.jpeg 1536w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/word-image-1-900x83.jpeg 900w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/word-image-1-370x34.jpeg 370w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/word-image-1.jpeg 1614w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u4ee5\u4e0b\u306f\u3001\u65b0\u3057\u3044\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u3068\u65e2\u5b58\u306e\u30b3\u30f3\u30c6\u30ca\u306b\u30d7\u30ed\u30bb\u30b9\u3092\u8ffd\u52a0\u3059\u308b\u5834\u5408\u306e\u4e21\u65b9\u3067runC\u304c\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<figure id=\"attachment_101570\" aria-describedby=\"caption-attachment-101570\" style=\"width: 1024px\" class=\"wp-caption aligncenter\"><img  class=\"wp-image-101570 size-large lozad\"  data-src=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-1-1024x346.jpeg\" alt=\"\u65b0\u3057\u3044\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u3068\u65e2\u5b58\u306e\u30b3\u30f3\u30c6\u30ca\u306b\u30d7\u30ed\u30bb\u30b9\u3092\u8ffd\u52a0\u3059\u308b\u5834\u5408\u306e\u4e21\u65b9\u3067runC\u304c\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\" width=\"1024\" height=\"346\" srcset=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-1-1024x346.jpeg 1024w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-1-300x101.jpeg 300w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-1-768x259.jpeg 768w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-1-1536x518.jpeg 1536w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-1-900x304.jpeg 900w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-1-370x125.jpeg 370w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-1.jpeg 1600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption id=\"caption-attachment-101570\" class=\"wp-caption-text\">\u65b0\u3057\u3044\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u3068\u65e2\u5b58\u306e\u30b3\u30f3\u30c6\u30ca\u306b\u30d7\u30ed\u30bb\u30b9\u3092\u8ffd\u52a0\u3059\u308b\u5834\u5408\u306e\u4e21\u65b9\u3067runC\u304c\u4f7f\u7528\u3059\u308b\u65b9\u6cd5<\/figcaption><\/figure>\n<p>\u8106\u5f31\u6027\u3092\u767a\u898b\u3057\u305f\u7814\u7a76\u8005\u305f\u3061\u306f\u3001\u653b\u6483\u8005\u304c\/proc\/self\/exe\u3092\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u6c42\u3081\u308b\u3053\u3068\u3067\u3001runC\u3092\u9a19\u3057\u3066\u5b9f\u884c\u3067\u304d\u308b\u3053\u3068\u3092\u767a\u898b\u3057\u307e\u3057\u305f\u3002\/proc\/self\/exe\u306f\u3001\u30db\u30b9\u30c8\u4e0a\u306erunC\u30d0\u30a4\u30ca\u30ea\u3078\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af \u30ea\u30f3\u30af\u3067\u3059\u3002<\/p>\n<figure id=\"attachment_101572\" aria-describedby=\"caption-attachment-101572\" style=\"width: 1024px\" class=\"wp-caption aligncenter\"><img  class=\"wp-image-101572 size-large lozad\"  data-src=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-2-1024x345.jpeg\" alt=\"\/proc\/self\/exe\u306f\u3001\u30db\u30b9\u30c8\u4e0a\u306erunC\u30d0\u30a4\u30ca\u30ea\u3078\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af \u30ea\u30f3\u30af\" width=\"1024\" height=\"345\" srcset=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-2-1024x345.jpeg 1024w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-2-300x101.jpeg 300w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-2-768x259.jpeg 768w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-2-900x303.jpeg 900w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-2-370x125.jpeg 370w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-2.jpeg 1479w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption id=\"caption-attachment-101572\" class=\"wp-caption-text\">\/proc\/self\/exe\u306f\u3001\u30db\u30b9\u30c8\u4e0a\u306erunC\u30d0\u30a4\u30ca\u30ea\u3078\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af \u30ea\u30f3\u30af<\/figcaption><\/figure>\n<p>\u30b3\u30f3\u30c6\u30ca\u5185\u3067root\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u6301\u3064\u653b\u6483\u8005\u306f\u3001\/proc\/[runc-pid]\/exe\u3092<strong>\u30db\u30b9\u30c8<\/strong>\u4e0a\u306erunC\u30d0\u30a4\u30ca\u30ea\u3078\u306e\u53c2\u7167\u3068\u3057\u3066\u4f7f\u7528\u3057\u3066\u3001runC\u30d0\u30a4\u30ca\u30ea\u3092\u4e0a\u66f8\u304d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002runC\u30d0\u30a4\u30ca\u30ea\u306froot\u306b\u6240\u6709\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u3053\u306e\u653b\u6483\u3092\u5b9f\u884c\u3059\u308b\u306b\u306f\u3001\u30b3\u30f3\u30c6\u30ca\u306eroot\u30a2\u30af\u30bb\u30b9\u6a29\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n\u6b21\u56derunC\u304c\u5b9f\u884c\u3055\u308c\u308b\u3068\u3001\u653b\u6483\u8005\u306f\u30db\u30b9\u30c8\u3067\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002runC\u306f(\u305f\u3068\u3048\u3070\u3001Docker\u30c7\u30fc\u30e2\u30f3\u306b\u3088\u3063\u3066)\u901a\u5e38root\u3068\u3057\u3066\u5b9f\u884c\u3055\u308c\u308b\u305f\u3081\u3001\u653b\u6483\u8005\u306f\u30db\u30b9\u30c8\u3067root\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u7372\u5f97\u3057\u307e\u3059\u3002<\/p>\n<h3><a id=\"post-101560-why-not-runc-init\"><\/a>runC init\u3067\u306a\u3044\u7406\u7531<\/h3>\n<p>\u4e0a\u56f3\u306f\u3001\u3053\u306e\u8106\u5f31\u6027(runC\u3092\u9a19\u3057\u3066\u5b9f\u884c\u3059\u308b)\u304c\u5197\u9577\u3067\u3042\u308b\u3068\u8aa4\u89e3\u3055\u305b\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u3069\u3046\u3057\u3066\u653b\u6483\u8005\u306f\u3001\u4ee3\u308f\u308a\u306b\/proc\/[<strong>runc-init-pid<\/strong>]\/exe\u3092\u5358\u306b\u4e0a\u66f8\u304d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u306e\u3067\u3057\u3087\u3046\u304b?<br \/>\n\u985e\u4f3c\u3059\u308brunC\u8106\u5f31\u6027<a href=\"https:\/\/bugzilla.suse.com\/show_bug.cgi?id=1012568\">CVE-2016-9962<\/a>\u306e\u30d1\u30c3\u30c1\u306f\u3053\u306e\u7a2e\u306e\u653b\u6483\u3092\u8efd\u6e1b\u3057\u307e\u3059\u3002<br \/>\nCVE-2016-9962\u3067\u306f\u3001runC init\u30d7\u30ed\u30bb\u30b9\u304c\u30db\u30b9\u30c8\u304b\u3089\u306e\u30aa\u30fc\u30d7\u30f3 \u30d5\u30a1\u30a4\u30eb\u8a18\u8ff0\u5b50\u3092\u6240\u6709\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u660e\u3089\u304b\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u653b\u6483\u8005\u306f\u3001\u3053\u308c\u3089\u306e\u8a18\u8ff0\u5b50\u3092\u4f7f\u7528\u3057\u3066\u3001\u30db\u30b9\u30c8\u306e\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u8d70\u67fb\u3057\u3066\u3001\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u8131\u51fa\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u6b20\u9665\u306b\u5bfe\u3059\u308b\u30d1\u30c3\u30c1\u306e\u4e00\u90e8\u306f\u3001\u30b3\u30f3\u30c6\u30ca\u306b\u5165\u308b\u524d\u306b\u3001runC init\u30d7\u30ed\u30bb\u30b9\u3092\u300c\u30c0\u30f3\u30d7\u4e0d\u53ef\u300d\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>CVE-2019-5736\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3067\u306f\u3001\u300c\u30c0\u30f3\u30d7\u4e0d\u53ef\u300d\u30d5\u30e9\u30b0\u306f\u3001\u305d\u306e\u4ed6\u306e\u30d7\u30ed\u30bb\u30b9\u304c\/proc\/[pid]\/exe\u3092\u9006\u53c2\u7167\u3059\u308b\u306e\u3092\u62d2\u5426\u3057\u3001\u3057\u305f\u304c\u3063\u3066\u3001\/proc\/[runc-init-pid]\/exe\u3092\u901a\u3058\u305frunC\u30d0\u30a4\u30ca\u30ea\u306e\u4e0a\u66f8\u304d\u3092\u8efd\u6e1b\u3057\u307e\u3059[1]\u3002\u305f\u3060\u3057\u3001execve\u3092\u547c\u3073\u51fa\u3059\u3068\u3001\u3053\u306e\u30d5\u30e9\u30b0\u306f\u30c9\u30ed\u30c3\u30d7\u3055\u308c\u308b\u305f\u3081\u3001\u65b0\u3057\u3044runC\u30d7\u30ed\u30bb\u30b9\u306e\/proc\/[runc-pid]\/exe\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3><a id=\"post-101560-the-symlink-problem\"><\/a>symlink (\u30b7\u30f3\u30dc\u30ea\u30c3\u30af \u30ea\u30f3\u30af)\u306e\u554f\u984c<\/h3>\n<p>\u3053\u306e\u8106\u5f31\u6027\u306fLinux\u3078\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af \u30ea\u30f3\u30af\u306e\u5b9f\u88c5\u65b9\u6cd5\u3068\u77db\u76fe\u3057\u3066\u3044\u308b\u3088\u3046\u306b\u898b\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br \/>\n\u30b7\u30f3\u30dc\u30ea\u30c3\u30af \u30ea\u30f3\u30af\u306f\u3001\u5358\u7d14\u306b\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u3078\u306e\u30d1\u30b9\u3092\u7dad\u6301\u3057\u307e\u3059\u3002runC\u30d7\u30ed\u30bb\u30b9\u3067\u306f\u3001\/proc\/self\/exe\u306b\/usr\/sbin\/runc\u306a\u3069\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u30d7\u30ed\u30bb\u30b9\u304csymlink\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u30ab\u30fc\u30cd\u30eb\u304c\u30ea\u30f3\u30af\u5185\u306e\u30d1\u30b9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3044\u308b\u30d7\u30ed\u30bb\u30b9\u306eroot\u4e0b\u3067\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u691c\u51fa\u3057\u307e\u3059\u3002<br \/>\n\u3053\u3053\u3067\u8cea\u554f\u3067\u3059 \u2013 <strong>\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u30d7\u30ed\u30bb\u30b9\u304crunC\u30d0\u30a4\u30ca\u30ea\u3078\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af \u30ea\u30f3\u30af\u3092\u30aa\u30fc\u30d7\u30f3\u3059\u308b\u3068\u3001\u30ab\u30fc\u30cd\u30eb\u304c\u30b3\u30f3\u30c6\u30caroot\u5185\u3067runC\u30d1\u30b9\u3092\u691c\u7d22\u3057\u306a\u3044\u306e\u306f\u3069\u3046\u3057\u3066\u3067\u3057\u3087\u3046\u304b?<\/strong><\/p>\n<p>\u305d\u306e\u7b54\u3048\u306f\u3001\/proc\/[pid]\/exe\u304c\u30b7\u30f3\u30dc\u30ea\u30c3\u30af \u30ea\u30f3\u30af\u306e\u901a\u5e38\u306e\u30bb\u30de\u30f3\u30c6\u30a3\u30af\u30b9\u306b\u5f93\u308f\u306a\u3044\u304b\u3089\u3067\u3059\u3002\u6280\u8853\u7684\u306b\u306f\u3053\u308c\u306f<a href=\"https:\/\/pubs.opengroup.org\/onlinepubs\/9699919799\/basedefs\/V1_chap03.html&quot; \\l &quot;tag_03_381\">POSIX<\/a>\u9055\u53cd\u3068\u898b\u306a\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u524d\u8ff0\u3057\u305f\u3088\u3046\u306b\u3001procfs\u306f\u7279\u6b8a\u306a\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3067\u3059\u3002\u30d7\u30ed\u30bb\u30b9\u304c\/proc\/[pid]\/exe\u3092\u30aa\u30fc\u30d7\u30f3\u3059\u308b\u5834\u5408\u3001symlink\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8aad\u307f\u53d6\u308a\u3001\u8ffd\u5f93\u3059\u308b\u901a\u5e38\u306e\u624b\u9806\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305d\u306e\u4ee3\u308f\u308a\u3001\u30ab\u30fc\u30cd\u30eb\u306f\u958b\u3044\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb \u30a8\u30f3\u30c8\u30ea\u306b\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<h2><a id=\"post-101560-exploitation\"><\/a>\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8<\/h2>\n<p>\u8106\u5f31\u6027\u304c\u5831\u544a\u3055\u308c\u305f\u3059\u3050\u5f8c\u3001POC\u304c\u307e\u3060\u516c\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u3066\u3044\u306a\u3044\u3068\u304d\u306b\u3001\u79c1\u306f\u3001\u3053\u306e\u8106\u5f31\u6027\u306b\u5bfe\u51e6\u3059\u308b<a href=\"https:\/\/github.com\/lxc\/lxc\/commit\/6400238d08cdf1ca20d49bafb85f4e224348bf9d\">LXC\u30d1\u30c3\u30c1<\/a>\u3067\u63d0\u4f9b\u3055\u308c\u305f\u8106\u5f31\u6027\u306e\u8a73\u7d30\u306a\u8aac\u660e\u306b\u57fa\u3065\u3044\u3066\u3001\u72ec\u81ea\u306ePOC\u3092\u4f5c\u6210\u3057\u3088\u3046\u3068\u3057\u307e\u3057\u305f\u3002\u5b8c\u5168\u306aPOC\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/github.com\/twistlock\/RunC-CVE-2019-5736\/tree\/master\/exec_POC\">\u3053\u3061\u3089<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>LXC\u306e\u8106\u5f31\u6027\u306b\u95a2\u3059\u308b\u8aac\u660e\u3092\u8a73\u3057\u304f\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>runC\u304c\u30b3\u30f3\u30c6\u30ca\u306b\u8ffd\u52a0\u3055\u308c\u308b\u3068\u3001\u653b\u6483\u8005\u306frunC\u3092\u9a19\u3057\u3066\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u30d0\u30a4\u30ca\u30ea\u3092runC\u30d0\u30a4\u30ca\u30ea\u81ea\u4f53\u3092\u6307\u3059\u30ab\u30b9\u30bf\u30e0\u306e\u30d0\u30a4\u30ca\u30ea\u306b\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u3067\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u30d0\u30a4\u30ca\u30ea\u304c\/bin\/bash\u3067\u3042\u308b\u5834\u5408\u3001\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u30fc\u306e\u30d1\u30b9#!\/proc\/self\/exe\u3092\u6307\u5b9a\u3059\u308b\u5b9f\u884c\u53ef\u80fd\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u300c#!\u300d\u69cb\u6587\u306fshebang\u3068\u547c\u3070\u308c\u3001\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u30fc\u3092\u6307\u5b9a\u3059\u308b\u305f\u3081\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002Linux\u30ed\u30fc\u30c0\u30fc\u304cshebang\u306b\u906d\u9047\u3059\u308b\u3068\u3001\u5b9f\u884c\u53ef\u80fd\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4ee3\u308f\u308a\u306b\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u30fc\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<script id=\"asciicast-228389\" src=\"https:\/\/asciinema.org\/a\/228389.js\" async=\"\" data-player=\"[object HTMLDivElement]\"><\/script><\/p>\n<div id=\"asciicast-container-228389\" class=\"asciicast\" style=\"display: block; float: none; overflow: hidden; padding: 0px; margin: 20px 0px;\"><iframe style=\"overflow: hidden; margin: 0px; border: 0px; display: inline-block; width: 817px; float: none; visibility: visible; height: 643px;\" src=\"https:\/\/asciinema.org\/a\/228389\/embed?\" id=\"asciicast-iframe-228389\" name=\"asciicast-iframe-228389\" scrolling=\"no\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n<p><a href=\"https:\/\/asciinema.org\/a\/228389\">\u30d3\u30c7\u30aa<\/a>\u304b\u3089\u308f\u304b\u308b\u3088\u3046\u306b\u3001\u30ed\u30fc\u30c0\u30fc\u306b\u3088\u3063\u3066\u6700\u7d42\u7684\u306b\u5b9f\u884c\u3055\u308c\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<br \/>\ninterpreter [optional-arg] executable-path<\/p>\n<p>\u30e6\u30fc\u30b6\u30fc\u304cdocker exec container-name \/bin\/bash\u306a\u3069\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30ed\u30fc\u30c0\u30fc\u306f\u5909\u66f4\u3055\u308c\u305f\u30d0\u30c3\u30b7\u30e5\u3067shebang\u3092\u8a8d\u8b58\u3057\u3001\u6307\u5b9a\u3057\u305f\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u30fc \u2013 \/proc\/self\/exe\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001runC\u30d0\u30a4\u30ca\u30ea\u306b\u5bfe\u3059\u308bsymlink\u3067\u3059\u3002<br \/>\n\/proc\/[runc-pid]\/exe\u3092\u901a\u3058\u3066\u3001\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u5225\u306e\u30d7\u30ed\u30bb\u30b9\u304b\u3089runC\u30d0\u30a4\u30ca\u30ea\u3092\u4e0a\u66f8\u304d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img  class=\"aligncenter wp-image-101574 lozad\"  data-src=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-3.jpeg\" alt=\"\u30c6\u30ad\u30b9\u30c8, \u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 \u304c\u542b\u307e\u308c\u3066\u3044\u308b\u753b\u50cf \u81ea\u52d5\u7684\u306b\u751f\u6210\u3055\u308c\u305f\u8aac\u660e\" width=\"791\" height=\"252\" srcset=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-3.jpeg 791w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-3-300x96.jpeg 300w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-3-768x245.jpeg 768w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-3-370x118.jpeg 370w\" sizes=\"(max-width: 791px) 100vw, 791px\" \/><\/p>\n<p style=\"background-color: whitesmoke;\"><tt>\u305d\u306e\u5f8c\u3001\u653b\u6483\u8005\u306f\u3001\/proc\/self\/exe\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u3078\u306e\u66f8\u304d\u8fbc\u307f\u306b\u9032\u307f\u3001\u30db\u30b9\u30c8\u4e0a\u3067runC\u30d0\u30a4\u30ca\u30ea\u3092\u4e0a\u66f8\u304d\u3057\u3088\u3046\u3068\u3057\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u901a\u5e38\u3001\u30ab\u30fc\u30cd\u30eb\u306frunC\u306e\u5b9f\u884c\u4e2d\u306b\u30d0\u30a4\u30ca\u30ea\u3092\u4e0a\u66f8\u304d\u3059\u308b\u3053\u3068\u3092\u8a31\u53ef\u3057\u306a\u3044\u305f\u3081\u3001\u3053\u308c\u306f\u6210\u529f\u3057\u307e\u305b\u3093\u3002<br \/>\n<\/tt><\/p>\n<p>\u57fa\u672c\u7684\u306b\u3001runC\u30d0\u30a4\u30ca\u30ea\u306f\u3001\u30d7\u30ed\u30bb\u30b9\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u3068\u304d\u306b\u306f\u4e0a\u66f8\u304d\u3067\u304d\u307e\u305b\u3093\u3002\u4e00\u65b9\u3001runC\u30d7\u30ed\u30bb\u30b9\u304c\u7d42\u4e86\u3059\u308b\u3068\u3001\/proc\/[runc-pid]\/exe\u304c\u6d88\u3048\u308b\u305f\u3081\u3001runC\u30d0\u30a4\u30ca\u30ea\u3078\u306e\u53c2\u7167\u304c\u5931\u308f\u308c\u307e\u3059\u3002\u3053\u308c\u3092\u6253\u7834\u3059\u308b\u306b\u306f\u3001\u30d7\u30ed\u30bb\u30b9\u3067\u8aad\u307f\u53d6\u308b\u305f\u3081\u306b\/proc\/[runc-pid]\/exe\u3092\u958b\u304d\u307e\u3059\u3002\u3059\u308b\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u8a18\u8ff0\u5b50\u304c\/proc\/[our-pid]\/fd\/3\u306b\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<br \/>\n\u6b21\u306b\u3001runC\u30d7\u30ed\u30bb\u30b9\u306e\u7d42\u4e86\u3092\u5f85\u3061\u3001\u66f8\u304d\u8fbc\u307f\u306e\u305f\u3081\u306b\/proc\/[our-pid]\/fd\/3\u3092\u958b\u3044\u3066\u3001runC\u3092\u4e0a\u66f8\u304d\u3057\u307e\u3059\u3002<br \/>\n\u6b21\u306b\u3001overwrite_runc\u306e\u30b3\u30fc\u30c9\u3092\u793a\u3057\u307e\u3059\u3002\u7c21\u6f54\u306b\u3059\u308b\u305f\u3081\u306b\u77ed\u7e2e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img  class=\"aligncenter wp-image-101576 lozad\"  data-src=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-4.jpeg\" alt=\"\u30c6\u30ad\u30b9\u30c8 \u304c\u542b\u307e\u308c\u3066\u3044\u308b\u753b\u50cf \u81ea\u52d5\u7684\u306b\u751f\u6210\u3055\u308c\u305f\u8aac\u660e\" width=\"691\" height=\"467\" srcset=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-4.jpeg 691w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-4-300x203.jpeg 300w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-4-370x250.jpeg 370w\" sizes=\"(max-width: 691px) 100vw, 691px\" \/><\/p>\n<p>\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u3044\u304f\u3064\u304b\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306e\u51fa\u529b\u306b\u306f\u3001runC\u3092\u4e0a\u66f8\u304d\u3059\u308b\u305f\u3081\u306e\u30b9\u30c6\u30c3\u30d7\u304c\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002runC\u30d7\u30ed\u30bb\u30b9\u304cpid 20054\u3068\u3057\u3066\u5b9f\u884c\u4e2d\u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u30d3\u30c7\u30aa\u306f<a href=\"https:\/\/asciinema.org\/a\/228632\">\u3053\u3061\u3089<\/a>\u304b\u3089\u3082\u8996\u8074\u3067\u304d\u307e\u3059\u3002<script id=\"asciicast-228632\" src=\"https:\/\/asciinema.org\/a\/228632.js\" async=\"\" data-player=\"[object HTMLDivElement]\"><\/script><\/p>\n<div id=\"asciicast-container-228632\" class=\"asciicast\" style=\"display: block; float: none; overflow: hidden; padding: 0px; margin: 20px 0px;\"><iframe style=\"overflow: hidden; margin: 0px; border: 0px; display: inline-block; width: 817px; float: none; visibility: visible; height: 643px;\" src=\"https:\/\/asciinema.org\/a\/228632\/embed?\" id=\"asciicast-iframe-228632\" name=\"asciicast-iframe-228632\" scrolling=\"no\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n<p><a id=\"post-101560-asciicast-container-228632\"><\/a> \u305f\u3060\u3057\u3001\u3053\u306e\u65b9\u6cd5\u306b\u306f1\u3064\u969c\u5bb3\u304c\u3042\u308a\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u653b\u6483\u8005\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u8ffd\u52a0\u3067\u5fc5\u8981\u3067\u3059\u3002\u30b3\u30f3\u30c6\u30ca\u306f1\u3064\u306e\u30d7\u30ed\u30bb\u30b9(Docker\u306e\u30a4\u30e1\u30fc\u30b8 \u30a8\u30f3\u30c8\u30ea \u30dd\u30a4\u30f3\u30c8)\u3067\u3057\u304b\u8d77\u52d5\u3055\u308c\u306a\u3044\u305f\u3081\u3001\u3053\u306e\u65b9\u6cd5\u306f\u3001\u5b9f\u884c\u6642\u306b\u30db\u30b9\u30c8\u3092\u4fb5\u5bb3\u3059\u308b\u60aa\u610f\u306e\u3042\u308b\u30a4\u30e1\u30fc\u30b8\u306e\u4f5c\u6210\u306b\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n\u540c\u69d8\u306e\u65b9\u6cd5\u3092\u5b9f\u88c5\u3059\u308b\u3001\u76ee\u306b\u3057\u305f\u3053\u3068\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u305d\u306e\u4ed6\u306ePOC\u306b\u306f\u3001<a href=\"https:\/\/github.com\/Frichetten\/CVE-2019-5736-PoC\/blob\/master\/main.go\">Frichetten<\/a>\u3084<a href=\"https:\/\/github.com\/feexd\/pocs\/tree\/master\/CVE-2019-5736\">feexd<\/a>\u306ePOC\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2><a id=\"post-101560-shared-libraries-approach\"><\/a>\u5171\u6709\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u305f\u65b9\u6cd5<\/h2>\n<p>runC\u306e\u4fdd\u5b88\u7ba1\u7406\u8005\u304c\u30ea\u30ea\u30fc\u30b9\u3057\u305f\u516c\u5f0fPOC\u306b\u306f\u3001\u7570\u306a\u308b\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u65b9\u6cd5\u304c\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u6b21\u306e2\u3064\u306e\u65b9\u6cd5\u3092\u901a\u3058\u3066\u30db\u30b9\u30c8\u306b\u4fb5\u5165\u3059\u308b\u305f\u3081\u306b\u5b9f\u88c5\u3067\u304d\u308b\u306e\u3067\u3001\u79c1\u304c\u4f5c\u6210\u3057\u305fPOC\u3084\u305d\u306e\u985e\u4f3c\u54c1\u3088\u308a\u3082\u512a\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li>\u30e6\u30fc\u30b6\u30fc\u304c\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u653b\u6483\u8005\u306b\u3088\u3063\u3066\u5236\u5fa1\u3055\u308c\u3066\u3044\u308b\u65e2\u5b58\u306e\u30b3\u30f3\u30c6\u30ca\u306b\u4fb5\u5165\u3059\u308b<\/li>\n<li>\u30e6\u30fc\u30b6\u30fc\u304c\u60aa\u610f\u306e\u3042\u308b\u30a4\u30e1\u30fc\u30b8\u3092\u5b9f\u884c\u3059\u308b<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>\u4ee5\u524d\u306ePOC\u3067\u3059\u3067\u306b\u6700\u521d\u306e\u30b7\u30ca\u30ea\u30aa\u306f\u5b9f\u8a3c\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u4eca\u5ea6\u306f\u60aa\u610f\u306e\u3042\u308b\u30a4\u30e1\u30fc\u30b8\u306e\u4f5c\u6210\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002\u3053\u306e\u65b9\u6cd5\u306e\u305f\u3081\u306b\u79c1\u304c\u8a18\u8ff0\u3057\u305fPOC\u306f\u3001\u4e3b\u306b<a href=\"https:\/\/github.com\/q3k\/cve-2019-5736-poc\">q3k\u306e POC<\/a>\u306b\u57fa\u3065\u3044\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u79c1\u306e\u77e5\u308b\u9650\u308a\u3067\u306f\u3001\u6700\u521d\u306b\u516c\u958b\u3055\u308c\u305f\u60aa\u610f\u306e\u3042\u308b\u30a4\u30e1\u30fc\u30b8\u306ePOC\u3067\u3057\u305f\u3002\u5b8c\u5168\u306aPOC\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/github.com\/twistlock\/RunC-CVE-2019-5736\/tree\/master\/malicious_image_POC\">\u3053\u3061\u3089<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u60aa\u610f\u306e\u3042\u308b\u30a4\u30e1\u30fc\u30b8\u306e\u4f5c\u6210\u306b\u4f7f\u7528\u3059\u308bDockerfile\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u307e\u305a\u3001\u30a4\u30e1\u30fc\u30b8\u306e\u5b9f\u884c\u6642\u306brunC\u3092\u9a19\u3057\u3066\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u3001\u30a4\u30e1\u30fc\u30b8\u306e\u30a8\u30f3\u30c8\u30ea \u30dd\u30a4\u30f3\u30c8\u3092\/proc\/self\/exe\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint prettyprinted\"><code class=\"prettyprint\"># Create a symbolic link to \/proc\/self\/exe and set it as the image entrypoint\r\nRUN set -e -x ;\\\r\n   ln -s \/proc\/self\/exe \/entrypoint\r\nENTRYPOINT [ \"\/entrypoint\" ]<\/code><\/pre>\n<p>runC\u306f\u3001\u5b9f\u884c\u6642\u306b\u3001\u8907\u6570\u306e\u5171\u6709\u30e9\u30a4\u30d6\u30e9\u30ea\u306b<a href=\"https:\/\/www.ibm.com\/developerworks\/library\/l-dynamic-libraries\/index.html\">\u52d5\u7684\u306b\u30ea\u30f3\u30af<\/a>\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306fldd\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30ea\u30b9\u30c8\u8868\u793a\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img  class=\"aligncenter wp-image-101578 size-large lozad\"  data-src=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/word-image-2-1024x167.jpeg\" alt=\"\" width=\"1024\" height=\"167\" srcset=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/word-image-2-1024x167.jpeg 1024w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/word-image-2-300x49.jpeg 300w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/word-image-2-768x125.jpeg 768w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/word-image-2-900x147.jpeg 900w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/word-image-2-370x60.jpeg 370w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/word-image-2.jpeg 1111w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>runC\u30d7\u30ed\u30bb\u30b9\u304c\u30b3\u30f3\u30c6\u30ca\u3067\u5b9f\u884c\u3055\u308c\u308b\u3068\u3001\u3053\u308c\u3089\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u52d5\u7684\u30ea\u30f3\u30ab\u30fc\u306b\u3088\u3063\u3066runC\u30d7\u30ed\u30bb\u30b9\u306b\u30ed\u30fc\u30c9\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306e1\u3064\u3092\u60aa\u610f\u306e\u3042\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u60aa\u610f\u306e\u3042\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u3001runC\u30d7\u30ed\u30bb\u30b9\u306b\u30ed\u30fc\u30c9\u3055\u308c\u308b\u3068\u3001runC\u30d0\u30a4\u30ca\u30ea\u3092\u4e0a\u66f8\u304d\u3057\u307e\u3059\u3002<br \/>\nDockerfile\u306flibseccomp\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u60aa\u610f\u306e\u3042\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint prettyprinted\"><code class=\"prettyprint\"># Append the run_at_link function to the libseccomp-2.3.1\/src\/api.c file and build libseccomp\r\nADD run_at_link.c \/root\/run_at_link.c\r\nRUN set -e -x ;\\\r\n   cd \/root\/libseccomp-2.3.1 ;\\\r\n   cat \/root\/run_at_link.c &gt;&gt; src\/api.c ;\\\r\n   DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -b -uc -us ;\\\r\n   dpkg -i \/root\/*.deb\r\n<\/code><\/pre>\n<p>Dockerfile\u306frun_at_link.c\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092libsecomp\u306e\u30bd\u30fc\u30b9 \u30d5\u30a1\u30a4\u30eb\u306e1\u3064\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001\u60aa\u610f\u306e\u3042\u308blibsecomp\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img  class=\"aligncenter wp-image-101580 size-full lozad\"  data-src=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 \u304c\u542b\u307e\u308c\u3066\u3044\u308b\u753b\u50cf \u81ea\u52d5\u7684\u306b\u751f\u6210\u3055\u308c\u305f\u8aac\u660e\" width=\"927\" height=\"538\" srcset=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file.png 927w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-300x174.png 300w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-768x446.png 768w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-900x522.png 900w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-370x215.png 370w\" sizes=\"(max-width: 927px) 100vw, 927px\" \/><\/p>\n<p>\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u5c5e\u6027(GCC\u56fa\u6709\u306e\u69cb\u6587)\u306f\u3001\u52d5\u7684\u30ea\u30f3\u30ab\u30fc\u304clibseccomp\u30e9\u30a4\u30d6\u30e9\u30ea\u3092runC\u30d7\u30ed\u30bb\u30b9\u306b\u30ed\u30fc\u30c9\u3057\u305f\u5f8c\u3067\u3001run_at_link\u95a2\u6570\u304clibseccomp\u306e\u521d\u671f\u5316\u95a2\u6570<a href=\"#post-101560-footnote2\">[2]<\/a>\u3068\u3057\u3066\u5b9f\u884c\u3055\u308c\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002run_at_link\u306frunC\u30d7\u30ed\u30bb\u30b9\u306b\u3088\u3063\u3066\u5b9f\u884c\u3055\u308c\u308b\u305f\u3081\u3001\/proc\/self\/exe\u3067runC\u30d0\u30a4\u30ca\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002<br \/>\n\u305f\u3060\u3057\u3001runC\u30d0\u30a4\u30ca\u30ea\u3092\u66f8\u304d\u8fbc\u307f\u53ef\u80fd\u306b\u3059\u308b\u305f\u3081\u306b\u3001runC\u30d7\u30ed\u30bb\u30b9\u3092\u7d42\u4e86\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u7d42\u4e86\u3059\u308b\u305f\u3081\u306b\u3001run_at_link\u306fexecve\u30b7\u30b9\u30c6\u30e0 \u30b3\u30fc\u30eb\u3092\u547c\u3073\u51fa\u3057\u3066\u3001overwrite_runc\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>execve\u306f\u3001\u30d7\u30ed\u30bb\u30b9\u306b\u3088\u3063\u3066\u30aa\u30fc\u30d7\u30f3\u3055\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u8a18\u8ff0\u5b50\u306b\u5f71\u97ff\u3057\u306a\u3044\u305f\u3081\u3001\u4ee5\u524d\u306ePOC\u304b\u3089\u306e\u540c\u3058\u30d5\u30a1\u30a4\u30eb\u8a18\u8ff0\u5b50\u3092\u9a19\u3057\u3066\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li>runC\u30d7\u30ed\u30bb\u30b9\u306flibseccomp\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30ed\u30fc\u30c9\u3057\u3001\u5b9f\u884c\u30b9\u30af\u30ea\u30d7\u30c8\u3092run_at_link\u95a2\u6570\u306b\u8ee2\u9001\u3057\u307e\u3059\u3002<\/li>\n<li>run_at_link\u306f\u3001\/proc\/self\/exe\u3092\u901a\u3058\u3066\u8aad\u307f\u53d6\u308b\u305f\u3081\u306brunC\u30d0\u30a4\u30ca\u30ea\u3092\u958b\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30d5\u30a1\u30a4\u30eb\u8a18\u8ff0\u5b50\u304c\/proc\/self\/fd\/${runc_fd_read}\u306b\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/li>\n<li>run_at_link\u306fexecve\u3092\u547c\u3073\u51fa\u3057\u3066\u3001overwrite_runc\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/li>\n<li>\u3053\u306e\u30d7\u30ed\u30bb\u30b9\u3067runC\u30d0\u30a4\u30ca\u30ea\u3092\u5b9f\u884c\u3057\u306a\u304f\u306a\u308b\u3068\u3001runC\u30d0\u30a4\u30ca\u30ea\u306e\u66f8\u304d\u8fbc\u307f\u3001\u4e0a\u66f8\u304d\u306e\u305f\u3081\u306b\u3001overwrite_runc\u304c\/proc\/self\/fd\/runc_fd_read\u3092\u958b\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>\u6b21\u306e<a href=\"https:\/\/asciinema.org\/a\/228625\">\u30d3\u30c7\u30aa<\/a>\u3067\u306f\u3001\u30dd\u30fc\u30c82345\u3067\u30ea\u30d0\u30fc\u30b9 \u30b7\u30a7\u30eb\u3092\u751f\u6210\u3059\u308b\u5358\u7d14\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u3044\u3001runC\u30d0\u30a4\u30ca\u30ea\u3092\u4e0a\u66f8\u304d\u3059\u308b\u60aa\u610f\u306e\u3042\u308b\u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\u3002<script id=\"asciicast-228625\" src=\"https:\/\/asciinema.org\/a\/228625.js\" async=\"\" data-player=\"[object HTMLDivElement]\"><\/script><\/p>\n<div id=\"asciicast-container-228625\" class=\"asciicast\" style=\"display: block; float: none; overflow: hidden; padding: 0px; margin: 20px 0px;\"><iframe style=\"overflow: hidden; margin: 0px; border: 0px; display: inline-block; width: 817px; float: none; visibility: visible; height: 643px;\" src=\"https:\/\/asciinema.org\/a\/228625\/embed?\" id=\"asciicast-iframe-228625\" name=\"asciicast-iframe-228625\" scrolling=\"no\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n<p><a id=\"post-101560-asciicast-container-228625\"><\/a> docker run\u30b3\u30de\u30f3\u30c9\u306frunC\u30922\u56de\u5b9f\u884c\u3057\u307e\u3059\u3002\u521d\u3081\u3066\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3057\u3066\u5b9f\u884c\u3059\u308b\u3068\u3001POC\u304c\u5b9f\u884c\u3055\u308c\u3066runC\u304c\u4e0a\u66f8\u304d\u3055\u308c\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001runc delete<a href=\"#post-101560-footnote3\">[3]<\/a>\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30f3\u30c6\u30ca\u3092\u505c\u6b62\u3057\u307e\u3059\u3002<br \/>\n2\u56de\u76ee\u306brunC\u3092\u5b9f\u884c\u3059\u308b\u3068\u304d\u306b\u306f\u3001runC\u306f\u3059\u3067\u306b\u4e0a\u66f8\u304d\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u30ea\u30d0\u30fc\u30b9 \u30b7\u30a7\u30eb \u30b9\u30af\u30ea\u30d7\u30c8\u304c\u4ee3\u308f\u308a\u306b\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2><a id=\"post-101560-the-fix\"><\/a>\u4fee\u6b63\u30d7\u30ed\u30b0\u30e9\u30e0<\/h2>\n<p>runC\u3068LXC\u306e\u4e21\u65b9\u306b\u3001\u540c\u3058\u624b\u6cd5\u3092\u4f7f\u7528\u3057\u3066\u30d1\u30c3\u30c1\u304c\u9069\u7528\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u3001LXC\u30d1\u30c3\u30c1 \u30b3\u30df\u30c3\u30c8\u3067\u660e\u78ba\u306b\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p style=\"background-color: whitesmoke;\"><tt>\u3053\u306e\u653b\u6483\u3092\u9632\u3050\u305f\u3081\u306b\u3001\u547c\u3073\u51fa\u3057\u30d0\u30a4\u30ca\u30ea\u304c\u8d77\u52d5\u307e\u305f\u306f\u30b3\u30f3\u30c6\u30ca\u306b\u8ffd\u52a0\u3055\u308c\u308b\u3068\u304d\u306b\u3001\u305d\u306e\u4e00\u6642\u30b3\u30d4\u30fc\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u30d1\u30c3\u30c1\u304cLXC\u306b\u9069\u7528\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u3001LXC\u306f\u3001memfd_create()\u30b7\u30b9\u30c6\u30e0 \u30b3\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u533f\u540d\u306e\u30e1\u30e2\u30ea\u5185\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u30b7\u30b9\u30c6\u30e0 \u30b3\u30fc\u30eb\u81ea\u4f53\u3092\u305d\u306e\u4e00\u6642\u30e1\u30e2\u30ea\u5185\u30d5\u30a1\u30a4\u30eb\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u305d\u306e\u5f8c\u3001\u3053\u308c\u4ee5\u4e0a\u5909\u66f4\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u5c01\u5370\u3055\u308c\u307e\u3059\u3002LXC\u306f\u3001\u6b21\u306b\u3001\u5143\u306e\u30c7\u30a3\u30b9\u30af\u4e0a\u306e\u30d0\u30a4\u30ca\u30ea\u306e\u4ee3\u308f\u308a\u306b\u3001\u3053\u306e\u5c01\u5370\u3055\u308c\u305f\u30e1\u30e2\u30ea\u5185\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u7279\u6a29\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u30db\u30b9\u30c8LXC\u30d0\u30a4\u30ca\u30ea\u3092\u4fb5\u5bb3\u3059\u308b\u66f8\u304d\u8fbc\u307f\u64cd\u4f5c\u304c\u3042\u308b\u3068\u3001\u30c7\u30a3\u30b9\u30af\u4e0a\u306e\u30db\u30b9\u30c8 \u30d0\u30a4\u30ca\u30ea\u3067\u306f\u306a\u304f\u3001\u4e00\u6642\u30e1\u30e2\u30ea\u5185\u30d0\u30a4\u30ca\u30ea\u306b\u5bfe\u3057\u3066\u66f8\u304d\u8fbc\u307f\u304c\u884c\u308f\u308c\u3001\u30db\u30b9\u30c8LXC\u30d0\u30a4\u30ca\u30ea\u306e\u6574\u5408\u6027\u306f\u4fdd\u6301\u3055\u308c\u307e\u3059\u3002\u307e\u305f\u3001\u3053\u306e\u4e00\u6642\u30e1\u30e2\u30ea\u5185LXC\u30d0\u30a4\u30ca\u30ea\u3082\u5c01\u5370\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u3053\u308c\u306b\u5bfe\u3059\u308b\u66f8\u304d\u8fbc\u307f\u3082\u5931\u6557\u3057\u307e\u3059\u3002<br \/>\n<\/tt><\/p>\n<p>runC\u306b\u306f\u3001\u3053\u308c\u3068\u540c\u3058\u65b9\u6cd5\u3092\u4f7f\u7528\u3057\u3066\u30d1\u30c3\u30c1\u304c\u9069\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002runC\u304c\u8d77\u52d5\u307e\u305f\u306f\u30b3\u30f3\u30c6\u30ca\u306b\u8ffd\u52a0\u3055\u308c\u308b\u3068\u3001\u305d\u308c\u81ea\u4f53\u306e\u4e00\u6642\u30b3\u30d4\u30fc\u304b\u3089\u518d\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u305d\u306e\u7d50\u679c\u3001\/proc\/[runc-pid]\/exe\u306f\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u3059\u3088\u3046\u306b\u306a\u308a\u3001runC\u30d0\u30a4\u30ca\u30ea\u306b\u30b3\u30f3\u30c6\u30ca\u5185\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001\u3053\u306e\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u3082<a href=\"https:\/\/manpages.courier-mta.org\/htmlman2\/memfd_create.2.html\">\u5c01\u5370<\/a>\u3055\u308c\u3066\u66f8\u304d\u8fbc\u307f\u304c\u9632\u6b62\u3055\u308c\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4e0a\u66f8\u304d\u3057\u3066\u3082\u3001\u30db\u30b9\u30c8\u304c\u4fb5\u5bb3\u3055\u308c\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u3053\u306e\u30d1\u30c3\u30c1\u3067\u306f\u3044\u304f\u3064\u304b\u554f\u984c\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002runC init\u30d7\u30ed\u30bb\u30b9\u304c\u30b3\u30f3\u30c6\u30ca\u306ecgroup<a href=\"https:\/\/docs.docker.com\/config\/containers\/resource_constraints\/\">\u30e1\u30e2\u30ea\u5236\u9650<\/a>\u3092\u81ea\u3089\u306b\u9069\u7528\u3057\u305f\u5f8c\u3067\u3001\u4e00\u6642runC\u30b3\u30d4\u30fc\u304c\u30e1\u30e2\u30ea\u5185\u306b\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002\u6bd4\u8f03\u7684\u4f4e\u3044\u30e1\u30e2\u30ea\u5236\u9650(10MB\u306a\u3069)\u3067\u5b9f\u884c\u3057\u3066\u3044\u308b\u30b3\u30f3\u30c6\u30ca\u306e\u5834\u5408\u3001\u3053\u308c\u306b\u3088\u308a\u3001runC init\u30d7\u30ed\u30bb\u30b9\u304c\u30b3\u30f3\u30c6\u30ca\u306b\u8ffd\u52a0\u3055\u308c\u308b\u3068\u3001\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u30e1\u30e2\u30ea\u4e0d\u8db3\u306e\u305f\u3081\u306b\u30ab\u30fc\u30cd\u30eb\u306b\u3088\u3063\u3066\u5f37\u5236\u7d42\u4e86\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3054\u8208\u5473\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u3053\u306e\u8907\u96d1\u306a\u554f\u984c\u306b\u95a2\u3059\u308b<a href=\"https:\/\/github.com\/opencontainers\/runc\/issues\/1980\">\u30a4\u30b7\u30e5\u30fc(issue)<\/a>\u304c\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u306b\u306f\u3001\u540c\u69d8\u306e\u554f\u984c\u3092\u5f15\u304d\u8d77\u3053\u3055\u306a\u3044\u3068\u601d\u308f\u308c\u308b\u4ee3\u66ff\u306e\u4fee\u6b63\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u3064\u3044\u3066\u306e\u8b70\u8ad6\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2><a id=\"post-101560-cve-2019-5736-and-privileged-containers\"><\/a>CVE-2019-5736\u3068\u7279\u6a29\u30b3\u30f3\u30c6\u30ca<\/h2>\n<p>\u4e00\u822c\u7684\u306a\u7d4c\u9a13\u5247\u3068\u3057\u3066\u3001(\u6240\u5b9a\u306e\u30b3\u30f3\u30c6\u30ca \u30e9\u30f3\u30bf\u30a4\u30e0\u306e)\u7279\u6a29\u30b3\u30f3\u30c6\u30ca\u306f(\u540c\u3058\u30e9\u30f3\u30bf\u30a4\u30e0\u306e)\u975e\u7279\u6a29\u30b3\u30f3\u30c6\u30ca\u3068\u6bd4\u3079\u3066\u5b89\u5168\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n\u524d\u8ff0\u306e\u3088\u3046\u306b\u3001\u3053\u306e\u8106\u5f31\u6027\u306f\u3001\u3059\u3079\u3066\u306eDocker\u30b3\u30f3\u30c6\u30ca\u306b\u5f71\u97ff\u3057\u307e\u3059\u304c\u3001LXC\u306e\u5834\u5408\u306f\u7279\u6a29\u30b3\u30f3\u30c6\u30ca\u306b\u3057\u304b\u5f71\u97ff\u3057\u307e\u305b\u3093\u3002\u3067\u306f\u3001LXC\u306e\u975e\u7279\u6a29\u30b3\u30f3\u30c6\u30ca\u306f\u8106\u5f31\u3067\u306f\u306a\u3044\u306e\u306b\u3001Docker\u306e\u975e\u7279\u6a29\u30b3\u30f3\u30c6\u30ca\u304c\u8106\u5f31\u306a\u306e\u306f\u3069\u3046\u3057\u3066\u3067\u3057\u3087\u3046\u304b? \u305d\u308c\u306f\u3001LXC\u3068Docker\u3067\u306f\u7279\u6a29\u30b3\u30f3\u30c6\u30ca\u3092\u5b9a\u7fa9\u3059\u308b\u65b9\u6cd5\u304c\u7570\u306a\u308b\u304b\u3089\u3067\u3059\u3002\u5b9f\u969b\u3001Docker\u306e\u975e\u7279\u6a29\u30b3\u30f3\u30c6\u30ca\u306f\u3001<a href=\"https:\/\/linuxcontainers.org\/lxc\/security\/#privileged-containers\">LXC\u306e\u8003\u3048\u65b9<\/a>\u306b\u5f93\u3048\u3070\u3001\u7279\u6a29\u30b3\u30f3\u30c6\u30ca\u3067\u3042\u308b\u3068\u898b\u306a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p style=\"background-color: whitesmoke;\"><tt>\u7279\u6a29\u30b3\u30f3\u30c6\u30ca\u306f\u3001\u30b3\u30f3\u30c6\u30ca\u306euid 0\u304c\u30db\u30b9\u30c8\u306euid 0\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3055\u308c\u308b\u4efb\u610f\u306e\u30b3\u30f3\u30c6\u30ca\u3068\u3057\u3066\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/tt><\/p>\n<p>\u4e3b\u306a\u9055\u3044\u306f\u3001LXC\u3067\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u3001\u975e\u7279\u6a29\u30b3\u30f3\u30c6\u30ca\u3092\u5225\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u524d\u7a7a\u9593\u3067\u5b9f\u884c\u3057\u307e\u3059\u304c\u3001Docker\u3067\u306f\u5b9f\u884c\u3057\u307e\u305b\u3093\u3002<br \/>\n\u30e6\u30fc\u30b6\u30fc\u540d\u524d\u7a7a\u9593\u306f\u30b3\u30f3\u30c6\u30ca\u306eroot\u3092\u30db\u30b9\u30c8\u306eroot\u304b\u3089\u5206\u96e2\u3059\u308b\u306e\u306b\u4f7f\u7528\u3067\u304d\u308bLinux\u306e\u6a5f\u80fd\u3067\u3059\u3002\u30b3\u30f3\u30c6\u30ca\u5185\u306eroot\u306f\u3001\u305d\u306e\u4ed6\u3059\u3079\u3066\u306e\u30e6\u30fc\u30b6\u30fc\u3068\u540c\u69d8\u306b\u3001\u30db\u30b9\u30c8\u306e\u975e\u7279\u6a29\u30e6\u30fc\u30b6\u30fc\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3055\u308c\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u30d7\u30ed\u30bb\u30b9\u306b\u306f\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u64cd\u4f5c\u306b\u95a2\u3059\u308broot\u30a2\u30af\u30bb\u30b9\u6a29\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u30b3\u30f3\u30c6\u30ca\u5916\u306e\u64cd\u4f5c\u306b\u3064\u3044\u3066\u306f\u7279\u6a29\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u8a73\u7d30\u306a\u8aac\u660e\u306b\u3064\u3044\u3066\u306f\u3001LWN\u306e<a href=\"https:\/\/lwn.net\/Articles\/531114\/\">\u4e00\u9023\u306e\u540d\u524d\u7a7a\u9593<\/a>\u306b\u3064\u3044\u3066\u306e\u8a18\u4e8b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<figure id=\"attachment_101582\" aria-describedby=\"caption-attachment-101582\" style=\"width: 1024px\" class=\"wp-caption aligncenter\"><img  class=\"wp-image-101582 size-large lozad\"  data-src=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-1-1024x415.png\" alt=\"\u753b\u50cf\u306fKinvolk\u793e\u3088\u308a\u5f15\u7528\" width=\"1024\" height=\"415\" srcset=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-1-1024x415.png 1024w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-1-300x121.png 300w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-1-768x311.png 768w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-1-900x364.png 900w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-1-370x150.png 370w, https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/02\/unnamed-file-1.png 1203w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption id=\"caption-attachment-101582\" class=\"wp-caption-text\">\u753b\u50cf\u306f<a href=\"https:\/\/kinvolk.io\/blog\/2018\/04\/towards-unprivileged-container-builds\/#uid-mappings\">Kinvolk<\/a>\u793e\u3088\u308a\u5f15\u7528<\/figcaption><\/figure>\n<p>\u3055\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u524d\u7a7a\u9593\u3067\u30b3\u30f3\u30c6\u30ca\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u3053\u306e\u8106\u5f31\u6027\u306f\u3069\u306e\u3088\u3046\u306b\u7de9\u548c\u3055\u308c\u308b\u306e\u3067\u3057\u3087\u3046\u304b?<br \/>\n\u653b\u6483\u8005\u306f\u30b3\u30f3\u30c6\u30ca\u5185\u306eroot\u3067\u3059\u304c\u3001\u30db\u30b9\u30c8\u4e0a\u306e\u975e\u7279\u6a29\u30e6\u30fc\u30b6\u30fc\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3055\u308c\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u653b\u6483\u8005\u304c\u66f8\u304d\u8fbc\u307f\u306e\u305f\u3081\u306b\u30db\u30b9\u30c8\u306erunC\u30d0\u30a4\u30ca\u30ea\u3092\u958b\u3053\u3046\u3068\u3059\u308b\u3068\u3001\u30ab\u30fc\u30cd\u30eb\u306b\u3088\u3063\u3066\u62d2\u5426\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u306a\u305cDocker\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u5225\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u524d\u7a7a\u9593\u3067\u30b3\u30f3\u30c6\u30ca\u3092\u5b9f\u884c\u3057\u306a\u3044\u306e\u304b\u3001\u7591\u554f\u306b\u601d\u3046\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u305d\u306e\u7406\u7531\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u524d\u7a7a\u9593\u306b\u306f\u30b3\u30f3\u30c6\u30ca\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306b\u3044\u304f\u3064\u304b\u6b20\u9665\u304c\u3042\u308b\u304b\u3089\u3067\u3059\u304c\u3001\u3053\u308c\u306f\u3001\u3053\u306e\u6295\u7a3f\u306e\u7bc4\u56f2\u304b\u3089\u306f\u5c11\u3005\u5916\u308c\u3066\u3044\u307e\u3059\u3002\u3054\u8208\u5473\u304c\u3042\u308b\u5834\u5408\u306f\u3001<a href=\"https:\/\/docs.docker.com\/engine\/security\/userns-remap\/#user-namespace-known-limitations\">Docker<\/a>\u3068<a href=\"https:\/\/coreos.com\/rkt\/docs\/latest\/devel\/user-namespaces.html\">rkt<\/a> (\u5225\u306e\u30b3\u30f3\u30c6\u30ca \u30e9\u30f3\u30bf\u30a4\u30e0)\u306e\u3069\u3061\u3089\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u3082\u30e6\u30fc\u30b6\u30fc\u540d\u524d\u7a7a\u9593\u3067\u5b9f\u884c\u4e2d\u306e\u30b3\u30f3\u30c6\u30ca\u306b\u95a2\u3059\u308b\u5236\u9650\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u3061\u3089\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2><a id=\"post-101560-ending-note\"><\/a>\u304a\u308f\u308a\u306b<\/h2>\n<p>\u3053\u306e\u6295\u7a3f\u304b\u3089\u3001\u3053\u306e\u8106\u5f31\u6027\u306e\u3055\u307e\u3056\u307e\u306a\u5074\u9762\u306b\u3064\u3044\u3066\u5c11\u3057\u3067\u3082\u6d1e\u5bdf\u3044\u305f\u3060\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\u3002runC\u3001Docker\u3001LXC\u306e\u3044\u305a\u308c\u304b\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u30d1\u30c3\u30c1\u3092\u9069\u7528\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u3078\u306e\u66f4\u65b0\u3092\u5fd8\u308c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<br \/>\n\u3054\u8cea\u554f\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u96fb\u5b50\u30e1\u30fc\u30eb\u307e\u305f\u306f<a href=\"https:\/\/twitter.com\/TwistlockLabs\">@TwistlockLabs<\/a>\u304b\u3089\u304a\u6c17\u8efd\u306b\u3054\u9023\u7d61\u304f\u3060\u3055\u3044\u3002<\/p>\n<hr \/>\n<p><a href=\"#post-101560-back1\">[1]<\/a> \u8ffd\u8a18\u3068\u3057\u3066\u3001\u7279\u6a29Docker\u30b3\u30f3\u30c6\u30ca(\u65b0\u3057\u3044\u30d1\u30c3\u30c1\u9069\u7528\u524d)\u306f\u3001runC init\u30d7\u30ed\u30bb\u30b9\u306e\/proc\/pid\/exe\u3092\u4f7f\u7528\u3057\u3066\u3001runC\u30d0\u30a4\u30ca\u30ea\u3092\u4e0a\u66f8\u304d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u6b63\u78ba\u306b\u306f\u3001\u5fc5\u8981\u306a\u7279\u5b9a\u306e\u6a29\u9650\u306fSYS_CAP_PTRACE\u3068AppArmo\u306e\u7121\u52b9\u5316\u3067\u3059\u3002<\/p>\n<p><a href=\"#post-101560-back2\">[2]<\/a> Windows DLL\u306b\u7cbe\u901a\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u3053\u308c\u306fDllMain\u306b\u4f3c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"#post-101560-back3\">[3]<\/a> overwrite_runc\u306f\u30b3\u30f3\u30c6\u30ca\u306einit\u30d7\u30ed\u30bb\u30b9(PID 1)\u3068\u3057\u3066\u5b9f\u884c\u3055\u308c\u305f\u305f\u3081\u3001overwrite_runc\u304c\u7d42\u4e86\u3059\u308b\u3068\u3001\u30b3\u30f3\u30c6\u30ca\u306f\u505c\u6b62\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 \u5148\u9031(2019\u5e742\u670811\u65e5)\u3001runC\u306e\u65b0\u305f\u306a\u8106\u5f31\u6027\u304c\u4fdd\u5b88\u7ba1\u7406\u8005\u306b\u3088\u3063\u3066\u5831\u544a\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u3001Adam Iwaniuk\u6c0f\u3068Borys Poplawski\u6c0f\u306b\u3088\u3063\u3066\u767a\u898b\u3055\u308c\u305f\u3082\u306e\u3067\u3059\u3002CVE-2019-5736\u3068\u547c<\/p>\n","protected":false},"author":323,"featured_media":101561,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[4469,4436,4428,4470],"tags":[6522,4785,4627,5899,5979,4849,5901],"product_categories":[],"coauthors":[1484],"class_list":["post-101560","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vulnerabilities","category-cloud-cybersecurity-research-ja","category-threat-research-ja","category-vulnerabilities-ja","tag-container-breakout","tag-container-escape-ja","tag-containers-ja","tag-cve-2019-5736-ja","tag-docker-ja","tag-exploit-ja","tag-runc-ja"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>runC\u306b\u3088\u308bDocker\u30b3\u30f3\u30c6\u30ca\u30d6\u30ec\u30fc\u30af\u30a2\u30a6\u30c8: CVE-2019-5736\u306e\u89e3\u8aac<\/title>\n<meta name=\"description\" content=\"2019\u5e742\u670811\u65e5\u3001runC\u306e\u65b0\u305f\u306a\u8106\u5f31\u6027\u304c\u4fdd\u5b88\u7ba1\u7406\u8005\u306b\u3088\u3063\u3066\u5831\u544a\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u306e\u8106\u5f31\u6027\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308bDocker\u30b3\u30f3\u30c6\u30ca\u306b\u5f71\u97ff\u3092\u53ca\u307c\u3059\u3053\u3068\u304b\u3089\u3001\u30db\u30b9\u30c8\u306b\u5bfe\u3059\u308broot\u30ec\u30d9\u30eb\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u5165\u624b\u3059\u308b\u305f\u3081\u306b\u653b\u6483\u8005\u304c\u5229\u7528\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u672c\u7a3f\u3067\u306f\u5f53\u8a72\u8106\u5f31\u6027\u3068\u305d\u306e\u591a\u69d8\u306a\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u65b9\u6cd5\u306b\u3064\u3044\u3066\u5305\u62ec\u7684\u306a\u6280\u8853\u7684\u8003\u5bdf\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/unit42.paloaltonetworks.com\/ja\/breaking-docker-via-runc-explaining-cve-2019-5736\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"runC\u306b\u3088\u308bDocker\u30b3\u30f3\u30c6\u30ca\u30d6\u30ec\u30fc\u30af\u30a2\u30a6\u30c8: CVE-2019-5736\u306e\u89e3\u8aac\" \/>\n<meta property=\"og:description\" content=\"2019\u5e742\u670811\u65e5\u3001runC\u306e\u65b0\u305f\u306a\u8106\u5f31\u6027\u304c\u4fdd\u5b88\u7ba1\u7406\u8005\u306b\u3088\u3063\u3066\u5831\u544a\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u306e\u8106\u5f31\u6027\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308bDocker\u30b3\u30f3\u30c6\u30ca\u306b\u5f71\u97ff\u3092\u53ca\u307c\u3059\u3053\u3068\u304b\u3089\u3001\u30db\u30b9\u30c8\u306b\u5bfe\u3059\u308broot\u30ec\u30d9\u30eb\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u5165\u624b\u3059\u308b\u305f\u3081\u306b\u653b\u6483\u8005\u304c\u5229\u7528\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u672c\u7a3f\u3067\u306f\u5f53\u8a72\u8106\u5f31\u6027\u3068\u305d\u306e\u591a\u69d8\u306a\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u65b9\u6cd5\u306b\u3064\u3044\u3066\u5305\u62ec\u7684\u306a\u6280\u8853\u7684\u8003\u5bdf\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unit42.paloaltonetworks.com\/ja\/breaking-docker-via-runc-explaining-cve-2019-5736\/\" \/>\n<meta property=\"og:site_name\" content=\"Unit 42\" \/>\n<meta property=\"article:published_time\" content=\"2019-02-21T20:00:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-11-29T02:47:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/11\/yuvaloger.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"362\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Yuval Avrahami\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"runC\u306b\u3088\u308bDocker\u30b3\u30f3\u30c6\u30ca\u30d6\u30ec\u30fc\u30af\u30a2\u30a6\u30c8: CVE-2019-5736\u306e\u89e3\u8aac\" \/>\n<meta name=\"twitter:description\" content=\"2019\u5e742\u670811\u65e5\u3001runC\u306e\u65b0\u305f\u306a\u8106\u5f31\u6027\u304c\u4fdd\u5b88\u7ba1\u7406\u8005\u306b\u3088\u3063\u3066\u5831\u544a\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u306e\u8106\u5f31\u6027\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308bDocker\u30b3\u30f3\u30c6\u30ca\u306b\u5f71\u97ff\u3092\u53ca\u307c\u3059\u3053\u3068\u304b\u3089\u3001\u30db\u30b9\u30c8\u306b\u5bfe\u3059\u308broot\u30ec\u30d9\u30eb\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u5165\u624b\u3059\u308b\u305f\u3081\u306b\u653b\u6483\u8005\u304c\u5229\u7528\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u672c\u7a3f\u3067\u306f\u5f53\u8a72\u8106\u5f31\u6027\u3068\u305d\u306e\u591a\u69d8\u306a\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u65b9\u6cd5\u306b\u3064\u3044\u3066\u5305\u62ec\u7684\u306a\u6280\u8853\u7684\u8003\u5bdf\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"runC\u306b\u3088\u308bDocker\u30b3\u30f3\u30c6\u30ca\u30d6\u30ec\u30fc\u30af\u30a2\u30a6\u30c8: CVE-2019-5736\u306e\u89e3\u8aac","description":"2019\u5e742\u670811\u65e5\u3001runC\u306e\u65b0\u305f\u306a\u8106\u5f31\u6027\u304c\u4fdd\u5b88\u7ba1\u7406\u8005\u306b\u3088\u3063\u3066\u5831\u544a\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u306e\u8106\u5f31\u6027\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308bDocker\u30b3\u30f3\u30c6\u30ca\u306b\u5f71\u97ff\u3092\u53ca\u307c\u3059\u3053\u3068\u304b\u3089\u3001\u30db\u30b9\u30c8\u306b\u5bfe\u3059\u308broot\u30ec\u30d9\u30eb\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u5165\u624b\u3059\u308b\u305f\u3081\u306b\u653b\u6483\u8005\u304c\u5229\u7528\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u672c\u7a3f\u3067\u306f\u5f53\u8a72\u8106\u5f31\u6027\u3068\u305d\u306e\u591a\u69d8\u306a\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u65b9\u6cd5\u306b\u3064\u3044\u3066\u5305\u62ec\u7684\u306a\u6280\u8853\u7684\u8003\u5bdf\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/unit42.paloaltonetworks.com\/ja\/breaking-docker-via-runc-explaining-cve-2019-5736\/","og_locale":"ja_JP","og_type":"article","og_title":"runC\u306b\u3088\u308bDocker\u30b3\u30f3\u30c6\u30ca\u30d6\u30ec\u30fc\u30af\u30a2\u30a6\u30c8: CVE-2019-5736\u306e\u89e3\u8aac","og_description":"2019\u5e742\u670811\u65e5\u3001runC\u306e\u65b0\u305f\u306a\u8106\u5f31\u6027\u304c\u4fdd\u5b88\u7ba1\u7406\u8005\u306b\u3088\u3063\u3066\u5831\u544a\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u306e\u8106\u5f31\u6027\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308bDocker\u30b3\u30f3\u30c6\u30ca\u306b\u5f71\u97ff\u3092\u53ca\u307c\u3059\u3053\u3068\u304b\u3089\u3001\u30db\u30b9\u30c8\u306b\u5bfe\u3059\u308broot\u30ec\u30d9\u30eb\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u5165\u624b\u3059\u308b\u305f\u3081\u306b\u653b\u6483\u8005\u304c\u5229\u7528\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u672c\u7a3f\u3067\u306f\u5f53\u8a72\u8106\u5f31\u6027\u3068\u305d\u306e\u591a\u69d8\u306a\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u65b9\u6cd5\u306b\u3064\u3044\u3066\u5305\u62ec\u7684\u306a\u6280\u8853\u7684\u8003\u5bdf\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002","og_url":"https:\/\/unit42.paloaltonetworks.com\/ja\/breaking-docker-via-runc-explaining-cve-2019-5736\/","og_site_name":"Unit 42","article_published_time":"2019-02-21T20:00:55+00:00","article_modified_time":"2019-11-29T02:47:12+00:00","og_image":[{"width":900,"height":362,"url":"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/11\/yuvaloger.jpg","type":"image\/jpeg"}],"author":"Yuval Avrahami","twitter_card":"summary_large_image","twitter_title":"runC\u306b\u3088\u308bDocker\u30b3\u30f3\u30c6\u30ca\u30d6\u30ec\u30fc\u30af\u30a2\u30a6\u30c8: CVE-2019-5736\u306e\u89e3\u8aac","twitter_description":"2019\u5e742\u670811\u65e5\u3001runC\u306e\u65b0\u305f\u306a\u8106\u5f31\u6027\u304c\u4fdd\u5b88\u7ba1\u7406\u8005\u306b\u3088\u3063\u3066\u5831\u544a\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u306e\u8106\u5f31\u6027\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308bDocker\u30b3\u30f3\u30c6\u30ca\u306b\u5f71\u97ff\u3092\u53ca\u307c\u3059\u3053\u3068\u304b\u3089\u3001\u30db\u30b9\u30c8\u306b\u5bfe\u3059\u308broot\u30ec\u30d9\u30eb\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u5165\u624b\u3059\u308b\u305f\u3081\u306b\u653b\u6483\u8005\u304c\u5229\u7528\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u672c\u7a3f\u3067\u306f\u5f53\u8a72\u8106\u5f31\u6027\u3068\u305d\u306e\u591a\u69d8\u306a\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u65b9\u6cd5\u306b\u3064\u3044\u3066\u5305\u62ec\u7684\u306a\u6280\u8853\u7684\u8003\u5bdf\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/unit42.paloaltonetworks.com\/ja\/breaking-docker-via-runc-explaining-cve-2019-5736\/#article","isPartOf":{"@id":"https:\/\/unit42.paloaltonetworks.com\/ja\/breaking-docker-via-runc-explaining-cve-2019-5736\/"},"author":{"name":"Ayako Kimijima","@id":"https:\/\/unit42.paloaltonetworks.com\/#\/schema\/person\/5502567dd627cdd5a306432cd651a90e"},"headline":"runC\u306b\u3088\u308bDocker\u30b3\u30f3\u30c6\u30ca\u30d6\u30ec\u30fc\u30af\u30a2\u30a6\u30c8: CVE-2019-5736\u306e\u89e3\u8aac","datePublished":"2019-02-21T20:00:55+00:00","dateModified":"2019-11-29T02:47:12+00:00","mainEntityOfPage":{"@id":"https:\/\/unit42.paloaltonetworks.com\/ja\/breaking-docker-via-runc-explaining-cve-2019-5736\/"},"wordCount":445,"commentCount":0,"image":{"@id":"https:\/\/unit42.paloaltonetworks.com\/ja\/breaking-docker-via-runc-explaining-cve-2019-5736\/#primaryimage"},"thumbnailUrl":"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/11\/yuvaloger.jpg","keywords":["container breakout","container escape","Containers","CVE-2019-5736","Docker","exploit","runC"],"articleSection":["Vulnerabilities","\u30af\u30e9\u30a6\u30c9 \u30b5\u30a4\u30d0\u30fc\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 \u30ea\u30b5\u30fc\u30c1","\u8105\u5a01\u30ea\u30b5\u30fc\u30c1","\u8106\u5f31\u6027"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/unit42.paloaltonetworks.com\/ja\/breaking-docker-via-runc-explaining-cve-2019-5736\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/unit42.paloaltonetworks.com\/ja\/breaking-docker-via-runc-explaining-cve-2019-5736\/","url":"https:\/\/unit42.paloaltonetworks.com\/ja\/breaking-docker-via-runc-explaining-cve-2019-5736\/","name":"runC\u306b\u3088\u308bDocker\u30b3\u30f3\u30c6\u30ca\u30d6\u30ec\u30fc\u30af\u30a2\u30a6\u30c8: CVE-2019-5736\u306e\u89e3\u8aac","isPartOf":{"@id":"https:\/\/unit42.paloaltonetworks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/unit42.paloaltonetworks.com\/ja\/breaking-docker-via-runc-explaining-cve-2019-5736\/#primaryimage"},"image":{"@id":"https:\/\/unit42.paloaltonetworks.com\/ja\/breaking-docker-via-runc-explaining-cve-2019-5736\/#primaryimage"},"thumbnailUrl":"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/11\/yuvaloger.jpg","datePublished":"2019-02-21T20:00:55+00:00","dateModified":"2019-11-29T02:47:12+00:00","author":{"@id":"https:\/\/unit42.paloaltonetworks.com\/#\/schema\/person\/5502567dd627cdd5a306432cd651a90e"},"description":"2019\u5e742\u670811\u65e5\u3001runC\u306e\u65b0\u305f\u306a\u8106\u5f31\u6027\u304c\u4fdd\u5b88\u7ba1\u7406\u8005\u306b\u3088\u3063\u3066\u5831\u544a\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u306e\u8106\u5f31\u6027\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308bDocker\u30b3\u30f3\u30c6\u30ca\u306b\u5f71\u97ff\u3092\u53ca\u307c\u3059\u3053\u3068\u304b\u3089\u3001\u30db\u30b9\u30c8\u306b\u5bfe\u3059\u308broot\u30ec\u30d9\u30eb\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u5165\u624b\u3059\u308b\u305f\u3081\u306b\u653b\u6483\u8005\u304c\u5229\u7528\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u672c\u7a3f\u3067\u306f\u5f53\u8a72\u8106\u5f31\u6027\u3068\u305d\u306e\u591a\u69d8\u306a\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u65b9\u6cd5\u306b\u3064\u3044\u3066\u5305\u62ec\u7684\u306a\u6280\u8853\u7684\u8003\u5bdf\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/unit42.paloaltonetworks.com\/ja\/breaking-docker-via-runc-explaining-cve-2019-5736\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unit42.paloaltonetworks.com\/ja\/breaking-docker-via-runc-explaining-cve-2019-5736\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/unit42.paloaltonetworks.com\/ja\/breaking-docker-via-runc-explaining-cve-2019-5736\/#primaryimage","url":"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/11\/yuvaloger.jpg","contentUrl":"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2019\/11\/yuvaloger.jpg","width":900,"height":362},{"@type":"BreadcrumbList","@id":"https:\/\/unit42.paloaltonetworks.com\/ja\/breaking-docker-via-runc-explaining-cve-2019-5736\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/unit42.paloaltonetworks.com\/ja\/"},{"@type":"ListItem","position":2,"name":"runC\u306b\u3088\u308bDocker\u30b3\u30f3\u30c6\u30ca\u30d6\u30ec\u30fc\u30af\u30a2\u30a6\u30c8: CVE-2019-5736\u306e\u89e3\u8aac"}]},{"@type":"WebSite","@id":"https:\/\/unit42.paloaltonetworks.com\/#website","url":"https:\/\/unit42.paloaltonetworks.com\/","name":"Unit 42","description":"Palo Alto Networks","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unit42.paloaltonetworks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/unit42.paloaltonetworks.com\/#\/schema\/person\/5502567dd627cdd5a306432cd651a90e","name":"Ayako Kimijima","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/unit42.paloaltonetworks.com\/#\/schema\/person\/image\/4ffb3c2d260a0150fb91b3715442f8b3","url":"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2018\/11\/unit-news-meta.svg","contentUrl":"https:\/\/unit42.paloaltonetworks.com\/wp-content\/uploads\/2018\/11\/unit-news-meta.svg","caption":"Ayako Kimijima"},"url":"https:\/\/unit42.paloaltonetworks.com\/ja\/author\/akimijima\/"}]}},"_links":{"self":[{"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/posts\/101560","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/users\/323"}],"replies":[{"embeddable":true,"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/comments?post=101560"}],"version-history":[{"count":7,"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/posts\/101560\/revisions"}],"predecessor-version":[{"id":101589,"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/posts\/101560\/revisions\/101589"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/media\/101561"}],"wp:attachment":[{"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/media?parent=101560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/categories?post=101560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/tags?post=101560"},{"taxonomy":"product_categories","embeddable":true,"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/product_categories?post=101560"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/unit42.paloaltonetworks.com\/ja\/wp-json\/wp\/v2\/coauthors?post=101560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}