Ce mail provient de l'extérieur, restons vigilants ===================================================================== CERT-Renater Note d'Information No. 2026/VULN1181 _____________________________________________________________________ DATE : 25/11/2026 HARDWARE PLATFORM(S): / OPERATING SYSTEM(S): Systems running Flatpak versions prior to 1.18.6, 1.19.4. ==================================================================== https://github.com/flatpak/flatpak/security/advisories/GHSA-p4mw-6jfq-r82r https://github.com/flatpak/flatpak/security/advisories/GHSA-5jrj-948r-2wx6 _____________________________________________________________________ CVE-2026-133842: flatpak-system-helper extra-data privilege escalation if canonicalizing permissions fails with EMFILE High smcv published GHSA-p4mw-6jfq-r82r Package Flatpak (freedesktop.org) Affected versions all < 1.18.5; 1.19.x < 1.19.3 Patched versions 1.18.6, 1.19.4 Description Summary If an app, runtime or extension installed system-wide uses the extra-data mechanism, and its apply_extra program or script creates a very deeply-nested directory hierarchy, then it can arrange for /var/lib/flatpak to contain a setuid-root executable whose setuid permission will not be cleared by Flatpak. Impact A malicious local user, in cooperation with a compromised or malicious app/runtime/extension, can use the setuid-root executable for root privilege escalation. Or, if the app/runtime/extension itself has permissions that grant it the ability to run arbitrary code as the user, then it can escalate its own privileges to root. Or, if the app/runtime/extension combines this vulnerability with any unrelated vulnerability that provides arbitrary code execution as the user, then it can escalate its own privileges to root. Solution This was resolved in Flatpak 1.18.6 and 1.19.4. The 1.18.5 and 1.19.3 tags also include the fix, but the release process for those version failed and they were superseded by 1.18.6 and 1.19.4. Fixed in Flatpak 1.18.6 (stable branch) and 1.19.4 (development branch) by commits: d087606 "utils: Fail closed if canonicalizing permissions can't open directory" a21a102 "utils: Fail closed when canonicalizing permissions if readdir() fails" Automated test coverage is provided by commits: 2988601 "tests: Test deeply nested files in apply_extra output" ab4a20d "tests: Assert that extra-data can't normally contain setuid/setgid files" Backports of these commits are available in the flatpak-1.16.x branch for LTS distributions that have stayed on that branch, such as Debian 13. This branch is no longer supported upstream and a formal release from it will not be provided. Limitations In the solution as currently implemented, attempts to exploit this vulnerability will leave behind a directory named similar to /var/lib/flatpak/app/$APP/$ARCH/$BRANCH/.$HASH-XXXXXX that still contains a setuid/setgid executable below the files/extra/ subdirectory, but the permissions of the files/extra subdirectory will be set so that the setuid/setgid executable is inaccessible for non-root users, preventing it from being used for privilege escalation. This limitation is tracked as #6991. Mitigations By default only root-equivalent users are allowed to install Flatpak apps system-wide, so they have the opportunity to consider whether they trust the author and publisher of the app. Other users can only update apps that are already installed. Workarounds Avoid installing untrusted apps, runtimes or extensions system-wide, even if they will only be run by unprivileged users. Do not change the polkit rules for Flatpak to allow untrusted local users to install apps, runtimes or extensions system-wide. Timeline 2026-11-13: First privately reported 2026-11-24: Fix released, public advisory References See above for commit references. Acknowledgements Reported by @RoyalOughtness, fixes developed by @smcv. CVE ID obtained from Red Hat CNA. Severity High 8.2/ 10 CVSS v3 base metrics Attack vector Local Attack complexity Low Privileges required Low User interaction Required Scope Changed Confidentiality High Integrity High Availability High CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H CVE ID CVE-2026-133842 Weaknesses Weakness CWE-281 Credits @RoyalOughtness RoyalOughtness Reporter _____________________________________________________________________ CVE-2026-133845: Sandbox escape via fd conflict in flatpak-portal Spawn() High smcv published GHSA-5jrj-948r-2wx6 Package Flatpak (freedesktop.org) Affected versions all < 1.18.5; 1.19.x < 1.19.3 Patched versions 1.18.6, 1.19.4 Description Summary A Flatpak application with no special privileges can trick the flatpak-portal into giving the subsandbox access to one of its own file descriptors. Details If the third argument to Spawn() maps two different file descriptors to the same handle, this can result in dup2() failing. Because the dup2() failure is not handled, the result is that the file descriptor that was originally open inside the flatpak-portal is passed to the subsandbox instead. It is reasonably straightforward for an attacker to predict the file descriptor number of the unfiltered D-Bus session bus, which is enough to achieve sandbox escape. Impact Can be exploited to provide a full sandbox escape from a malicious or compromised Flatpak app. Solution This was resolved in Flatpak 1.18.6 and 1.19.4. The 1.18.5 and 1.19.3 tags also include the fix, but the release process for those version and they were superseded by 1.18.6 and 1.19.4. Mitigated in Flatpak 1.18.6 (stable branch) and 1.19.4 (development branch) by commit: f107d8a "portal: Exit the child process if mapping fds fails" More thoroughly fixed in Flatpak 1.18.6 (stable branch) and 1.19.4 (development branch) by commits: 07b007e "portal: Rename app_fd, usr_fd variables to indicate that they're variants" b1b596e "common: Add an object tracking unique fds in a D-Bus message" a7b55f8 "portal: Use FlatpakUniqueFDList to prevent multiple uses of one fd" Automated test coverage is provided by commit: 266c6aa "tests: Assert we get an error when mapping >1 handle to the same fd" Related hardening in flatpak-session-helper (this is not a security fix because anything that can communicate with flatpak-session-helper must already be fully trusted): d49b78e "session-helper: Use FlatpakUniqueFDList here, too" Backports of these commits are available in the flatpak-1.16.x branch for LTS distributions that have stayed on that branch, such as Debian 13. This branch is no longer supported upstream and a formal release from it will not be provided. Workarounds Avoid installing or running untrusted apps, runtimes or extensions. References See above for commit references. Timeline 2026-11-15: first privately reported. 2026-11-24: fix released, advisory released. Acknowledgements Reported by @refi64; independently rediscovered before unembargo by @oz9un. Fixes developed by @refi64 and @smcv. CVE ID allocated by Red Hat CNA. Severity High 7.3/ 10 CVSS v3 base metrics Attack vector Local Attack complexity Low Privileges required Low User interaction Required Scope Unchanged Confidentiality High Integrity High Availability High CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H CVE ID CVE-2026-133845 Weaknesses Weakness CWE-252 Weakness CWE-694 Credits @refi64 refi64 Reporter ========================================================= + CERT-RENATER | tel : 01-53-94-20-44 + + 23/25 Rue Daviel | fax : 01-53-94-20-41 + + 75013 Paris | email:cert@support.renater.fr + =========================================================