A flaw was found in Flatpak’s flatpak-system-helper. When a system-wide app, runtime, or extension uses the extra-data mechanism and its apply_extra logic creates a deeply nested directory tree, permission canonicalization can fail (for example with EMFILE). Affected Flatpak versions can still report success without clearing setuid/setgid bits, leaving a setuid-root executable under /var/lib/flatpak. A local attacker who can install or update such content system-wide, or who can already execute code as a local user in cooperation with that content, can escalate privileges to root.
https://www.openwall.com/lists/oss-security/2026/11/24/15
https://github.com/flatpak/flatpak/security/advisories/GHSA-p4mw-6jfq-r82r
https://github.com/flatpak/flatpak/releases/tag/1.18.6
https://github.com/flatpak/flatpak/commit/d087606b9a041f3b0debe44a9b9c3beab28b6e6c
https://github.com/flatpak/flatpak/commit/a21a102e10d63da3251421b17a60b977e6c4b5c8
https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-137056