CVE-2026-99416 (GCVE-0-2026-99416)
Vulnerability from cvelistv5 – Published: 2026-11-19 14:40 – Updated: 2026-11-19 14:40
VLAI
EPSS
VEX
Title
ovl: read the nlink xattr of every indexed non-dir
Summary
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.
Severity
No CVSS data available.
Assigner
References
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| Linux | Linux |
Affected:
fbd2d2074bde2e333d9a9eeda5864cd593fbe29c , < 07b000b5b458723ca85d67dbbe5f6359c0202cfc
(git)
Affected: fbd2d2074bde2e333d9a9eeda5864cd593fbe29c , < 9b50f28c22c948b0c134d5c5dbd62ea0ada97fc3 (git) Affected: fbd2d2074bde2e333d9a9eeda5864cd593fbe29c , < ffe508adf85acdd57db01a234161e795b7403062 (git) Affected: fbd2d2074bde2e333d9a9eeda5864cd593fbe29c , < eb644ed5c6d9afdb1554c41cef1f39d150fbc554 (git) |
|
| Linux | Linux |
Affected:
4.16
Unaffected: 0 , < 4.16 (semver) Unaffected: 6.12.117 , ≤ 6.12.* (semver) Unaffected: 6.18.61 , ≤ 6.18.* (semver) Unaffected: 7.3.2 , ≤ 7.3.* (semver) Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix) |
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"fs/overlayfs/inode.c",
"fs/overlayfs/namei.c",
"fs/overlayfs/overlayfs.h"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "07b000b5b458723ca85d67dbbe5f6359c0202cfc",
"status": "affected",
"version": "fbd2d2074bde2e333d9a9eeda5864cd593fbe29c",
"versionType": "git"
},
{
"lessThan": "9b50f28c22c948b0c134d5c5dbd62ea0ada97fc3",
"status": "affected",
"version": "fbd2d2074bde2e333d9a9eeda5864cd593fbe29c",
"versionType": "git"
},
{
"lessThan": "ffe508adf85acdd57db01a234161e795b7403062",
"status": "affected",
"version": "fbd2d2074bde2e333d9a9eeda5864cd593fbe29c",
"versionType": "git"
},
{
"lessThan": "eb644ed5c6d9afdb1554c41cef1f39d150fbc554",
"status": "affected",
"version": "fbd2d2074bde2e333d9a9eeda5864cd593fbe29c",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"fs/overlayfs/inode.c",
"fs/overlayfs/namei.c",
"fs/overlayfs/overlayfs.h"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "4.16"
},
{
"lessThan": "4.16",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"version": "6.12.117",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.61",
"versionType": "semver"
},
{
"lessThanOrEqual": "7.3.*",
"status": "unaffected",
"version": "7.3.2",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.4-rc1",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.12.117",
"versionStartIncluding": "4.16",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.18.61",
"versionStartIncluding": "4.16",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.3.2",
"versionStartIncluding": "4.16",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.4-rc1",
"versionStartIncluding": "4.16",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\novl: read the nlink xattr of every indexed non-dir\n\nWith nfs_export=on, data written through a file handle to a lower file,\ni.e. a file that exists only in a lower layer of the overlay, can be\nlost on the next mount. A lookup of the file by name then returns -EIO.\nAlso, a file with one name reports st_nlink 2 once it has been copied to\nthe upper layer. After such a file is removed, its file handle can still\nopen it until the next mount.\n\nBefore a lower file is changed for the first time, overlayfs copies it\nto the writable upper layer. This is called copy up.\n\nThe index directory is $workdir/index, where $workdir is the directory\ngiven by the workdir= option. Each entry is named after the file handle\nof a lower inode, so that overlayfs can get from the handle to the\ncopied up inode.\n\nWith nfs_export=on, copy up indexes every non-directory: it copies the\nfile to an entry in the index directory and then hard links that entry\ninto the upper directory. The index entry is an extra link to the upper\ninode, so overlayfs stores the link count that users should see in the\noverlay.nlink xattr.\n\nA file can also be opened by handle, either by an NFS client or by a\nprocess with CAP_DAC_READ_SEARCH calling open_by_handle_at(). If the\nfile is not in the dcache, its overlay dentry is disconnected, i.e. it\nhas no parent yet. Copy up then creates the index entry but no hard link\nin the upper directory. The index entry has i_nlink 1 and holds the only\ncopy of the data written to the file.\n\novl_get_nlink() reads the stored count. Its caller passes a default,\nwhich the function returns if there is no stored count. If the lower\ninode has i_nlink 1, the function returns the default without reading\nthe xattr. That was correct as long as only lower files with multiple\nlinks were indexed.\n\nOn the next mount, ovl_verify_index() looks for orphans, i.e. index\nentries of files whose last name was removed. For an index entry with\ni_nlink 1, it passes a default of 0 to ovl_get_nlink() and treats a\nresult of 0 as an orphan. Here the lower inode also has i_nlink 1, so\nthe result is the default. ovl_indexdir_cleanup() then replaces the\nentry with a whiteout, which in the index marks a file as deleted. The\nwritten data is lost.\n\nA lookup by name then returns -EIO, because a whiteout as the index\nentry of a lower file that still exists is a bad index.\n\novl_get_inode() gets the wrong count the same way. Its default is the\ni_nlink of the upper inode, which includes the index entry, so a copied\nup file with one name reports st_nlink 2.\n\nWhen that name is removed, the count drops to 1 rather than 0.\novl_nlink_end() replaces the index entry with a whiteout only at a count\nof 0, so the entry stays, and the handle of the removed file still opens\nit.\n\nReproduced by writing through open_by_handle_at() to an uncached lower\nfile with one link. After a remount the data was lost, and the name\nreturned EIO.\n\nFix this by adding an argument to ovl_get_nlink() that says whether the\ncaller found an index entry, and by skipping the xattr only if the\ncaller found none.\n\nKnown gaps:\n- An index entry that a kernel without this patch left behind for a\n removed file now stays, and the handle of that file keeps working. The\n entry has i_nlink 1 and a stored count of 1, just like the entry of a\n file that was only written by handle. Without this patch, the next\n mount treated it as an orphan."
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T14:40:14.495Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/07b000b5b458723ca85d67dbbe5f6359c0202cfc"
},
{
"url": "https://git.kernel.org/stable/c/9b50f28c22c948b0c134d5c5dbd62ea0ada97fc3"
},
{
"url": "https://git.kernel.org/stable/c/ffe508adf85acdd57db01a234161e795b7403062"
},
{
"url": "https://git.kernel.org/stable/c/eb644ed5c6d9afdb1554c41cef1f39d150fbc554"
}
],
"title": "ovl: read the nlink xattr of every indexed non-dir",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2026-99416",
"datePublished": "2026-11-19T14:40:14.495Z",
"dateReserved": "2026-09-25T10:25:14.413Z",
"dateUpdated": "2026-11-19T14:40:14.495Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2026-99416",
"date": "2026-11-22",
"epss": "0.00157",
"percentile": "0.04844"
},
"microsoft_vex": {
"current_release_date": "2026-11-21T01:10:08.000Z",
"cve": "CVE-2026-99416",
"id": "msrc_CVE-2026-99416",
"initial_release_date": "2026-11-21T01:10:08.000Z",
"product_status:known_affected": "1",
"source": "Microsoft CSAF VEX",
"status": "final",
"title": "ovl: read the nlink xattr of every indexed non-dir",
"url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-99416.json",
"version": "1"
},
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"fs/overlayfs/inode.c",
"fs/overlayfs/namei.c",
"fs/overlayfs/overlayfs.h"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "07b000b5b458723ca85d67dbbe5f6359c0202cfc",
"status": "affected",
"version": "fbd2d2074bde2e333d9a9eeda5864cd593fbe29c",
"versionType": "git"
},
{
"lessThan": "9b50f28c22c948b0c134d5c5dbd62ea0ada97fc3",
"status": "affected",
"version": "fbd2d2074bde2e333d9a9eeda5864cd593fbe29c",
"versionType": "git"
},
{
"lessThan": "ffe508adf85acdd57db01a234161e795b7403062",
"status": "affected",
"version": "fbd2d2074bde2e333d9a9eeda5864cd593fbe29c",
"versionType": "git"
},
{
"lessThan": "eb644ed5c6d9afdb1554c41cef1f39d150fbc554",
"status": "affected",
"version": "fbd2d2074bde2e333d9a9eeda5864cd593fbe29c",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"fs/overlayfs/inode.c",
"fs/overlayfs/namei.c",
"fs/overlayfs/overlayfs.h"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "4.16"
},
{
"lessThan": "4.16",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"version": "6.12.117",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.61",
"versionType": "semver"
},
{
"lessThanOrEqual": "7.3.*",
"status": "unaffected",
"version": "7.3.2",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.4-rc1",
"versionType": "original_commit_for_fix"
}
]
}
],
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\novl: read the nlink xattr of every indexed non-dir\n\nWith nfs_export=on, data written through a file handle to a lower file,\ni.e. a file that exists only in a lower layer of the overlay, can be\nlost on the next mount. A lookup of the file by name then returns -EIO.\nAlso, a file with one name reports st_nlink 2 once it has been copied to\nthe upper layer. After such a file is removed, its file handle can still\nopen it until the next mount.\n\nBefore a lower file is changed for the first time, overlayfs copies it\nto the writable upper layer. This is called copy up.\n\nThe index directory is $workdir/index, where $workdir is the directory\ngiven by the workdir= option. Each entry is named after the file handle\nof a lower inode, so that overlayfs can get from the handle to the\ncopied up inode.\n\nWith nfs_export=on, copy up indexes every non-directory: it copies the\nfile to an entry in the index directory and then hard links that entry\ninto the upper directory. The index entry is an extra link to the upper\ninode, so overlayfs stores the link count that users should see in the\noverlay.nlink xattr.\n\nA file can also be opened by handle, either by an NFS client or by a\nprocess with CAP_DAC_READ_SEARCH calling open_by_handle_at(). If the\nfile is not in the dcache, its overlay dentry is disconnected, i.e. it\nhas no parent yet. Copy up then creates the index entry but no hard link\nin the upper directory. The index entry has i_nlink 1 and holds the only\ncopy of the data written to the file.\n\novl_get_nlink() reads the stored count. Its caller passes a default,\nwhich the function returns if there is no stored count. If the lower\ninode has i_nlink 1, the function returns the default without reading\nthe xattr. That was correct as long as only lower files with multiple\nlinks were indexed.\n\nOn the next mount, ovl_verify_index() looks for orphans, i.e. index\nentries of files whose last name was removed. For an index entry with\ni_nlink 1, it passes a default of 0 to ovl_get_nlink() and treats a\nresult of 0 as an orphan. Here the lower inode also has i_nlink 1, so\nthe result is the default. ovl_indexdir_cleanup() then replaces the\nentry with a whiteout, which in the index marks a file as deleted. The\nwritten data is lost.\n\nA lookup by name then returns -EIO, because a whiteout as the index\nentry of a lower file that still exists is a bad index.\n\novl_get_inode() gets the wrong count the same way. Its default is the\ni_nlink of the upper inode, which includes the index entry, so a copied\nup file with one name reports st_nlink 2.\n\nWhen that name is removed, the count drops to 1 rather than 0.\novl_nlink_end() replaces the index entry with a whiteout only at a count\nof 0, so the entry stays, and the handle of the removed file still opens\nit.\n\nReproduced by writing through open_by_handle_at() to an uncached lower\nfile with one link. After a remount the data was lost, and the name\nreturned EIO.\n\nFix this by adding an argument to ovl_get_nlink() that says whether the\ncaller found an index entry, and by skipping the xattr only if the\ncaller found none.\n\nKnown gaps:\n- An index entry that a kernel without this patch left behind for a\n removed file now stays, and the handle of that file keeps working. The\n entry has i_nlink 1 and a stored count of 1, just like the entry of a\n file that was only written by handle. Without this patch, the next\n mount treated it as an orphan."
}
],
"id": "CVE-2026-99416",
"lastModified": "2026-11-19T15:17:54.357",
"metrics": {},
"published": "2026-11-19T15:17:54.357",
"references": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/07b000b5b458723ca85d67dbbe5f6359c0202cfc"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/9b50f28c22c948b0c134d5c5dbd62ea0ada97fc3"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/eb644ed5c6d9afdb1554c41cef1f39d150fbc554"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/ffe508adf85acdd57db01a234161e795b7403062"
}
],
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"vulnStatus": "Received"
}
},
"redhat_vex": {
"aggregate_severity": "Moderate",
"current_release_date": "2026-11-19T21:37:06+00:00",
"cve": "CVE-2026-99416",
"id": "CVE-2026-99416",
"initial_release_date": "2026-11-19T14:40:14.495000+00:00",
"product_status:known_affected": "190",
"product_status:known_not_affected": "14",
"source": "Red Hat CSAF VEX",
"status": "final",
"title": "kernel: kernel: Data loss in OverlayFS via file handle operations on NFS-exported mounts",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99416.json",
"version": "3"
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Loading…
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.
Loading…