{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99964","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.449Z","datePublished":"2026-11-30T13:18:41.881Z","dateUpdated":"2026-11-30T13:18:41.881Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-30T13:18:41.881Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: use the stored hash when checking xattr bucket collision\n\nocfs2_check_xattr_bucket_collision() decides whether splitting a full\nbucket can make room for the entry being set by recomputing the hash of\nthe name:\n\n\tu32 name_hash = ocfs2_xattr_name_hash(inode, name, strlen(name));\n\n\tif (name_hash != le32_to_cpu(xh->xh_entries[0].xe_name_hash))\n\t\treturn 0;\n\nFor a new entry that is the hash it will be stored under, so comparing it\nis correct.  An existing entry keeps the hash it already has: an update\nnever rewrites xe_name_hash, since ocfs2_xa_add_entry() is the only\nwriter of that field for a real entry and ocfs2_xa_prepare_entry() calls\nit only when loc->xl_entry is NULL.\n\nAn entry stored by a kernel that sign-extended the name bytes when\nhashing can still be updated, because ocfs2_xattr_find_entry() searches\na non-indexed xattr block by memcmp on the name and never looks at\nxe_name_hash.  Growing it past the space left in the block converts the\nblock into a tree, ocfs2_cp_xattr_block_to_bucket() fills the bucket in\nstored hash order, and the update runs out of room in the bucket too.\nThe collision check then compares the unsigned hash against the legacy\nhashes in the bucket and reports no collision.\n\nocfs2_xattr_set_entry_index_block() goes on to allocate a bucket that\nocfs2_divide_xattr_bucket() cannot fill: a bucket whose entries all share\none hash has no divide position, so all it does is append an empty bucket\nwith a sentinel hash one above the last entry's.\n\nThe re-search that follows depends on where the unsigned hash sorts.\nBelow the legacy ones, it comes back to the full bucket and the set fails\nwith -ENOSPC, having grown the tree for nothing.  Above them, it lands on\nthe new empty bucket, which ocfs2_xattr_bucket_find() handles explicitly\nand ocfs2_find_xe_in_bucket() scans zero times, so the set stores a second\ncopy of the entry under the unsigned hash and returns success.  The\noriginal stays in the full bucket, listxattr reports the name twice and\ngetxattr returns the new copy.\n\nPass the hash the entry is stored under instead: the stored one for an\nexisting entry, the unsigned one for a new entry.  A tree whose entries\nare all stored under the unsigned hash sees no change, since there the\ntwo are the same value."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ocfs2/xattr.c"],"versions":[{"version":"3bc753c06dd02a3517c9b498e3846ebfc94ac3ee","lessThan":"686dda74d279f060767433f92f56d2aab124fa04","status":"affected","versionType":"git"},{"version":"3bc753c06dd02a3517c9b498e3846ebfc94ac3ee","lessThan":"374d7cfabd620935b39786120dda6a88ff1a808d","status":"affected","versionType":"git"},{"version":"3bc753c06dd02a3517c9b498e3846ebfc94ac3ee","lessThan":"bd188a034bb18892ac97bff077f5e156f6096240","status":"affected","versionType":"git"},{"version":"3bc753c06dd02a3517c9b498e3846ebfc94ac3ee","lessThan":"0b245e3609a7247e291df057ecb0bb4a46c914af","status":"affected","versionType":"git"},{"version":"3bc753c06dd02a3517c9b498e3846ebfc94ac3ee","lessThan":"e39baff18b85cf8956aee138d7944b6581e8ba36","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ocfs2/xattr.c"],"versions":[{"version":"6.2","status":"affected"},{"version":"0","lessThan":"6.2","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/686dda74d279f060767433f92f56d2aab124fa04"},{"url":"https://git.kernel.org/stable/c/374d7cfabd620935b39786120dda6a88ff1a808d"},{"url":"https://git.kernel.org/stable/c/bd188a034bb18892ac97bff077f5e156f6096240"},{"url":"https://git.kernel.org/stable/c/0b245e3609a7247e291df057ecb0bb4a46c914af"},{"url":"https://git.kernel.org/stable/c/e39baff18b85cf8956aee138d7944b6581e8ba36"}],"title":"ocfs2: use the stored hash when checking xattr bucket collision","x_generator":{"engine":"bippy-1.2.0"}}}}