{"api_version":"1","generated_at":"2026-11-23T10:06:22+00:00","cve":"CVE-2026-99695","urls":{"html":"https://cve.report/CVE-2026-99695","api":"https://cve.report/api/cve/CVE-2026-99695.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99695","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99695"},"summary":{"title":"ocfs2: find the xattr entry again after converting a block to a bucket","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: find the xattr entry again after converting a block to a bucket\n\nocfs2_xattr_create_index_block() turns a non-indexed xattr block into a\ntree by copying it into a bucket, and the copy sorts the entries: a\nblock holds them in insertion order, a bucket by name hash.\nocfs2_xattr_update_xattr_search() nevertheless relocates the caller's\nsearch by the index the entry had in the block, so unless the two orders\nagreed it points at an unrelated entry, and nothing between there and\nthe write compares that entry's name with the one being set.\n\nSetting an xattr whose new value no longer fits the block arrives here\nwith xs->not_found clear.  The block gave up because\nocfs2_xa_block_can_reuse() wants an exact namevalue size match, while\nocfs2_xa_bucket_can_reuse() only wants an entry at least as large as the\nnew one, so the bucket accepts a pair the block rejected and the update\nlands on whichever entry the sort left at that index.  Equal padded name\nlengths get that other attribute's value replaced in place and its name\nleft alone, so setxattr returns success while the attribute asked for\nkeeps its old value.  A longer one trips ocfs2_xa_reuse_entry()'s\nBUG_ON, and a shorter one is refused by the bucket as well, so\nocfs2_xa_prepare_entry() wipes the entry and writes the new name over\nit, leaving xe_name_hash describing a name that is no longer there.\n\nFind the entry again by the name being set, matching the type as well.\nThe copy carries every entry and every name over unchanged, and (type,\nname) pairs are unique within a block, so the match is exact.  The type\nmatters because the handlers strip their prefix before calling\nocfs2_xattr_set(), so user.foo and trusted.foo share a stored name, a\nstored length and a hash, and both can sit in the same block.\n\nThe name has to come from xi rather than from xs->here: a failed set can\nremove the entry xs->here names, and only the \"growing\" caller sets\nctxt->set_abort, which is what stops the conversion.  Scan every entry\nrather than narrowing on the hash the way ocfs2_find_xe_in_bucket()\ndoes, since an existing entry keeps the hash it was stored under, which\na kernel that sign-extended the name bytes made different from the one\ncomputed now.  An empty result means the entry did not survive the\nfailed set and this has become an insert; leaving xs->here alone would\nkeep it pointing into the block, which is rewritten as a tree root\nbefore the caller reads it again.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-20 06:18:04","updated_at":"2026-11-23 08:18:10"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/1ca9787e733a29aea926f8956dffc41bf553c5ca","name":"https://git.kernel.org/stable/c/1ca9787e733a29aea926f8956dffc41bf553c5ca","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b38342e173b6011b38349618d4925567e71d949c","name":"https://git.kernel.org/stable/c/b38342e173b6011b38349618d4925567e71d949c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/49820bda28134ab0f6748e66cb104c9adcc2e116","name":"https://git.kernel.org/stable/c/49820bda28134ab0f6748e66cb104c9adcc2e116","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f3e86037f2ac33ad13d84d46158e04580bbae24e","name":"https://git.kernel.org/stable/c/f3e86037f2ac33ad13d84d46158e04580bbae24e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9c191a7a44882487e291e09f095d2ae4d7cca146","name":"https://git.kernel.org/stable/c/9c191a7a44882487e291e09f095d2ae4d7cca146","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/049ded9e088fa206be3148f116ef9c914fd1c979","name":"https://git.kernel.org/stable/c/049ded9e088fa206be3148f116ef9c914fd1c979","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2bd2ca4f70570f08992ba38dbf2570f8def4288e","name":"https://git.kernel.org/stable/c/2bd2ca4f70570f08992ba38dbf2570f8def4288e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/dc5ed4e05de2c0c05bb0a4cec7b5b50d18978646","name":"https://git.kernel.org/stable/c/dc5ed4e05de2c0c05bb0a4cec7b5b50d18978646","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99695","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99695","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 012255961c9ecfe22b7a1df47ac26ab37818cb1e 049ded9e088fa206be3148f116ef9c914fd1c979 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 012255961c9ecfe22b7a1df47ac26ab37818cb1e b38342e173b6011b38349618d4925567e71d949c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 012255961c9ecfe22b7a1df47ac26ab37818cb1e dc5ed4e05de2c0c05bb0a4cec7b5b50d18978646 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 012255961c9ecfe22b7a1df47ac26ab37818cb1e f3e86037f2ac33ad13d84d46158e04580bbae24e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 012255961c9ecfe22b7a1df47ac26ab37818cb1e 49820bda28134ab0f6748e66cb104c9adcc2e116 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 012255961c9ecfe22b7a1df47ac26ab37818cb1e 1ca9787e733a29aea926f8956dffc41bf553c5ca git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 012255961c9ecfe22b7a1df47ac26ab37818cb1e 2bd2ca4f70570f08992ba38dbf2570f8def4288e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 012255961c9ecfe22b7a1df47ac26ab37818cb1e 9c191a7a44882487e291e09f095d2ae4d7cca146 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2.6.28","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 2.6.28 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* 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.118 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.64 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.5 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"99695","cve":"CVE-2026-99695","epss":"0.001680000","percentile":"0.061800000","score_date":"2026-11-22","updated_at":"2026-11-23 00:03:21"},"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":"049ded9e088fa206be3148f116ef9c914fd1c979","status":"affected","version":"012255961c9ecfe22b7a1df47ac26ab37818cb1e","versionType":"git"},{"lessThan":"b38342e173b6011b38349618d4925567e71d949c","status":"affected","version":"012255961c9ecfe22b7a1df47ac26ab37818cb1e","versionType":"git"},{"lessThan":"dc5ed4e05de2c0c05bb0a4cec7b5b50d18978646","status":"affected","version":"012255961c9ecfe22b7a1df47ac26ab37818cb1e","versionType":"git"},{"lessThan":"f3e86037f2ac33ad13d84d46158e04580bbae24e","status":"affected","version":"012255961c9ecfe22b7a1df47ac26ab37818cb1e","versionType":"git"},{"lessThan":"49820bda28134ab0f6748e66cb104c9adcc2e116","status":"affected","version":"012255961c9ecfe22b7a1df47ac26ab37818cb1e","versionType":"git"},{"lessThan":"1ca9787e733a29aea926f8956dffc41bf553c5ca","status":"affected","version":"012255961c9ecfe22b7a1df47ac26ab37818cb1e","versionType":"git"},{"lessThan":"2bd2ca4f70570f08992ba38dbf2570f8def4288e","status":"affected","version":"012255961c9ecfe22b7a1df47ac26ab37818cb1e","versionType":"git"},{"lessThan":"9c191a7a44882487e291e09f095d2ae4d7cca146","status":"affected","version":"012255961c9ecfe22b7a1df47ac26ab37818cb1e","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":"2.6.28"},{"lessThan":"2.6.28","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.118","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.64","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"2.6.28","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"2.6.28","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"2.6.28","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"2.6.28","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.118","versionStartIncluding":"2.6.28","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.64","versionStartIncluding":"2.6.28","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.5","versionStartIncluding":"2.6.28","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"2.6.28","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: find the xattr entry again after converting a block to a bucket\n\nocfs2_xattr_create_index_block() turns a non-indexed xattr block into a\ntree by copying it into a bucket, and the copy sorts the entries: a\nblock holds them in insertion order, a bucket by name hash.\nocfs2_xattr_update_xattr_search() nevertheless relocates the caller's\nsearch by the index the entry had in the block, so unless the two orders\nagreed it points at an unrelated entry, and nothing between there and\nthe write compares that entry's name with the one being set.\n\nSetting an xattr whose new value no longer fits the block arrives here\nwith xs->not_found clear.  The block gave up because\nocfs2_xa_block_can_reuse() wants an exact namevalue size match, while\nocfs2_xa_bucket_can_reuse() only wants an entry at least as large as the\nnew one, so the bucket accepts a pair the block rejected and the update\nlands on whichever entry the sort left at that index.  Equal padded name\nlengths get that other attribute's value replaced in place and its name\nleft alone, so setxattr returns success while the attribute asked for\nkeeps its old value.  A longer one trips ocfs2_xa_reuse_entry()'s\nBUG_ON, and a shorter one is refused by the bucket as well, so\nocfs2_xa_prepare_entry() wipes the entry and writes the new name over\nit, leaving xe_name_hash describing a name that is no longer there.\n\nFind the entry again by the name being set, matching the type as well.\nThe copy carries every entry and every name over unchanged, and (type,\nname) pairs are unique within a block, so the match is exact.  The type\nmatters because the handlers strip their prefix before calling\nocfs2_xattr_set(), so user.foo and trusted.foo share a stored name, a\nstored length and a hash, and both can sit in the same block.\n\nThe name has to come from xi rather than from xs->here: a failed set can\nremove the entry xs->here names, and only the \"growing\" caller sets\nctxt->set_abort, which is what stops the conversion.  Scan every entry\nrather than narrowing on the hash the way ocfs2_find_xe_in_bucket()\ndoes, since an existing entry keeps the hash it was stored under, which\na kernel that sign-extended the name bytes made different from the one\ncomputed now.  An empty result means the entry did not survive the\nfailed set and this has become an insert; leaving xs->here alone would\nkeep it pointing into the block, which is rewritten as a tree root\nbefore the caller reads it again."}],"providerMetadata":{"dateUpdated":"2026-11-23T08:06:10.544Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/049ded9e088fa206be3148f116ef9c914fd1c979"},{"url":"https://git.kernel.org/stable/c/b38342e173b6011b38349618d4925567e71d949c"},{"url":"https://git.kernel.org/stable/c/dc5ed4e05de2c0c05bb0a4cec7b5b50d18978646"},{"url":"https://git.kernel.org/stable/c/f3e86037f2ac33ad13d84d46158e04580bbae24e"},{"url":"https://git.kernel.org/stable/c/49820bda28134ab0f6748e66cb104c9adcc2e116"},{"url":"https://git.kernel.org/stable/c/1ca9787e733a29aea926f8956dffc41bf553c5ca"},{"url":"https://git.kernel.org/stable/c/2bd2ca4f70570f08992ba38dbf2570f8def4288e"},{"url":"https://git.kernel.org/stable/c/9c191a7a44882487e291e09f095d2ae4d7cca146"}],"title":"ocfs2: find the xattr entry again after converting a block to a bucket","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99695","datePublished":"2026-11-20T05:50:38.843Z","dateReserved":"2026-09-25T10:25:14.429Z","dateUpdated":"2026-11-23T08:06:10.544Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 06:18:04","lastModifiedDate":"2026-11-23 08:18:10","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99695","Ordinal":"1","Title":"ocfs2: find the xattr entry again after converting a block to a ","CVE":"CVE-2026-99695","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99695","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: find the xattr entry again after converting a block to a bucket\n\nocfs2_xattr_create_index_block() turns a non-indexed xattr block into a\ntree by copying it into a bucket, and the copy sorts the entries: a\nblock holds them in insertion order, a bucket by name hash.\nocfs2_xattr_update_xattr_search() nevertheless relocates the caller's\nsearch by the index the entry had in the block, so unless the two orders\nagreed it points at an unrelated entry, and nothing between there and\nthe write compares that entry's name with the one being set.\n\nSetting an xattr whose new value no longer fits the block arrives here\nwith xs->not_found clear.  The block gave up because\nocfs2_xa_block_can_reuse() wants an exact namevalue size match, while\nocfs2_xa_bucket_can_reuse() only wants an entry at least as large as the\nnew one, so the bucket accepts a pair the block rejected and the update\nlands on whichever entry the sort left at that index.  Equal padded name\nlengths get that other attribute's value replaced in place and its name\nleft alone, so setxattr returns success while the attribute asked for\nkeeps its old value.  A longer one trips ocfs2_xa_reuse_entry()'s\nBUG_ON, and a shorter one is refused by the bucket as well, so\nocfs2_xa_prepare_entry() wipes the entry and writes the new name over\nit, leaving xe_name_hash describing a name that is no longer there.\n\nFind the entry again by the name being set, matching the type as well.\nThe copy carries every entry and every name over unchanged, and (type,\nname) pairs are unique within a block, so the match is exact.  The type\nmatters because the handlers strip their prefix before calling\nocfs2_xattr_set(), so user.foo and trusted.foo share a stored name, a\nstored length and a hash, and both can sit in the same block.\n\nThe name has to come from xi rather than from xs->here: a failed set can\nremove the entry xs->here names, and only the \"growing\" caller sets\nctxt->set_abort, which is what stops the conversion.  Scan every entry\nrather than narrowing on the hash the way ocfs2_find_xe_in_bucket()\ndoes, since an existing entry keeps the hash it was stored under, which\na kernel that sign-extended the name bytes made different from the one\ncomputed now.  An empty result means the entry did not survive the\nfailed set and this has become an insert; leaving xs->here alone would\nkeep it pointing into the block, which is rewritten as a tree root\nbefore the caller reads it again.","Type":"Description","Title":"ocfs2: find the xattr entry again after converting a block to a "}]}}}