Skip to contentSkip to conversation

CVE-2026-99414: ovl: skip copy up of empty security.capability

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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()]

The Linux kernel CVE team has assigned CVE-2026-99414 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.14 with commit 8db6c34f1dbc8e06aa016a9b829b06902c3e1340 and fixed in 6.12.117 with commit ce8fa086d095141675801bb9dea81d24fb43c5ef
	Issue introduced in 4.14 with commit 8db6c34f1dbc8e06aa016a9b829b06902c3e1340 and fixed in 6.18.61 with commit 5c6a8b2f2f4dc3a0da89c7379ae64962850ba1e3
	Issue introduced in 4.14 with commit 8db6c34f1dbc8e06aa016a9b829b06902c3e1340 and fixed in 7.3.2 with commit f46a6fdbe8ccc4f64e2e8a8d8cd3a6bd753552be
	Issue introduced in 4.14 with commit 8db6c34f1dbc8e06aa016a9b829b06902c3e1340 and fixed in 7.4-rc1 with commit 50912a1715b8a7c614b654011a0db750e372b43e

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-99414

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
fs/overlayfs/copy_up.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/ce8fa086d095141675801bb9dea81d24fb43c5ef
	https://git.kernel.org/stable/c/5c6a8b2f2f4dc3a0da89c7379ae64962850ba1e3
	https://git.kernel.org/stable/c/f46a6fdbe8ccc4f64e2e8a8d8cd3a6bd753552be
	https://git.kernel.org/stable/c/50912a1715b8a7c614b654011a0db750e372b43e