{"id":100548,"date":"2021-06-20T10:22:54","date_gmt":"2021-06-20T08:22:55","guid":{"rendered":"https:\/\/prohoster.info\/blog\/novosti-interneta\/uyazvimost-v-yadre-linux-zatragivayushhaya-setevoj-protokol-can-bcm"},"modified":"2021-06-20T10:22:54","modified_gmt":"2021-06-20T08:22:55","slug":"uyazvimost-v-yadre-linux-zatragivayushhaya-setevoj-protokol-can-bcm","status":"publish","type":"post","link":"https:\/\/prohoster.info\/sq\/blog\/news\/uyazvimost-v-yadre-linux-zatragivayushhaya-setevoj-protokol-can-bcm","title":{"rendered":"Dob\u00ebsi n\u00eb kernelin Linux q\u00eb prek protokollin e rrjetit CAN BCM","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>N\u00eb kernelin Linux \u00ebsht\u00eb zbuluar nj\u00eb dob\u00ebsi (CVE-2021-3609) q\u00eb i lejon nj\u00eb p\u00ebrdoruesi lokal t\u00eb rris\u00eb privilegjet e tij n\u00eb sistem. Problemi shkaktohet nga nj\u00eb race condition n\u00eb implementimin e protokollit CAN BCM dhe shfaqet n\u00eb versionet e kernelit Linux nga 2.6.25 deri te 5.13-rc6. N\u00eb distribucionet, problemi ende mbetet i pazgjidhur (RHEL, Fedora, Debian, Ubuntu, SUSE, Arch).     <\/p>\n<p>Studiuesi q\u00eb zbuloi dob\u00ebsin\u00eb arriti t\u00eb p\u00ebrgatis\u00eb nj\u00eb exploit p\u00ebr marrjen e t\u00eb drejtave root n\u00eb sisteme me kernel Linux 5.4 e m\u00eb t\u00eb reja; mes t\u00eb tjerash, u demonstrua mund\u00ebsia e nj\u00eb sulmi t\u00eb suksessh\u00ebm n\u00eb Ubuntu 20.04.02 LTS. Nuk p\u00ebrjashtohet mund\u00ebsia e p\u00ebrshtatjes s\u00eb exploit-it edhe p\u00ebr kernel\u00eb m\u00eb t\u00eb vjet\u00ebr (n\u00eb kernelin 5.4 kodi CAN BCM (net\/can\/bcm.c) u kalua nga hrtimer_tasklet n\u00eb HRTIMER_MODE_SOFT).      <\/p>\n<p>Protokolli CAN BCM lejon regjistrimin e nj\u00eb p\u00ebrpunuesi t\u00eb personalizuar p\u00ebr mesazhet q\u00eb vijn\u00eb p\u00ebrmes bus-it CAN (controller area network) dhe lidhjen e tij me nj\u00eb socket t\u00eb caktuar t\u00eb rrjetit. Kur mb\u00ebrrin nj\u00eb mesazh hyr\u00ebs, thirret funksioni bcm_rx_handler(). Sulmuesi mund t\u00eb shfryt\u00ebzoj\u00eb race condition dhe t\u00eb arrij\u00eb mbylljen e socket-it t\u00eb rrjetit nj\u00ebkoh\u00ebsisht me ekzekutimin e bcm_rx_handler(). Gjat\u00eb mbylljes s\u00eb socket-it thirret funksioni bcm_release(), n\u00eb t\u00eb cilin lirohet memoria e caktuar p\u00ebr strukturat bcm_op dhe bcm_sock, t\u00eb cilat vazhdojn\u00eb t\u00eb p\u00ebrdoren nga p\u00ebrpunuesi bcm_rx_handler() q\u00eb ende po ekzekutohet. Kjo krijon nj\u00eb situat\u00eb q\u00eb \u00e7on n\u00eb akses te nj\u00eb bllok memorieje i liruar tashm\u00eb (use-after-free).    <\/p>\n<p>Sulmi reduktohet n\u00eb hapjen e dy socket-eve CAN BCM dhe lidhjen e tyre me nd\u00ebrfaqen vcan. N\u00eb socket-in e par\u00eb kryhet thirrja sendmsg() me flamurin RX_SETUP p\u00ebr konfigurimin e p\u00ebrpunuesit t\u00eb mesazheve hyr\u00ebse CAN, nd\u00ebrsa n\u00eb socket-in e dyt\u00eb kryhet thirrja sendmsg() p\u00ebr d\u00ebrgimin e nj\u00eb mesazhi te socket-i i par\u00eb. Pasi mesazhi mb\u00ebrrin, aktivizohet thirrja bcm_rx_handler(), dhe sulmuesi zgjedh momentin e duhur p\u00ebr t\u00eb mbyllur socket-in e par\u00eb, gj\u00eb q\u00eb sjell nisjen e bcm_release() dhe lirimin e strukturave bcm_op dhe bcm_sock, edhe pse ekzekutimi i bcm_rx_handler() ende nuk ka p\u00ebrfunduar.   <\/p>\n<p>Dollap\u00ebrmes manipulimeve me p\u00ebrmbajtjen bcm_sock, sulmuesi mund t\u00eb ridrejtoj\u00eb treguesin n\u00eb funksionin sk-&gt;sk_data_ready(sk), t\u00eb orientoj\u00eb ekzekutimin dhe, duke p\u00ebrdorur teknika t\u00eb programimit t\u00eb orientuar nga kthimi (ROP - Return-Oriented Programming), t\u00eb organizoj\u00eb ri-shkrimin e parametrave modprobe_path dhe t\u00eb arrij\u00eb realizimin e kodit t\u00eb tij me t\u00eb drejtat root. Duke p\u00ebrdorur teknik\u00ebn ROP, sulmuesi nuk p\u00ebrpiqet t\u00eb vendos\u00eb kodin e tij n\u00eb memorie, por operon me cop\u00ebza t\u00eb instrukcioneve t\u00eb makin\u00ebs q\u00eb ekzistojn\u00eb tashm\u00eb n\u00eb bibliotekat e ngarkuara, t\u00eb cilat p\u00ebrfundojn\u00eb me nj\u00eb instrukcion p\u00ebr kthimin e kontrollit (zakonisht, k\u00ebto jan\u00eb fundet e funksioneve t\u00eb bibliotekave). Puna e eksploitatit p\u00ebrmblidhet n\u00eb nd\u00ebrtimin e nj\u00eb zinxhiri thirrjesh t\u00eb cop\u00ebzave t\u00eb ngjashme (\"gadgets\") p\u00ebr t\u00eb marr\u00eb funksionalitetin e nevojsh\u00ebm.      <center><img decoding=\"async\" alt=\"Dob\u00ebsi n\u00eb kernelin Linux q\u00eb prek protokollin e rrjetit CAN BCM\" src=\"\/wp-content\/uploads\/2021\/06\/60534f0194a819c8401abf2ec53b3a9a.png\" style=\"display:block;margin: 0 auto;\" \/><\/center>          <\/p>\n<p>P\u00ebr sulmin k\u00ebrkohet qasje p\u00ebr krijimin e soket\u00ebve CAN dhe nj\u00eb nd\u00ebrfaqe rrjeti vcan e konfiguruar. T\u00eb drejtat e nevojshme p\u00ebr kryerjen e sulmit mund t\u00eb merren nga nj\u00eb p\u00ebrdorues i paprivilegjuar n\u00eb kontejner\u00ebt e krijuar n\u00eb sisteme me mb\u00ebshtetje t\u00eb aktivizuar p\u00ebr user namespaces. P\u00ebr shembull, user namespaces \u00ebsht\u00eb i aktivizuar si parazgjedhje n\u00eb Ubuntu dhe Fedora, por nuk \u00ebsht\u00eb aktiv n\u00eb Debian dhe RHEL.<br \/>\n<br \/>Burimi: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=55359\">opennet.ru<\/a> <\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0412 \u044f\u0434\u0440\u0435 Linux \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0430 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c (CVE-2021-3609), \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0430\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u0441\u0432\u043e\u0438 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432\u044b\u0437\u0432\u0430\u043d\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043c \u0433\u043e\u043d\u043a\u0438 \u0432 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 CAN BCM \u0438 \u043f\u0440\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u0445 \u044f\u0434\u0440\u0430 Linux \u0441 2.6.25 \u043f\u043e 5.13-rc6. \u0412 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043f\u043e\u043a\u0430 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u043d\u0435\u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 (RHEL, Fedora, Debian, Ubuntu, SUSE, Arch). \u0412\u044b\u044f\u0432\u0438\u0432\u0448\u0438\u0439 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441\u043c\u043e\u0433 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u044d\u043a\u0441\u043f\u043b\u043e\u0438\u0442 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u0430\u0432 root [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":100549,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-100548","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0412 \u044f\u0434\u0440\u0435 Linux \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0430 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c (CVE-2021-3609), \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0430\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u0441\u0432\u043e\u0438 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/sq\/blog\/news\/uyazvimost-v-yadre-linux-zatragivayushhaya-setevoj-protokol-can-bcm\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"sq_AL\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0423\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c \u0432 \u044f\u0434\u0440\u0435 Linux, \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u044e\u0449\u0430\u044f \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b CAN BCM | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0412 \u044f\u0434\u0440\u0435 Linux \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0430 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c (CVE-2021-3609), \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0430\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u0441\u0432\u043e\u0438 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/sq\/blog\/news\/uyazvimost-v-yadre-linux-zatragivayushhaya-setevoj-protokol-can-bcm\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2021-06-20T08:22:55+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2021-06-20T08:22:55+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Cenueshm\u00ebri n\u00eb kernelin Linux q\u00eb prek protokollin e rrjetit CAN BCM | ProHoster","description":"N\u00eb kernelin Linux \u00ebsht\u00eb zbuluar nj\u00eb cenueshm\u00ebri (CVE-2021-3609), e cila i lejon nj\u00eb p\u00ebrdoruesi lokal t\u00eb rris\u00eb privilegjet e veta n\u00eb sistem.","canonical_url":"https:\/\/prohoster.info\/sq\/blog\/news\/uyazvimost-v-yadre-linux-zatragivayushhaya-setevoj-protokol-can-bcm","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"sq_AL","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0423\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c \u0432 \u044f\u0434\u0440\u0435 Linux, \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u044e\u0449\u0430\u044f \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b CAN BCM | ProHoster","og:description":"\u0412 \u044f\u0434\u0440\u0435 Linux \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0430 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c (CVE-2021-3609), \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0430\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u0441\u0432\u043e\u0438 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435.","og:url":"https:\/\/prohoster.info\/sq\/blog\/news\/uyazvimost-v-yadre-linux-zatragivayushhaya-setevoj-protokol-can-bcm","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2021-06-20T08:22:55+00:00","article:modified_time":"2021-06-20T08:22:55+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"100548","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-06-20 08:24:40","updated":"2022-10-01 08:48:35","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/100548","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/comments?post=100548"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/100548\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/media\/100549"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/media?parent=100548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/categories?post=100548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/tags?post=100548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}