A vulnerability in the Linux kernel overlay filesystem (overlayfs) occurs when the origin file handle (fh) is not properly encoded with the index option enabled. This can cause a kernel crash (oops) during copy up of directories on overlays with index=on and nfs_export=on, if an LSM denies CAP_DAC_READ_SEARCH capability to the mounter after mounting. The flaw arises because ovl_get_origin_fh() returns NULL when it should return a valid handle, leading to NULL pointer dereferences in index-related functions.