Bug 2544499
| Summary: | CVE-2026-76642 util-linux: util-linux: failed external mount helper still runs privileged X-mount post-hooks [fedora-all] | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Tomas Hoger <thoger> | ||||
| Component: | util-linux | Assignee: | Karel Zak <kzak> | ||||
| Status: | NEW --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | rawhide | CC: | artem, kzak | ||||
| Target Milestone: | --- | Keywords: | Security, SecurityTracking | ||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | {"flaws": ["b4249e54-8d4e-4bcd-bfb1-f89aed9a67e3"]} | ||||||
| Fixed In Version: | Doc Type: | --- | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | Type: | --- | |||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 2521999 | ||||||
| Attachments: |
|
||||||
|
Description
Tomas Hoger
2026-10-01 09:55:24 UTC
Created attachment 2161369 [details]
proposed patch
Hello, I'd like to offer a backport of the CVE-2026-76642 fix for Fedora 43 and 44, which both still ship util-linux 2.41.5. Fedora 45 and Rawhide are already fixed in 2.42.4. When an external mount.<type> helper fails, libmount looks at whether the helper was started rather than whether the mount succeeded, so it still runs the post-mount hooks. Upstream describes two consequences: X-mount.idmap can create an idmapped overmount of the original target that ignores nosuid/nodev/noexec, and X-mount.owner/group/mode can change the ownership and mode of the underlying target directory even though nothing was mounted. The attached patch is upstream's stable/v2.41 commit a15c00a9e545 (cherry-picked from f57cea130839, and released in 2.41.6). It skips both post-mount hook stages when the helper or mount syscall has failed, and makes the loop-device hook release its device when its cleanup hook is skipped. The code is unchanged from upstream; only the line offsets differ because of Fedora's EROFS patch. The patch applies cleanly, without fuzz, to the current f43 and f44 sources after the existing Fedora patches. I also applied it to the f44 source earlier and built libmount successfully. I have not run a live mount-helper test or a Mock/RPM build. Since 2.41.6 contains this fix, rebasing to it would also work if you prefer. AI assistance was used to prepare this patch and its validation. The resulting changes and validation results were reviewed by a human. Could you take a look and consider it for the f43/f44 updates? I'm happy to adjust it if needed. Thanks! |