{"id":1942,"date":"2026-07-22T19:22:54","date_gmt":"2026-07-22T19:22:54","guid":{"rendered":"https:\/\/thedigitalfortress.us\/?p=1942"},"modified":"2026-07-22T19:22:54","modified_gmt":"2026-07-22T19:22:54","slug":"ubuntu-snap-confine-flaw-could-give-local-users-root-on-default-desktop-installs","status":"publish","type":"post","link":"https:\/\/thedigitalfortress.us\/?p=1942","title":{"rendered":"Ubuntu snap-confine Flaw Could Give Local Users Root on Default Desktop Installs"},"content":{"rendered":"<div>\n<p><span class=\"p-author\"><i class=\"icon-font icon-user\">\ue804<\/i><span class=\"author\">Ravie Lakshmanan<\/span><i class=\"icon-font icon-calendar\">\ue802<\/i><span class=\"author\">Jul 22, 2026<\/span><\/span><span class=\"p-tags\">Linux \/ Vulnerability<\/span><\/p>\n<\/div>\n<div id=\"articlebody\">\n<div class=\"separator\" style=\"clear: both;\"><a href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEidNwrZh7WuJhViXJ0c2i53cRV82jkdqS1FS9vHeNyOd19AITMQIA03JOnpqLyp7eHJoqa8L_V-eimCMZQNyba09AUvDHQ_n1NdAzmMFOg5FPp7gSymlqtjMcJ5UdyHRtK67wQ9hhusynzExbC9AWstVxaR9koev6e0PhySMPElKOFVwmge25lODZfyQkVD\/s1700-e365\/ubuntu.jpg\" style=\"display: block;  text-align: center; clear: left; float: left;\"><\/a><\/div>\n<p>Cybersecurity researchers have disclosed details of a new local privilege escalation (LPE) vulnerability in snap-confine that an unprivileged user can trigger to obtain root access and gain complete control of a target environment.<\/p>\n<p>The high-severity flaw, tracked as <strong><a href=\"https:\/\/blog.qualys.com\/vulnerabilities-threat-research\/2026\/07\/21\/cve-2026-8933-snap-confine-local-privilege-escalation\" target=\"_blank\">CVE-2026-8933<\/a><\/strong> (CVSS score: 7.8), impacts default installations of Ubuntu Desktop 24.04, 25.10, and 26.04. The disclosure comes as 442 security flaws in Linux have been <a href=\"https:\/\/lore.kernel.org\/linux-cve-announce\/\" target=\"_blank\">publicized<\/a> over the past three days.<\/p>\n<p>\u00abThe issue stems from a security hardening change that inadvertently introduced a race condition during sandbox initialization,\u00bb Saeed Abbasi, head of Threat Research Unit (TRU) and director of product at Qualys, said.<\/p>\n<p>Snap-confine is a program used internally by snapd to construct the execution environment for snap applications. Snapd is the background service or daemon that manages snap packages on Linux systems. Snaps are nothing but a software packaging format devised by Canonical that allows an application to run securely in an isolated sandbox across most Linux distributions.<\/p>\n<p>\u00abSnapd runs a sub-process called snap-confine, which is responsible for creating the necessary confinement for the snap,\u00bb according to <a href=\"https:\/\/snapcraft.io\/docs\/explanation\/security\/classic-confinement\/\" target=\"_blank\">Canonical<\/a>.<\/p>\n<p>Although recent Ubuntu releases make use of the set-capabilities model to enforce the principle of least privilege (PoLP) as a way to minimize the attack surface, the changes allow snap-confine to be executed with the effective UID of the calling user, at the same time still retaining near-root capabilities.<\/p>\n<div class=\"dog_two clear\">\n<div class=\"cf\"><a href=\"https:\/\/thehackernews.uk\/ai-vuln-protection-d\" rel=\"nofollow noopener sponsored\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"lazyload\" alt=\"Cybersecurity\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjQl2axNwsfhbXOFynrg_uAZsvHi3OvNGSA8KJO-BKR8Xm3x7yjKV3EvfY4v5mwXx6LF0uWFb9h9d9iAV_Pi-YYhqimX9wx4OaLdDJEdR215Xrxq_PAtXkaLfQso4pTSjbj6fvh_ZTliLpzWZSZfcoZgyXtKwhN-SSDDlmbtUqGLshc0KqYQGWYHMN52Sl1\/s728-e100\/zz-d.jpg\" width=\"729\" height=\"91\"\/><\/a><\/div>\n<\/div>\n<p>\u00abDuring sandbox setup, the binary creates temporary directories and files under \/tmp that are initially owned by the unprivileged user,\u00bb Qualys explained. \u00abOwnership is transferred to the root shortly after, but a narrow window remains during which the caller retains full control.\u00bb<\/p>\n<p><a name=\"more\"\/><\/p>\n<p>The problem identified by the cybersecurity vendor is the result of two concurrent race conditions &#8211;<\/p>\n<ul>\n<li>An attacker mounts a malicious <a href=\"https:\/\/www.kernel.org\/doc\/html\/next\/filesystems\/fuse.html\" target=\"_blank\">FUSE file system<\/a> over the temporary scratch directory immediately after creation, bypassing the mount namespace isolation applied by snap-confine and keeping the directory accessible outside the sandbox.<\/li>\n<li>The attacker creates a symbolic link (aka symlink) pointing to an arbitrary target file, effectively redirecting file operations to sensitive system locations.<\/li>\n<\/ul>\n<p>By manipulating file permissions before the system transfers ownership, the attacker can inject malicious rules into system directories and gain root code execution, Qualys noted.<\/p>\n<p>\u00abWhen snap-confine attempts to create a sandbox file, the open() call follows the symlink and writes to the target,\u00bb Abbasi said. \u00abA second race condition allows the attacker to widen file permissions to 0666 before snap-confine calls fchown() to transfer ownership to root.\u00bb<\/p>\n<p>\u00abTo bypass AppArmor confinement, the exploit targets the \/run\/udev\/** path, which permits read-write access. By dropping a malicious .rules file in \/run\/udev\/rules.d\/ and triggering a FUSE mount\/unmount cycle, the attacker forces systemd-udevd to execute arbitrary commands as root.\u00bb<\/p>\n<p>To counter the risk posed by CVE-2026-8933, organizations must apply the latest snapd updates as soon as possible.<\/p>\n<div class=\"dog_two clear\">\n<div class=\"cf\"><a href=\"https:\/\/thn.news\/sygnia-webinar\" rel=\"nofollow noopener sponsored\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"lazyload\" alt=\"Cybersecurity\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEh3-o9La7DYm6jz5qcavVBLvRXUoQLqwrMmrvB529PbUxdg7TJZS3BMjVi4D7vd6V9vlSf_OX48mmXQWPgah_SPITaGgg4AP9YxB2AH-63YeWU39N3DXadwc_2zjIpTwCt0iyTdPZIM-KzKhDf_JDPWDGu3IbYfi1ilQE8Ly29HiKYagSIur-il4k7MMNv8\/s728-e100\/sygnia-d-3.png\" width=\"729\" height=\"91\"\/><\/a><\/div>\n<\/div>\n<p>\u00abAn attacker still needs user-level access or code execution, but CVE-2026-8933 can turn that foothold into full control of the host,\u00bb Jason Soroko, Senior Fellow at Sectigo, said in a statement. \u00abIts presence on default Ubuntu Desktop installations makes employee workstations, developer systems, and administrative endpoints part of the response scope.\u00bb<\/p>\n<p>\u00abUbuntu 24.04 is notable because updated systems can carry the affected snap-confine variant, showing why administrators must verify the installed snapd version instead of relying on release age or prior patch status. With fixes available, rapid deployment and confirmation should take priority.\u00bb<\/p>\n<p>This is not the first time security flaws have been uncovered in the snap-confine component. In February 2022, Qualys detailed another local privilege escalation flaw dubbed Oh Snap! More Lemmings (CVE-2021-44731) that could be abused to gain root privileges by exploiting a race condition in snap-confine&#8217;s setup_private_mount().<\/p>\n<p>Since then, several other vulnerabilities have come to light, including CVE-2022-3328 (CVSS score: 7.8) and <a href=\"https:\/\/ubuntu.com\/security\/CVE-2026-3888\" target=\"_blank\">CVE-2026-3888<\/a> (CVSS score: 7.8).<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\ue804Ravie Lakshmanan\ue802Jul 22, 2026Linux \/ Vulnerability Cybersecurity researchers have disclosed details of a new local privilege escalation (LPE) vulnerability in snap-confine that an unprivileged user can trigger to obtain root&hellip;<\/p>\n","protected":false},"author":1,"featured_media":1943,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1607,2673,70,2672,2045,334,61,2671,729,826],"class_list":["post-1942","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-default","tag-desktop","tag-flaw","tag-give","tag-installs","tag-local","tag-root","tag-snapconfine","tag-ubuntu","tag-users"],"_links":{"self":[{"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=\/wp\/v2\/posts\/1942","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1942"}],"version-history":[{"count":0,"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=\/wp\/v2\/posts\/1942\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=\/wp\/v2\/media\/1943"}],"wp:attachment":[{"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1942"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1942"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}