FKIE_CVE-2026-99695
Vulnerability from fkie_nvd - Published: 2026-11-20 06:18 - Updated: 2026-11-23 08:18
Severity
Summary
In the Linux kernel, the following vulnerability has been resolved:
ocfs2: find the xattr entry again after converting a block to a bucket
ocfs2_xattr_create_index_block() turns a non-indexed xattr block into a
tree by copying it into a bucket, and the copy sorts the entries: a
block holds them in insertion order, a bucket by name hash.
ocfs2_xattr_update_xattr_search() nevertheless relocates the caller's
search by the index the entry had in the block, so unless the two orders
agreed it points at an unrelated entry, and nothing between there and
the write compares that entry's name with the one being set.
Setting an xattr whose new value no longer fits the block arrives here
with xs->not_found clear. The block gave up because
ocfs2_xa_block_can_reuse() wants an exact namevalue size match, while
ocfs2_xa_bucket_can_reuse() only wants an entry at least as large as the
new one, so the bucket accepts a pair the block rejected and the update
lands on whichever entry the sort left at that index. Equal padded name
lengths get that other attribute's value replaced in place and its name
left alone, so setxattr returns success while the attribute asked for
keeps its old value. A longer one trips ocfs2_xa_reuse_entry()'s
BUG_ON, and a shorter one is refused by the bucket as well, so
ocfs2_xa_prepare_entry() wipes the entry and writes the new name over
it, leaving xe_name_hash describing a name that is no longer there.
Find the entry again by the name being set, matching the type as well.
The copy carries every entry and every name over unchanged, and (type,
name) pairs are unique within a block, so the match is exact. The type
matters because the handlers strip their prefix before calling
ocfs2_xattr_set(), so user.foo and trusted.foo share a stored name, a
stored length and a hash, and both can sit in the same block.
The name has to come from xi rather than from xs->here: a failed set can
remove the entry xs->here names, and only the "growing" caller sets
ctxt->set_abort, which is what stops the conversion. Scan every entry
rather than narrowing on the hash the way ocfs2_find_xe_in_bucket()
does, since an existing entry keeps the hash it was stored under, which
a kernel that sign-extended the name bytes made different from the one
computed now. An empty result means the entry did not survive the
failed set and this has become an insert; leaving xs->here alone would
keep it pointing into the block, which is rewritten as a tree root
before the caller reads it again.
References
Impacted products
| Vendor | Product | Version |
|---|
{
"affected": [
{
"affectedData": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"fs/ocfs2/xattr.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "049ded9e088fa206be3148f116ef9c914fd1c979",
"status": "affected",
"version": "012255961c9ecfe22b7a1df47ac26ab37818cb1e",
"versionType": "git"
},
{
"lessThan": "b38342e173b6011b38349618d4925567e71d949c",
"status": "affected",
"version": "012255961c9ecfe22b7a1df47ac26ab37818cb1e",
"versionType": "git"
},
{
"lessThan": "dc5ed4e05de2c0c05bb0a4cec7b5b50d18978646",
"status": "affected",
"version": "012255961c9ecfe22b7a1df47ac26ab37818cb1e",
"versionType": "git"
},
{
"lessThan": "f3e86037f2ac33ad13d84d46158e04580bbae24e",
"status": "affected",
"version": "012255961c9ecfe22b7a1df47ac26ab37818cb1e",
"versionType": "git"
},
{
"lessThan": "49820bda28134ab0f6748e66cb104c9adcc2e116",
"status": "affected",
"version": "012255961c9ecfe22b7a1df47ac26ab37818cb1e",
"versionType": "git"
},
{
"lessThan": "1ca9787e733a29aea926f8956dffc41bf553c5ca",
"status": "affected",
"version": "012255961c9ecfe22b7a1df47ac26ab37818cb1e",
"versionType": "git"
},
{
"lessThan": "2bd2ca4f70570f08992ba38dbf2570f8def4288e",
"status": "affected",
"version": "012255961c9ecfe22b7a1df47ac26ab37818cb1e",
"versionType": "git"
},
{
"lessThan": "9c191a7a44882487e291e09f095d2ae4d7cca146",
"status": "affected",
"version": "012255961c9ecfe22b7a1df47ac26ab37818cb1e",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"fs/ocfs2/xattr.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "2.6.28"
},
{
"lessThan": "2.6.28",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"version": "5.10.275",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"version": "5.15.226",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"version": "6.1.193",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"version": "6.6.163",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"version": "6.12.118",
"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\nocfs2: find the xattr entry again after converting a block to a bucket\n\nocfs2_xattr_create_index_block() turns a non-indexed xattr block into a\ntree by copying it into a bucket, and the copy sorts the entries: a\nblock holds them in insertion order, a bucket by name hash.\nocfs2_xattr_update_xattr_search() nevertheless relocates the caller\u0027s\nsearch by the index the entry had in the block, so unless the two orders\nagreed it points at an unrelated entry, and nothing between there and\nthe write compares that entry\u0027s name with the one being set.\n\nSetting an xattr whose new value no longer fits the block arrives here\nwith xs-\u003enot_found clear. The block gave up because\nocfs2_xa_block_can_reuse() wants an exact namevalue size match, while\nocfs2_xa_bucket_can_reuse() only wants an entry at least as large as the\nnew one, so the bucket accepts a pair the block rejected and the update\nlands on whichever entry the sort left at that index. Equal padded name\nlengths get that other attribute\u0027s value replaced in place and its name\nleft alone, so setxattr returns success while the attribute asked for\nkeeps its old value. A longer one trips ocfs2_xa_reuse_entry()\u0027s\nBUG_ON, and a shorter one is refused by the bucket as well, so\nocfs2_xa_prepare_entry() wipes the entry and writes the new name over\nit, leaving xe_name_hash describing a name that is no longer there.\n\nFind the entry again by the name being set, matching the type as well.\nThe copy carries every entry and every name over unchanged, and (type,\nname) pairs are unique within a block, so the match is exact. The type\nmatters because the handlers strip their prefix before calling\nocfs2_xattr_set(), so user.foo and trusted.foo share a stored name, a\nstored length and a hash, and both can sit in the same block.\n\nThe name has to come from xi rather than from xs-\u003ehere: a failed set can\nremove the entry xs-\u003ehere names, and only the \"growing\" caller sets\nctxt-\u003eset_abort, which is what stops the conversion. Scan every entry\nrather than narrowing on the hash the way ocfs2_find_xe_in_bucket()\ndoes, since an existing entry keeps the hash it was stored under, which\na kernel that sign-extended the name bytes made different from the one\ncomputed now. An empty result means the entry did not survive the\nfailed set and this has become an insert; leaving xs-\u003ehere alone would\nkeep it pointing into the block, which is rewritten as a tree root\nbefore the caller reads it again."
}
],
"id": "CVE-2026-99695",
"lastModified": "2026-11-23T08:18:10.637",
"metrics": {},
"published": "2026-11-20T06:18:04.847",
"references": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/049ded9e088fa206be3148f116ef9c914fd1c979"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/1ca9787e733a29aea926f8956dffc41bf553c5ca"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/2bd2ca4f70570f08992ba38dbf2570f8def4288e"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/49820bda28134ab0f6748e66cb104c9adcc2e116"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/9c191a7a44882487e291e09f095d2ae4d7cca146"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/b38342e173b6011b38349618d4925567e71d949c"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/dc5ed4e05de2c0c05bb0a4cec7b5b50d18978646"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/f3e86037f2ac33ad13d84d46158e04580bbae24e"
}
],
"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…