In the Linux kernel, the following vulnerability has been resolved: ovl: skip copy up of empty security.capability ovl_copy_xattr() gives up if it can't read an attribute that listxattr() has named. An empty security.capability, which anybody has been able to store on any file for a long time, is such a case: it is listed, and getxattr() has nothing to return for it. A file in a lower layer that carries one can't be copied up: it can't be written to, renamed or have its mode changed. There is nothing to copy if there are no data. Go on with the next one. [amir: treat -EINVAL as no capability too, and do the same in ovl_copy_up_meta_inode_data()]
https://git.kernel.org/stable/c/f46a6fdbe8ccc4f64e2e8a8d8cd3a6bd753552be
https://git.kernel.org/stable/c/ce8fa086d095141675801bb9dea81d24fb43c5ef
https://git.kernel.org/stable/c/5c6a8b2f2f4dc3a0da89c7379ae64962850ba1e3
https://git.kernel.org/stable/c/50912a1715b8a7c614b654011a0db750e372b43e