Flatpak: flatpak: flatpak-system-helper extra-data privilege escalation if canonicalizing permissions fails with emfile
NIST has not reviewed this entry yet, so scores and affected versions may be missing or may change.
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.
Improper Preservation of Permissions CWE-281
The product does not preserve permissions or incorrectly preserves permissions when copying, restoring, or sharing objects, which can cause them to have less restrictive permissions than intended.
Weakness data: MITRE Common Weakness Enumeration.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 5 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Red Hat Red Hat Enterprise Linux 10 | Software | not recorded | |
| Red Hat Red Hat Enterprise Linux 7 | Software | not recorded | |
| Red Hat Red Hat Enterprise Linux 8 | Software | not recorded | |
| Red Hat Red Hat Enterprise Linux 9 | Software | not recorded | |
| Red Hat Red Hat OpenShift Container Platform 5 | Software | not recorded |
The 8.2 severity score (high) from redhat.com, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | On the machine | The attacker needs access to the computer itself, for example a login or a file they can get you to open. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | Low | The attacker needs an ordinary user account. |
| Someone has to act | Required | A person has to do something first, such as open a file or visit a page. |
| Reaches beyond the program | Changed | The attacker can get beyond the vulnerable program and affect other parts of the system. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 1.5 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 6.0 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 7 sources for this flaw, none tagged as a vendor patch.