# CVE-2026-99695: ocfs2: find the xattr entry again after converting a block to a bucket

Status: published. Published: 2026-11-20. Updated: 2026-11-23.

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.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- Linux / Linux: ≥ 012255961c9ecfe22b7a1df47ac26ab37818cb1e; < 049ded9e088fa206be3148f116ef9c914fd1c979 (affected, git); ≥ 012255961c9ecfe22b7a1df47ac26ab37818cb1e; < b38342e173b6011b38349618d4925567e71d949c (affected, git); ≥ 012255961c9ecfe22b7a1df47ac26ab37818cb1e; < dc5ed4e05de2c0c05bb0a4cec7b5b50d18978646 (affected, git); ≥ 012255961c9ecfe22b7a1df47ac26ab37818cb1e; < f3e86037f2ac33ad13d84d46158e04580bbae24e (affected, git); ≥ 012255961c9ecfe22b7a1df47ac26ab37818cb1e; < 49820bda28134ab0f6748e66cb104c9adcc2e116 (affected, git); ≥ 012255961c9ecfe22b7a1df47ac26ab37818cb1e; < 1ca9787e733a29aea926f8956dffc41bf553c5ca (affected, git); ≥ 012255961c9ecfe22b7a1df47ac26ab37818cb1e; < 2bd2ca4f70570f08992ba38dbf2570f8def4288e (affected, git); ≥ 012255961c9ecfe22b7a1df47ac26ab37818cb1e; < 9c191a7a44882487e291e09f095d2ae4d7cca146 (affected, git). Source: CNA: Linux
- Linux / Linux: 2.6.28 (affected); ≥ 0; < 2.6.28 (unaffected, semver); ≥ 5.10.275; ≤ 5.10.* (unaffected, semver); ≥ 5.15.226; ≤ 5.15.* (unaffected, semver); ≥ 6.1.193; ≤ 6.1.* (unaffected, semver); ≥ 6.6.163; ≤ 6.6.* (unaffected, semver); ≥ 6.12.118; ≤ 6.12.* (unaffected, semver); ≥ 6.18.64; ≤ 6.18.* (unaffected, semver); ≥ 7.3.5; ≤ 7.3.* (unaffected, semver); ≥ 7.4-rc2; ≤ * (unaffected, original_commit_for_fix). Source: CNA: Linux

## Severity and prioritization

- CISA KEV: No listing in collected sources

- EPSS: 0.17% as of 2026-11-22; percentile 6.18%

- SSVC: Not available

- Weaknesses: Not reported

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://git.kernel.org/stable/c/049ded9e088fa206be3148f116ef9c914fd1c979 (CNA: Linux)

- https://git.kernel.org/stable/c/b38342e173b6011b38349618d4925567e71d949c (CNA: Linux)

- https://git.kernel.org/stable/c/dc5ed4e05de2c0c05bb0a4cec7b5b50d18978646 (CNA: Linux)

- https://git.kernel.org/stable/c/f3e86037f2ac33ad13d84d46158e04580bbae24e (CNA: Linux)

- https://git.kernel.org/stable/c/49820bda28134ab0f6748e66cb104c9adcc2e116 (CNA: Linux)

- https://git.kernel.org/stable/c/1ca9787e733a29aea926f8956dffc41bf553c5ca (CNA: Linux)

- https://git.kernel.org/stable/c/2bd2ca4f70570f08992ba38dbf2570f8def4288e (CNA: Linux)

- https://git.kernel.org/stable/c/9c191a7a44882487e291e09f095d2ae4d7cca146 (CNA: Linux)

- https://git.kernel.org/stable/c/1ca9787e733a29aea926f8956dffc41bf553c5ca (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/2bd2ca4f70570f08992ba38dbf2570f8def4288e (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/49820bda28134ab0f6748e66cb104c9adcc2e116 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/9c191a7a44882487e291e09f095d2ae4d7cca146 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

## Provenance

- CNA: Linux: https://www.cve.org/CVERecord?id=CVE-2026-99695; retrieved 2026-11-23; source updated 2026-11-23

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-99695; retrieved 2026-11-20; source updated 2026-11-20

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-99695; retrieved 2026-11-23; source updated Not reported

Revision: 2dc11adabf8f5858f1a557dc1e9b176c71d7dc1e36d3df3d74f0fa27c75440db

Canonical: https://y2.dev/cve/CVE-2026-99695

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.