CVE-2026-99696

ocfs2: find the xattr entry again after defragmenting a bucket

No CVSS score yet EPSS 0.18%

Published 20 Nov 2026 Updated 23 Nov 2026 CNA: Linux

Check your servers for CVE-2026-99696

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-99696 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.

Check my servers

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.

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 4.30% of all scored CVEs. Scores of 29 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 012255961c9ecfe22b7a1df47ac26ab37818cb1e, before f8e08be071ccc88fdf6b72f48d8f0455b7a340f0
affected from 012255961c9ecfe22b7a1df47ac26ab37818cb1e, before cd5b1b2c797ba1672d126c238314de0effcee9a9
affected from 012255961c9ecfe22b7a1df47ac26ab37818cb1e, before 145f999a6c585ee68a6f573f727377c98caebe1d
affected from 012255961c9ecfe22b7a1df47ac26ab37818cb1e, before 10976cdcd61075eb51799a56ac99de1acda8b84c
affected from 012255961c9ecfe22b7a1df47ac26ab37818cb1e, before b839d9913b56f0d769dced34cdfbe02a009b3bf1
affected from 012255961c9ecfe22b7a1df47ac26ab37818cb1e, before 89ef9cb4da160b5572e0e5b9cf930335117d561b
affected from 012255961c9ecfe22b7a1df47ac26ab37818cb1e, before 8c107f10fe63fdec081c2ae471fc90b4d3376db6
affected from 012255961c9ecfe22b7a1df47ac26ab37818cb1e, before 9a40c050f58344615a0604701b5d299519833163
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-99696 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99696

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-99696
trivy image --scanners vuln IMAGE | grep CVE-2026-99696

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

Source: the record CVE-2026-99696 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.