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: | CLOSED ERRATA | 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: | util-linux-2.41.6-1.fc44 util-linux-2.41.6-1.fc43 | Doc Type: | --- | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2026-10-28 02:28:09 UTC | 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! Upgraded to v2.41.6 (f43 and f44). FEDORA-2026-7f54b8305d (util-linux-2.41.6-1.fc44) has been submitted as an update to Fedora 44. https://bodhi.fedoraproject.org/updates/FEDORA-2026-7f54b8305d FEDORA-2026-b7a077a212 (util-linux-2.41.6-1.fc43) has been submitted as an update to Fedora 43. https://bodhi.fedoraproject.org/updates/FEDORA-2026-b7a077a212 FEDORA-2026-b7a077a212 has been pushed to the Fedora 43 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-b7a077a212` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-b7a077a212 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2026-7f54b8305d has been pushed to the Fedora 44 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-7f54b8305d` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-7f54b8305d See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2026-7f54b8305d (util-linux-2.41.6-1.fc44) has been pushed to the Fedora 44 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2026-b7a077a212 (util-linux-2.41.6-1.fc43) has been pushed to the Fedora 43 stable repository. If problem still persists, please make note of it in this bug report. |