In the Linux kernel, the following vulnerability has been resolved: ovl: do not allow nfs_export with data-only layers Since data-only layers no longer require metacopy=on, which conflicts with nfs_export=on, an overlay with data-only layers can be mounted with nfs_export=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 nfs_export=on and data-only layers and otherwise disable nfs_export with data-only layers.
https://git.kernel.org/stable/c/fba955b070d13e2fdac097577ce3c6ffbeda4ea9
https://git.kernel.org/stable/c/5c45f045c866c5e036586312101137bc7e684660
https://git.kernel.org/stable/c/51567368603443a18fa5b575ccb5a91df0185dd4