FKIE_CVE-2026-99641
Vulnerability from fkie_nvd - Published: 2026-11-20 06:17 - Updated: 2026-11-20 06:17
Severity
Summary
In the Linux kernel, the following vulnerability has been resolved:
ovl: fail the mount if the casefold flag has changed
An unprivileged user in a user namespace can repeatedly trigger a kernel
warning with their own overlay mounts. They do so by changing the
casefold flag of the topmost layer's empty root, the top directory of
that layer, after the layers are set and before the mount is created.
The casefold flag of a directory makes name lookups in that directory
case-insensitive. All layers of an overlay must agree on casefolding.
ovl_mount_dir_check() reads the casefold flag of a layer root when
fsconfig() sets that layer, and saves the result in ofs->casefold. The
mount is created later, by another fsconfig() call with
FSCONFIG_CMD_CREATE.
The casefold flag of an empty directory can be changed.
The casefold flag of the overlay root must match ofs->casefold.
ovl_get_root() copies the flag from the topmost layer root, as it is
when the mount is created. On a mismatch, ovl_get_root() only does a
WARN_ON(), and the mount continues. The check is not a WARN_ON_ONCE(),
so each such mount warns again.
An unprivileged user needs CONFIG_UNICODE, and a tmpfs mounted with the
casefold option in their namespace.
Reproduced by changing the casefold flag of the empty upper directory
after the layers were set and before FSCONFIG_CMD_CREATE, with tmpfs and
ext4 layers, and as uid 1000 in a user namespace.
Fix this by replacing the WARN_ON() with a check that fails the mount
with -EINVAL.
References
Impacted products
| Vendor | Product | Version |
|---|
{
"affected": [
{
"affectedData": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"fs/overlayfs/super.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "f182e7bc11c401d09f890ee1a3ec359670e1e308",
"status": "affected",
"version": "f9377faaeae0473ea45f2b6d3ff758e192f3f01d",
"versionType": "git"
},
{
"lessThan": "549fb7c77951ad9ddfed05ce1776f497538ad13e",
"status": "affected",
"version": "f9377faaeae0473ea45f2b6d3ff758e192f3f01d",
"versionType": "git"
},
{
"lessThan": "c782fc8ada811569811c0fdea5c3412511be95d0",
"status": "affected",
"version": "f9377faaeae0473ea45f2b6d3ff758e192f3f01d",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"fs/overlayfs/super.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "6.18"
},
{
"lessThan": "6.18",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.64",
"versionType": "semver"
},
{
"lessThanOrEqual": "7.3.*",
"status": "unaffected",
"version": "7.3.5",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.4-rc2",
"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: fail the mount if the casefold flag has changed\n\nAn unprivileged user in a user namespace can repeatedly trigger a kernel\nwarning with their own overlay mounts. They do so by changing the\ncasefold flag of the topmost layer\u0027s empty root, the top directory of\nthat layer, after the layers are set and before the mount is created.\n\nThe casefold flag of a directory makes name lookups in that directory\ncase-insensitive. All layers of an overlay must agree on casefolding.\n\novl_mount_dir_check() reads the casefold flag of a layer root when\nfsconfig() sets that layer, and saves the result in ofs-\u003ecasefold. The\nmount is created later, by another fsconfig() call with\nFSCONFIG_CMD_CREATE.\n\nThe casefold flag of an empty directory can be changed.\n\nThe casefold flag of the overlay root must match ofs-\u003ecasefold.\novl_get_root() copies the flag from the topmost layer root, as it is\nwhen the mount is created. On a mismatch, ovl_get_root() only does a\nWARN_ON(), and the mount continues. The check is not a WARN_ON_ONCE(),\nso each such mount warns again.\n\nAn unprivileged user needs CONFIG_UNICODE, and a tmpfs mounted with the\ncasefold option in their namespace.\n\nReproduced by changing the casefold flag of the empty upper directory\nafter the layers were set and before FSCONFIG_CMD_CREATE, with tmpfs and\next4 layers, and as uid 1000 in a user namespace.\n\nFix this by replacing the WARN_ON() with a check that fails the mount\nwith -EINVAL."
}
],
"id": "CVE-2026-99641",
"lastModified": "2026-11-20T06:17:57.540",
"metrics": {},
"published": "2026-11-20T06:17:57.540",
"references": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/549fb7c77951ad9ddfed05ce1776f497538ad13e"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/c782fc8ada811569811c0fdea5c3412511be95d0"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/f182e7bc11c401d09f890ee1a3ec359670e1e308"
}
],
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"vulnStatus": "Received"
}
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…