A use-after-free vulnerability in the Linux kernel overlay filesystem (ovl) was fixed. The issue occurred when listing a directory on an overlay while a concurrent rename or move operation happened in the lower layer, causing a freed dentry to be accessed and crashing the kernel. The flaw was due to missing reference counting on the parent directory during readdir operations, leading to unsafe use of d_parent pointers. The fix involved adding proper reference holding with dget_parent() in key functions to prevent use-after-free conditions.