# CVE-2026-99696: ocfs2: find the xattr entry again after defragmenting a bucket

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.18% (percentile 4, 2026-11-28)
- **Published:** 2026-11-20T05:50:39.610Z
- **Modified:** 2026-11-23T08:18:10.770Z

## Who should check

- Anyone running Linux \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< f8e08be071ccc88fdf6b72f48d8f0455b7a340f0; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< cd5b1b2c797ba1672d126c238314de0effcee9a9; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< 145f999a6c585ee68a6f573f727377c98caebe1d; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< 10976cdcd61075eb51799a56ac99de1acda8b84c; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< b839d9913b56f0d769dced34cdfbe02a009b3bf1; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< 89ef9cb4da160b5572e0e5b9cf930335117d561b; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< 8c107f10fe63fdec081c2ae471fc90b4d3376db6; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< 9a40c050f58344615a0604701b5d299519833163
- Anyone running Linux 2.6.28

## Description

In the Linux kernel, the following vulnerability has been resolved:

ocfs2: find the xattr entry again after defragmenting a bucket

ocfs2\_xattr\_set\_entry\_bucket() hands loc.xl\_entry to ocfs2\_xa\_set() twice:
once for the bucket as it stands, and, if that reports -ENOSPC, once more
after ocfs2\_defrag\_xattr\_bucket() has packed the name/value pairs down.

Defragmenting ends by sorting the entry array on xe\_name\_hash.  Buckets
are kept sorted, so the sort only permutes entries that share a hash, but
lib/sort.c is an unstable heapsort and it does permute them.  loc.xl\_entry
is an address inside xh\_entries\[\], so afterwards it denotes whichever
entry landed in that slot rather than the one the search found.

The second ocfs2\_xa\_set() then works on the wrong entry.  Nothing on that
path compares the entry's name with xi-\>xi\_name, so what happens depends
on how the two entries compare in size: ocfs2\_xa\_reuse\_entry() trips its
BUG\_ON() when the padded name sizes differ, and otherwise the new value is
written into the neighbouring attribute's value slot while the attribute
being set is left untouched.  setxattr() reports success either way.

Remember the entry's hash before defragmenting and look the entry up
again afterwards, the way ocfs2\_xattr\_bucket\_find() does.  An entry that
cannot be found again means the bucket no longer holds what the search
found, so fail with -EFSCORRUPTED rather than writing through the stale
pointer.

## Affected and fixed versions

- Linux: \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< f8e08be071ccc88fdf6b72f48d8f0455b7a340f0; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< cd5b1b2c797ba1672d126c238314de0effcee9a9; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< 145f999a6c585ee68a6f573f727377c98caebe1d; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< 10976cdcd61075eb51799a56ac99de1acda8b84c; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< b839d9913b56f0d769dced34cdfbe02a009b3bf1; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< 89ef9cb4da160b5572e0e5b9cf930335117d561b; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< 8c107f10fe63fdec081c2ae471fc90b4d3376db6; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< 9a40c050f58344615a0604701b5d299519833163 (cvelist)
- Linux: 2.6.28 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 9a40c050f58344615a0604701b5d299519833163 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99696. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99696.md
Affected: Linux >= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, < f8e08be071ccc88fdf6b72f48d8f0455b7a340f0; >= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, < cd5b1b2c797ba1672d126c238314de0effcee9a9; >= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, < 145f999a6c585ee68a6f573f727377c98caebe1d; >= 012255961c9ecfe22b7a1df…
Fixed in: Linux 145f999a6c585ee68a6f573f727377c98caebe1d, Linux 10976cdcd61075eb51799a56ac99de1acda8b84c, Linux 89ef9cb4da160b5572e0e5b9cf930335117d561b, Linux 8c107f10fe63fdec081c2ae471fc90b4d3376db6, Linux 9a40c050f58344615a0604701b5d299519833163

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99696 being exploited?

There is no confirmed exploitation: CVE-2026-99696 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99696?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-99696?

Linux \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< f8e08be071ccc88fdf6b72f48d8f0455b7a340f0; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< cd5b1b2c797ba1672d126c238314de0effcee9a9; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< 145f999a6c585ee68a6f573f727377c98caebe1d; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< 10976cdcd61075eb51799a56ac99de1acda8b84c; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< b839d9913b56f0d769dced34cdfbe02a009b3bf1; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< 89ef9cb4da160b5572e0e5b9cf930335117d561b; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< 8c107f10fe63fdec081c2ae471fc90b4d3376db6; \>= 012255961c9ecfe22b7a1df47ac26ab37818cb1e, \< 9a40c050f58344615a0604701b5d299519833163; Linux 2.6.28.

### Is there a fix for CVE-2026-99696?

Yes. Fixed in Linux 145f999a6c585ee68a6f573f727377c98caebe1d, Linux 10976cdcd61075eb51799a56ac99de1acda8b84c, Linux 89ef9cb4da160b5572e0e5b9cf930335117d561b, Linux 8c107f10fe63fdec081c2ae471fc90b4d3376db6, Linux 9a40c050f58344615a0604701b5d299519833163. Upgrade Linux to 9a40c050f58344615a0604701b5d299519833163 or later.

### How do I check if I'm affected by CVE-2026-99696?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/f8e08be071ccc88fdf6b72f48d8f0455b7a340f0>
- other: <https://git.kernel.org/stable/c/cd5b1b2c797ba1672d126c238314de0effcee9a9>
- other: <https://git.kernel.org/stable/c/145f999a6c585ee68a6f573f727377c98caebe1d>
- other: <https://git.kernel.org/stable/c/10976cdcd61075eb51799a56ac99de1acda8b84c>
- other: <https://git.kernel.org/stable/c/b839d9913b56f0d769dced34cdfbe02a009b3bf1>
- other: <https://git.kernel.org/stable/c/89ef9cb4da160b5572e0e5b9cf930335117d561b>
- other: <https://git.kernel.org/stable/c/8c107f10fe63fdec081c2ae471fc90b4d3376db6>
- other: <https://git.kernel.org/stable/c/9a40c050f58344615a0604701b5d299519833163>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99696>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99696> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99696>
