In the Linux kernel, the following vulnerability has been resolved: ovl: reject different lower idmaps on the same fs Overayfs mounted with index=on or nfs_export=on require file handle support from backing filesystems. Overlay file handles identify a backing filesystem, but not the lower mount used to decode it. If lower layers share a superblock and use different idmaps, a handle can decode through the wrong layer. Record the first idmap on a private lower clone for each backing filesystem. Fail if another clone has a different idmap. Comparing the private clones prevents mount_setattr() from changing the checked state. Distinct idmap objects are treated as ambiguous.
https://git.kernel.org/stable/c/d0cd409c53bed0a6ef6f0ad5f94e199aa13f2374
https://git.kernel.org/stable/c/cd9883d69d7fa94e4ef8c590d097b92ebd7d6f1c
https://git.kernel.org/stable/c/720f40c05b2785406121da0151543751204f2953
https://git.kernel.org/stable/c/1343a71798e37e14dde7b08aa9a4d49c8cf13bbd