CVE-2026-99695
ocfs2: find the xattr entry again after converting a block to a bucket
Check your servers for CVE-2026-99695
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-99695 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.59% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 012255961c9ecfe22b7a1df47ac26ab37818cb1e, before 049ded9e088fa206be3148f116ef9c914fd1c979 affected from 012255961c9ecfe22b7a1df47ac26ab37818cb1e, before b38342e173b6011b38349618d4925567e71d949c affected from 012255961c9ecfe22b7a1df47ac26ab37818cb1e, before dc5ed4e05de2c0c05bb0a4cec7b5b50d18978646 affected from 012255961c9ecfe22b7a1df47ac26ab37818cb1e, before f3e86037f2ac33ad13d84d46158e04580bbae24e affected from 012255961c9ecfe22b7a1df47ac26ab37818cb1e, before 49820bda28134ab0f6748e66cb104c9adcc2e116 affected from 012255961c9ecfe22b7a1df47ac26ab37818cb1e, before 1ca9787e733a29aea926f8956dffc41bf553c5ca affected from 012255961c9ecfe22b7a1df47ac26ab37818cb1e, before 2bd2ca4f70570f08992ba38dbf2570f8def4288e affected from 012255961c9ecfe22b7a1df47ac26ab37818cb1e, before 9c191a7a44882487e291e09f095d2ae4d7cca146
Other versions: unaffected
|
| Linux |
affected 2.6.28 unaffected before 2.6.28 unaffected from 5.10.275 up to and including 5.10.* unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.118 up to and including 6.12.* unaffected from 6.18.64 up to and including 6.18.* unaffected from 7.3.5 up to and including 7.3.* unaffected 7.4-rc2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-99695 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99695
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-99695
trivy image --scanners vuln IMAGE | grep CVE-2026-99695
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/049ded9e088fa206be3148f116ef9c914fd1c979 git.kernel.org
- https://git.kernel.org/stable/c/b38342e173b6011b38349618d4925567e71d949c git.kernel.org
- https://git.kernel.org/stable/c/dc5ed4e05de2c0c05bb0a4cec7b5b50d18978646 git.kernel.org
- https://git.kernel.org/stable/c/f3e86037f2ac33ad13d84d46158e04580bbae24e git.kernel.org
- https://git.kernel.org/stable/c/49820bda28134ab0f6748e66cb104c9adcc2e116 git.kernel.org
- https://git.kernel.org/stable/c/1ca9787e733a29aea926f8956dffc41bf553c5ca git.kernel.org
- https://git.kernel.org/stable/c/2bd2ca4f70570f08992ba38dbf2570f8def4288e git.kernel.org
- https://git.kernel.org/stable/c/9c191a7a44882487e291e09f095d2ae4d7cca146 git.kernel.org
Source: the record CVE-2026-99695 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse