# CVE-2026-99416: ovl: read the nlink xattr of every indexed non-dir

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-28)
- **Published:** 2026-11-19T14:40:14.495Z
- **Modified:** 2026-11-23T08:17:44.983Z

## Who should check

- Anyone running Linux \>= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, \< 3608b53735e5554b98825ee7c21cf7df489569f1; \>= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, \< 358cd0602a79792dbf968478536bd6fc8151a37c; \>= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, \< 8938407fd80d92f286466674e9e9ad4e1bc81e27; \>= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, \< 9597ef3f028c2972d2a4a6d246161bd0736a1178; \>= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, \< 07b000b5b458723ca85d67dbbe5f6359c0202cfc; \>= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, \< 9b50f28c22c948b0c134d5c5dbd62ea0ada97fc3; \>= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, \< ffe508adf85acdd57db01a234161e795b7403062; \>= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, \< eb644ed5c6d9afdb1554c41cef1f39d150fbc554
- Anyone running Linux 4.16

## Description

In the Linux kernel, the following vulnerability has been resolved:

ovl: read the nlink xattr of every indexed non-dir

With nfs\_export=on, data written through a file handle to a lower file,
i.e. a file that exists only in a lower layer of the overlay, can be
lost on the next mount. A lookup of the file by name then returns -EIO.
Also, a file with one name reports st\_nlink 2 once it has been copied to
the upper layer. After such a file is removed, its file handle can still
open it until the next mount.

Before a lower file is changed for the first time, overlayfs copies it
to the writable upper layer. This is called copy up.

The index directory is $workdir/index, where $workdir is the directory
given by the workdir= option. Each entry is named after the file handle
of a lower inode, so that overlayfs can get from the handle to the
copied up inode.

With nfs\_export=on, copy up indexes every non-directory: it copies the
file to an entry in the index directory and then hard links that entry
into the upper directory. The index entry is an extra link to the upper
inode, so overlayfs stores the link count that users should see in the
overlay.nlink xattr.

A file can also be opened by handle, either by an NFS client or by a
process with CAP\_DAC\_READ\_SEARCH calling open\_by\_handle\_at(). If the
file is not in the dcache, its overlay dentry is disconnected, i.e. it
has no parent yet. Copy up then creates the index entry but no hard link
in the upper directory. The index entry has i\_nlink 1 and holds the only
copy of the data written to the file.

ovl\_get\_nlink() reads the stored count. Its caller passes a default,
which the function returns if there is no stored count. If the lower
inode has i\_nlink 1, the function returns the default without reading
the xattr. That was correct as long as only lower files with multiple
links were indexed.

On the next mount, ovl\_verify\_index() looks for orphans, i.e. index
entries of files whose last name was removed. For an index entry with
i\_nlink 1, it passes a default of 0 to ovl\_get\_nlink() and treats a
result of 0 as an orphan. Here the lower inode also has i\_nlink 1, so
the result is the default. ovl\_indexdir\_cleanup() then replaces the
entry with a whiteout, which in the index marks a file as deleted. The
written data is lost.

A lookup by name then returns -EIO, because a whiteout as the index
entry of a lower file that still exists is a bad index.

ovl\_get\_inode() gets the wrong count the same way. Its default is the
i\_nlink of the upper inode, which includes the index entry, so a copied
up file with one name reports st\_nlink 2.

When that name is removed, the count drops to 1 rather than 0.
ovl\_nlink\_end() replaces the index entry with a whiteout only at a count
of 0, so the entry stays, and the handle of the removed file still opens
it.

Reproduced by writing through open\_by\_handle\_at() to an uncached lower
file with one link. After a remount the data was lost, and the name
returned EIO.

Fix this by adding an argument to ovl\_get\_nlink() that says whether the
caller found an index entry, and by skipping the xattr only if the
caller found none.

Known gaps:
- An index entry that a kernel without this patch left behind for a
  removed file now stays, and the handle of that file keeps working. The
  entry has i\_nlink 1 and a stored count of 1, just like the entry of a
  file that was only written by handle. Without this patch, the next
  mount treated it as an orphan.

## Affected and fixed versions

- Linux: \>= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, \< 3608b53735e5554b98825ee7c21cf7df489569f1; \>= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, \< 358cd0602a79792dbf968478536bd6fc8151a37c; \>= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, \< 8938407fd80d92f286466674e9e9ad4e1bc81e27; \>= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, \< 9597ef3f028c2972d2a4a6d246161bd0736a1178; \>= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, \< 07b000b5b458723ca85d67dbbe5f6359c0202cfc; \>= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, \< 9b50f28c22c948b0c134d5c5dbd62ea0ada97fc3; \>= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, \< ffe508adf85acdd57db01a234161e795b7403062; \>= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, \< eb644ed5c6d9afdb1554c41cef1f39d150fbc554 (cvelist)
- Linux: 4.16 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99416. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99416.md
Affected: Linux >= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, < 3608b53735e5554b98825ee7c21cf7df489569f1; >= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, < 358cd0602a79792dbf968478536bd6fc8151a37c; >= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, < 8938407fd80d92f286466674e9e9ad4e1bc81e27; >= fbd2d2074bde2e333d9a9ee…
Fixed in: Linux 3608b53735e5554b98825ee7c21cf7df489569f1, Linux 358cd0602a79792dbf968478536bd6fc8151a37c, Linux 8938407fd80d92f286466674e9e9ad4e1bc81e27, Linux 9597ef3f028c2972d2a4a6d246161bd0736a1178, Linux 07b000b5b458723ca85d67dbbe5f6359c0202cfc, Linux 9b50f28c22c948b0c134d5c5dbd62ea0ada97fc3

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99416 being exploited?

There is no confirmed exploitation: CVE-2026-99416 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99416?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-99416?

Linux \>= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, \< 3608b53735e5554b98825ee7c21cf7df489569f1; \>= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, \< 358cd0602a79792dbf968478536bd6fc8151a37c; \>= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, \< 8938407fd80d92f286466674e9e9ad4e1bc81e27; \>= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, \< 9597ef3f028c2972d2a4a6d246161bd0736a1178; \>= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, \< 07b000b5b458723ca85d67dbbe5f6359c0202cfc; \>= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, \< 9b50f28c22c948b0c134d5c5dbd62ea0ada97fc3; \>= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, \< ffe508adf85acdd57db01a234161e795b7403062; \>= fbd2d2074bde2e333d9a9eeda5864cd593fbe29c, \< eb644ed5c6d9afdb1554c41cef1f39d150fbc554; Linux 4.16.

### Is there a fix for CVE-2026-99416?

Yes. Fixed in Linux 3608b53735e5554b98825ee7c21cf7df489569f1, Linux 358cd0602a79792dbf968478536bd6fc8151a37c, Linux 8938407fd80d92f286466674e9e9ad4e1bc81e27, Linux 9597ef3f028c2972d2a4a6d246161bd0736a1178, Linux 07b000b5b458723ca85d67dbbe5f6359c0202cfc, Linux 9b50f28c22c948b0c134d5c5dbd62ea0ada97fc3. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-99416?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/3608b53735e5554b98825ee7c21cf7df489569f1>
- other: <https://git.kernel.org/stable/c/358cd0602a79792dbf968478536bd6fc8151a37c>
- other: <https://git.kernel.org/stable/c/8938407fd80d92f286466674e9e9ad4e1bc81e27>
- other: <https://git.kernel.org/stable/c/9597ef3f028c2972d2a4a6d246161bd0736a1178>
- other: <https://git.kernel.org/stable/c/07b000b5b458723ca85d67dbbe5f6359c0202cfc>
- other: <https://git.kernel.org/stable/c/9b50f28c22c948b0c134d5c5dbd62ea0ada97fc3>
- other: <https://git.kernel.org/stable/c/ffe508adf85acdd57db01a234161e795b7403062>
- other: <https://git.kernel.org/stable/c/eb644ed5c6d9afdb1554c41cef1f39d150fbc554>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99416>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99416> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99416>
