A regression was introduced in the Linux kernel overlay file system after a fix for a previous vulnerability. This regression could incorrectly deny access to overlay files in some situations. The original vulnerability allowed a local attacker to bypass permission checks and gain read access to restricted files. The issue affects certain versions of the linux-hwe-5.4 and linux-hwe-5.8 kernels and has been fixed in specified updated versions.