CVE-2026-77478fuse-overlayfs
NVD
Vulnerability Summary
Summary I'm reporting an issue in fuse-overlayfs which prevents tightening permissions of ordinary base files like /usr/lib/passwd via chmod go-w. This operation silently fails and the permissions are not applied at runtime. The change to a hardlinked lower-layer file does not take effect in the built image, even though native kernel overlay (with metacopy=on) records the same change correctly. Details A chmod on a hardlinked lower-layer file does not take effect in the built image. Native kernel overlay with metacopy=on applies the same change correctly on the same host. The result is deterministic. A plain file with a single name is not affected. The trigger is the hardlink structure in the lower layer, not the nlink shown inside the container. fuse-overlayfs can report nlink=1 for an affected file, so a container-level stat does not tell you whether a file is affected. Only one hardlink shape keeps the change: exactly two links in different directories, modifying the second (ln) link. Every other shape drops it: same-directory links, three or more links, or modifying the first-created path. Files in a chunked ostree/bootc base are hardlinked across layers, so ordinary base files hit the dropped shape. The copy-up itself is correct: a direct fuse-overlayfs mount writes the new mode (0644) to the upper directory, and removing the user.fuseoverlayfs.origin xattr does not change the result. The mode is lost later, on the read path, when a hardlinked file resolves to a lower-layer copy that carries the original mode. In the C implementation this is make_ovl_node (main.c). In current main (Rust) it is the node/layer selection for hardlinked inodes: resolve_node and lookup_node_id in overlay.rs, backed by OvlIno in node.rs. PoC Force fuse-overlayfs, then build each Containerfile and stat the target: ``` /etc/containers/storage.conf [storage] driver = "overlay" runroot = "/run/containers/storage" graphroot = "/var/lib/containers/storage" [storage.options.overlay] mount_program = "/usr/bin/fuse-overlayfs" ``` ``` podman build --no-cache -t t . podman run --rm t stat -c "%a" <target> ``` Minimal case, target /d/a. Fixed on main, still fails on 1.14 and 1.16: ``` FROM registry.fedoraproject.org/fedora-minimal:latest RUN mkdir -p /d && echo x > /d/a && ln /d/a /d/b && chmod 664 /d/a RUN chmod go-w /d/a ``` Higher-link-count case, target /usr/lib/link. Fails on 1.14, 1.16, and main: ``` FROM registry.fedoraproject.org/fedora-minimal:latest RUN mkdir -p /o /usr/lib /usr/share/x && echo x > /o/orig \ && ln /o/orig /usr/lib/link && ln /o/orig /usr/share/x/l3 && chmod 664 /o/orig RUN chmod go-w /usr/lib/link ``` Real-world case, target /usr/lib/passwd. Fails on 1.14, 1.16, and main: ``` FROM quay.io/fedora/fedora-bootc:latest RUN chmod go-w /usr/lib/passwd ``` In every case fuse-overlayfs stats 0664 and native overlay stats 0644. /usr/lib/passwd has link count 2 in the base, with its sibling in another rpm-ostree chunked layer. Impact A permission-tightening chmod silently fails. An image built on a hardlinked or ostree base under fuse-overlayfs ships files more permissive than intended, with no error. rpm -V and SCAP permission checks then disagree with build intent. fuse-overlayfs is the default storage driver for nested or unprivileged podman, such as podman inside a CI container, so this affects image build pipelines. Every image layered on a bootc/ostree base is affected. There is no active exploit in fuse-overlayfs itself: no privilege escalation, no RCE, no container escape. The downstream impact depends on what the consumer was hardening. Affected: fuse-overlayfs 1.14 (Debian trixie) and 1.16 (Fedora 44), and current main / 2.0.0 (commit 72c86e6) for the cross-layer case. Reproduced with podman 5.4.2 and 5.8.3, on x86_64 and aarch64. Native kernel overlay is not affected.
Affected & Patched Versions
- fuse-overlayfs <= 1.17
- fuse-overlayfs 1.18
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run fuse-overlayfs and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Aug 30, 2026Published
- Aug 30, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new fuse-overlayfs CVEsYou are reading CVE-2026-77478. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
Data last checked: Nov 24, 2026 20:01 UTC