{"api_version":"1","generated_at":"2026-11-30T19:45:59+00:00","cve":"CVE-2026-99964","urls":{"html":"https://cve.report/CVE-2026-99964","api":"https://cve.report/api/cve/CVE-2026-99964.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99964","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99964"},"summary":{"title":"ocfs2: use the stored hash when checking xattr bucket collision","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:20:35","updated_at":"2026-11-30 14:20:35"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/bd188a034bb18892ac97bff077f5e156f6096240","name":"https://git.kernel.org/stable/c/bd188a034bb18892ac97bff077f5e156f6096240","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e39baff18b85cf8956aee138d7944b6581e8ba36","name":"https://git.kernel.org/stable/c/e39baff18b85cf8956aee138d7944b6581e8ba36","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/686dda74d279f060767433f92f56d2aab124fa04","name":"https://git.kernel.org/stable/c/686dda74d279f060767433f92f56d2aab124fa04","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0b245e3609a7247e291df057ecb0bb4a46c914af","name":"https://git.kernel.org/stable/c/0b245e3609a7247e291df057ecb0bb4a46c914af","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/374d7cfabd620935b39786120dda6a88ff1a808d","name":"https://git.kernel.org/stable/c/374d7cfabd620935b39786120dda6a88ff1a808d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99964","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99964","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3bc753c06dd02a3517c9b498e3846ebfc94ac3ee 686dda74d279f060767433f92f56d2aab124fa04 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3bc753c06dd02a3517c9b498e3846ebfc94ac3ee 374d7cfabd620935b39786120dda6a88ff1a808d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3bc753c06dd02a3517c9b498e3846ebfc94ac3ee bd188a034bb18892ac97bff077f5e156f6096240 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3bc753c06dd02a3517c9b498e3846ebfc94ac3ee 0b245e3609a7247e291df057ecb0bb4a46c914af git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3bc753c06dd02a3517c9b498e3846ebfc94ac3ee e39baff18b85cf8956aee138d7944b6581e8ba36 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.2","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.2 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/ocfs2/xattr.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"686dda74d279f060767433f92f56d2aab124fa04","status":"affected","version":"3bc753c06dd02a3517c9b498e3846ebfc94ac3ee","versionType":"git"},{"lessThan":"374d7cfabd620935b39786120dda6a88ff1a808d","status":"affected","version":"3bc753c06dd02a3517c9b498e3846ebfc94ac3ee","versionType":"git"},{"lessThan":"bd188a034bb18892ac97bff077f5e156f6096240","status":"affected","version":"3bc753c06dd02a3517c9b498e3846ebfc94ac3ee","versionType":"git"},{"lessThan":"0b245e3609a7247e291df057ecb0bb4a46c914af","status":"affected","version":"3bc753c06dd02a3517c9b498e3846ebfc94ac3ee","versionType":"git"},{"lessThan":"e39baff18b85cf8956aee138d7944b6581e8ba36","status":"affected","version":"3bc753c06dd02a3517c9b498e3846ebfc94ac3ee","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/ocfs2/xattr.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.2"},{"lessThan":"6.2","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.117","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"6.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"6.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"6.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"6.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.2","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:18:41.881Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99964","datePublished":"2026-11-30T13:18:41.881Z","dateReserved":"2026-09-25T10:25:14.449Z","dateUpdated":"2026-11-30T13:18:41.881Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:20:35","lastModifiedDate":"2026-11-30 14:20:35","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99964","Ordinal":"1","Title":"ocfs2: use the stored hash when checking xattr bucket collision","CVE":"CVE-2026-99964","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99964","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"ocfs2: use the stored hash when checking xattr bucket collision"}]}}}