CVE-2026-99696
publishedocfs2: find the xattr entry again after defragmenting a bucket
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux012255961c9ecfe22b7a1df47ac26ab37818cb1e to < f8e08be071ccc88fdf6b72f48d8f0455b7a340f0 · 012255961c9ecfe22b7a1df47ac26ab37818cb1e to < cd5b1b2c797ba1672d126c238314de0effcee9a9 · 012255961c9ecfe22b7a1df47ac26ab37818cb1e to < 145f999a6c585ee68a6f573f727377c98caebe1d · 012255961c9ecfe22b7a1df47ac26ab37818cb1e to < 10976cdcd61075eb51799a56ac99de1acda8b84c · 012255961c9ecfe22b7a1df47ac26ab37818cb1e to < b839d9913b56f0d769dced34cdfbe02a009b3bf1 · 012255961c9ecfe22b7a1df47ac26ab37818cb1e to < 89ef9cb4da160b5572e0e5b9cf930335117d561b · 012255961c9ecfe22b7a1df47ac26ab37818cb1e to < 8c107f10fe63fdec081c2ae471fc90b4d3376db6 · 012255961c9ecfe22b7a1df47ac26ab37818cb1e to < 9a40c050f58344615a0604701b5d299519833163 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.28 (affected) · 0 to < 2.6.28 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.118 through 6.12.* (unaffected · semver) · 6.18.64 through 6.18.* (unaffected · semver) · 7.3.5 through 7.3.* (unaffected · semver) · 7.4-rc2 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | trixie | linux | Advisory build | 6.12.118-1 | DSA-6652-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Show 13 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 012255961c9ecfe22b7a1df47ac26ab37818cb1e to < f8e08be071ccc88fdf6b72f48d8f0455b7a340f0 (affected · git)012255961c9ecfe22b7a1df47ac26ab37818cb1e to < cd5b1b2c797ba1672d126c238314de0effcee9a9 (affected · git)012255961c9ecfe22b7a1df47ac26ab37818cb1e to < 145f999a6c585ee68a6f573f727377c98caebe1d (affected · git)012255961c9ecfe22b7a1df47ac26ab37818cb1e to < 10976cdcd61075eb51799a56ac99de1acda8b84c (affected · git)012255961c9ecfe22b7a1df47ac26ab37818cb1e to < b839d9913b56f0d769dced34cdfbe02a009b3bf1 (affected · git)012255961c9ecfe22b7a1df47ac26ab37818cb1e to < 89ef9cb4da160b5572e0e5b9cf930335117d561b (affected · git)012255961c9ecfe22b7a1df47ac26ab37818cb1e to < 8c107f10fe63fdec081c2ae471fc90b4d3376db6 (affected · git)012255961c9ecfe22b7a1df47ac26ab37818cb1e to < 9a40c050f58344615a0604701b5d299519833163 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.28 (affected)0 to < 2.6.28 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.118 through 6.12.* (unaffected · semver)6.18.64 through 6.18.* (unaffected · semver)7.3.5 through 7.3.* (unaffected · semver)7.4-rc2 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/10976cdcd61075eb51799a56ac99de1acda8b84c
- https://git.kernel.org/stable/c/145f999a6c585ee68a6f573f727377c98caebe1d
- https://git.kernel.org/stable/c/89ef9cb4da160b5572e0e5b9cf930335117d561b
- https://git.kernel.org/stable/c/8c107f10fe63fdec081c2ae471fc90b4d3376db6
- https://git.kernel.org/stable/c/9a40c050f58344615a0604701b5d299519833163
- https://git.kernel.org/stable/c/b839d9913b56f0d769dced34cdfbe02a009b3bf1
- https://git.kernel.org/stable/c/cd5b1b2c797ba1672d126c238314de0effcee9a9
- https://git.kernel.org/stable/c/f8e08be071ccc88fdf6b72f48d8f0455b7a340f0
Provider assertions
1Linux · cna
ocfs2: find the xattr entry again after defragmenting a bucket
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 49586ba2e0203e8bd6f12cd2542480a57efea434331c28e5f23d59dd1e8e4271
- Ingested
- 23 Nov 2026, 14:37:13 UTC
- Source record
- Official CVE record