Skip to contentSkip to conversation

CVE-2026-99420: ovl: check that the parents of volatile/dirty are dirs

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: check that the parents of volatile/dirty are dirs

An unprivileged user crashes the kernel by mounting overlayfs with the volatile option.

A dentry that serves as the parent of a lookup must be a directory. ovl_create_volatile_dirty() walks work/incompat/volatile/dirty by name, and ovl_lookup_or_create() returns an existing entry whatever its type. A file or a symlink that another task creates during the mount becomes the parent of the next lookup, which calls a NULL ->lookup.

An unprivileged user mounted overlayfs with "volatile" in a user namespace while a second process created a symlink named work/incompat, and the mount task oopsed on a NULL ->lookup call.

Fix this by returning -ENOTDIR from ovl_lookup_or_create() when the caller asked for a directory and the existing entry is a non-dir.

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

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

	Issue introduced in 5.10 with commit c86243b090bc25f81abe33ddfa9fe833e02c4d64 and fixed in 6.12.117 with commit a343bd631606d9d508808fca272e1e482ed6c61f
	Issue introduced in 5.10 with commit c86243b090bc25f81abe33ddfa9fe833e02c4d64 and fixed in 6.18.61 with commit 68439a05ed529a8b0350f8c6ff3618ff4a8d972d
	Issue introduced in 5.10 with commit c86243b090bc25f81abe33ddfa9fe833e02c4d64 and fixed in 7.3.2 with commit 3bf6fda63259692331d21392c3f7c0c02594dae5
	Issue introduced in 5.10 with commit c86243b090bc25f81abe33ddfa9fe833e02c4d64 and fixed in 7.4-rc1 with commit e34d2ef818e4c7676d8d8e1bf43e6a1ed39efb2a

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-99420

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/super.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/a343bd631606d9d508808fca272e1e482ed6c61f
	https://git.kernel.org/stable/c/68439a05ed529a8b0350f8c6ff3618ff4a8d972d
	https://git.kernel.org/stable/c/3bf6fda63259692331d21392c3f7c0c02594dae5
	https://git.kernel.org/stable/c/e34d2ef818e4c7676d8d8e1bf43e6a1ed39efb2a