OpenZFS
OpenZFS: user-namespace capability check allows unprivileged local authorization bypass
On Linux, several OpenZFS ioctl authorization checks accept a capability held only within a user-created, unprivileged namespace as equivalent to real host privilege, allowing an unprivileged local user to perform operations that should require root. Affected operations include pool-administrative operations (eg create, import, destroy), pool event log access (zpool events) and fault injection (zinject). Exploiting the problem requires only that the local user is permitted to open /dev/zfs (governed by local device permissions) and that the kernel permits unprivileged user namespace creation. No prior access to the target pool or its underlying devices is needed.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0.7.0, < 2.2.11
- >= 2.3.0, < 2.3.9
- >= 2.4.0, < 2.4.4
Fixed in 2.2.11, 2.3.9, 2.4.4
Mitigation
Upgrade OpenZFS to 2.2.11 or 2.3.9 or 2.4.4 or later.
References
- Patch github.com/openzfs/zfs/pull/18959
- Vendor advisory github.com/advisories/GHSA-mhf5-q8gw-qg9v
- Release notes github.com/openzfs/zfs/releases/tag/zfs-2.4.4
2 more
- Release notes github.com/openzfs/zfs/releases/tag/zfs-2.3.9
- Release notes github.com/openzfs/zfs/releases/tag/zfs-2.2.11
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.