{"id":"CVE-2026-99965","aliases":[],"cve":{"records":[{"id":"CVE-2026-99965","source":"Linux","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-09-25T10:25:14.449Z","published":"2026-11-30T13:18:42.439Z","modified":"2026-11-30T13:18:42.439Z"}],"publishers":[{"name":"Linux","role":"CNA","organizationId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","modified":"2026-11-30T13:18:42.439Z"}],"references":[{"url":"https://git.kernel.org/stable/c/3a2119720cb9a2b784b1efca7df7546703a80dbe","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/f6953aed116d546aeeb5119faeb5f40bcfc867f9","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/2906b7db27d31c9f69bf94442a0c463a402455e5","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/1e23c37bfc56ba3d89a944ec7ce2ce0c4f4054e3","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/fa93db51c6b9de54770ed6715a0cb5d20934ffca","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/aea3d821519b58c0ea4074734cb5cd1000a8cf65","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/38c3894b287317b39decc4ff97288e0a1145464e","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/f5aee8ae5f85f8dfa78160e5c4963494319cdd64","tags":[],"source":"Linux"}],"weaknesses":[],"applicability":[{"source":"Linux","statements":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"7.4-rc1"}]}]}]}],"prioritization":[]},"title":"ocfs2: reserve value tree metadata when moving an xattr into the inode","titleSource":"Linux","descriptionSource":"Linux","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: reserve value tree metadata when moving an xattr into the inode\n\nocfs2_calc_xattr_set_need() charges no metadata for the case where an\nxattr living in an xattr block or bucket moves back into the inode:\n\n        if (old_in_xb) {\n                if (ocfs2_xattr_can_be_in_inode(inode, xi, xis)) {\n                        clusters_add += new_clusters;\n                        credits += ...;\n                        if (!ocfs2_xattr_is_local(xe))\n                                credits += ocfs2_calc_extend_credits(...);\n                        goto out;\n                }\n        }\n\nThe credits for extending a value tree are there but the matching blocks\nare not, so meta_add stays 0, ocfs2_init_xattr_set_ctxt() skips\nocfs2_reserve_new_metadata_blocks() and ctxt->meta_ac is left NULL.\n\nThis is the shape commit 0cdc7dde00ec (\"ocfs2: fix missing metadata\nreservation for large xattrs\") fixed for the xattr block case, and it is\nreached the same way: namevalue_size() charges a value larger than\nOCFS2_XATTR_INLINE_SIZE as only OCFS2_XATTR_ROOT_SIZE, so\nocfs2_xattr_can_be_in_inode() accepts a new value that will be stored\noutside.  ocfs2_xa_prepare_entry() installs a value root from def_xv and\ngrows it, and once the cluster allocator is fragmented enough to need a\nsecond extent ocfs2_add_clusters_in_btree() finds the root full with no\nmeta_ac at all and answers RESTART_META.  ocfs2_xattr_extend_allocation()\nturns that into -ENOSPC, or into a BUG_ON() without that commit, and\nocfs2_xa_cleanup_value_truncate() takes its !orig_clusters arm, dropping\nthe entry and leaking the clusters already handed out until fsck.ocfs2\nreclaims them.\n\nReserve for the value tree here too.  The entry moves back into the inode\nrather than into a new xattr block, so unlike the create side of\nmeta_guess this needs no block of its own.","score":null,"severity":"unknown","published":"2026-11-30T13:18:42.439Z","modified":"2026-11-30T13:18:42.439Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"78f30c314a74b9dc5d7368d96fe4be883d9a3a04","status":"affected","lessThan":"3a2119720cb9a2b784b1efca7df7546703a80dbe","versionType":"git"},{"version":"78f30c314a74b9dc5d7368d96fe4be883d9a3a04","status":"affected","lessThan":"f6953aed116d546aeeb5119faeb5f40bcfc867f9","versionType":"git"},{"version":"78f30c314a74b9dc5d7368d96fe4be883d9a3a04","status":"affected","lessThan":"2906b7db27d31c9f69bf94442a0c463a402455e5","versionType":"git"},{"version":"78f30c314a74b9dc5d7368d96fe4be883d9a3a04","status":"affected","lessThan":"1e23c37bfc56ba3d89a944ec7ce2ce0c4f4054e3","versionType":"git"},{"version":"78f30c314a74b9dc5d7368d96fe4be883d9a3a04","status":"affected","lessThan":"fa93db51c6b9de54770ed6715a0cb5d20934ffca","versionType":"git"},{"version":"78f30c314a74b9dc5d7368d96fe4be883d9a3a04","status":"affected","lessThan":"aea3d821519b58c0ea4074734cb5cd1000a8cf65","versionType":"git"},{"version":"78f30c314a74b9dc5d7368d96fe4be883d9a3a04","status":"affected","lessThan":"38c3894b287317b39decc4ff97288e0a1145464e","versionType":"git"},{"version":"78f30c314a74b9dc5d7368d96fe4be883d9a3a04","status":"affected","lessThan":"f5aee8ae5f85f8dfa78160e5c4963494319cdd64","versionType":"git"}],"defaultStatus":"unaffected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99965"},{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"2.6.29","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.29","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"defaultStatus":"affected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99965"}],"remediation":[],"references":["https://git.kernel.org/stable/c/3a2119720cb9a2b784b1efca7df7546703a80dbe","https://git.kernel.org/stable/c/f6953aed116d546aeeb5119faeb5f40bcfc867f9","https://git.kernel.org/stable/c/2906b7db27d31c9f69bf94442a0c463a402455e5","https://git.kernel.org/stable/c/1e23c37bfc56ba3d89a944ec7ce2ce0c4f4054e3","https://git.kernel.org/stable/c/fa93db51c6b9de54770ed6715a0cb5d20934ffca","https://git.kernel.org/stable/c/aea3d821519b58c0ea4074734cb5cd1000a8cf65","https://git.kernel.org/stable/c/38c3894b287317b39decc4ff97288e0a1145464e","https://git.kernel.org/stable/c/f5aee8ae5f85f8dfa78160e5c4963494319cdd64"],"sources":[{"name":"CVE","id":"CVE-2026-99965","modified":"2026-11-30T13:18:42.439Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99965"}],"assessments":[],"sourceAffected":[],"observedAt":"2026-11-30T14:01:17.301Z","kev":{"status":"not-listed","checkedAt":"2026-11-30T22:55:31.926Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[],"aiSummary":null}