CVE-2026-143048: ovl: do not allow nfs_export with data-only layers
In the Linux kernel, the following vulnerability has been resolved:
ovl: do not allow nfsexport with data-only layers
Since data-only layers no longer require metacopy=on, which conflicts with nfsexport=on, an overlay with data-only layers can be mounted with nfsexport=on.
Decoding a file handle of a lower metacopy file whose data is in a data-only layer builds the inode only from the decoded lower dentry, without the lazy lowerdata redirect, so the data of the file would be read from the metacopy file in the lower layer.
Fail the mount with explicit nfsexport=on and data-only layers and otherwise disable nfsexport with data-only layers.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Disable nfs_export when using data-only layers; do not mount with nfs_export=on and data-only layers.
Linux OverlayFS nfs_export = off
Event History
Frequently Asked Questions
Which configurations are exposed to this issue?
Affected configurations use OverlayFS with data-only layers and NFS export enabled. The problematic case involves decoding a file handle for a lower metacopy file whose data resides in a data-only layer.
What is required to trigger the incorrect behavior?
An NFS file-handle decode must occur for a lower metacopy file backed by a data-only layer. In that path, the inode can be built without the lazy lowerdata redirect, causing reads to use data from the lower metacopy file instead.
How does the fix handle existing mount configurations?
The fix fails an OverlayFS mount when nfs_export=on is explicitly requested together with data-only layers. When data-only layers are present without an explicit nfs_export=on request, it disables NFS export.