PT-2026-162932
CVE-2026-99965
·
Published
2026-11-30
·
Updated
2026-11-30
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
In the Linux kernel, the following vulnerability has been resolved:
ocfs2: reserve value tree metadata when moving an xattr into the inode
ocfs2 calc xattr set need() charges no metadata for the case where an
xattr living in an xattr block or bucket moves back into the inode:
if (old in xb) {
if (ocfs2 xattr can be in inode(inode, xi, xis)) {
clusters add += new clusters;
credits += ...;
if (!ocfs2 xattr is local(xe))
credits += ocfs2 calc extend credits(...);
goto out;
}
}The credits for extending a value tree are there but the matching blocks
are not, so meta add stays 0, ocfs2 init xattr set ctxt() skips
ocfs2 reserve new metadata blocks() and ctxt->meta ac is left NULL.
This is the shape commit 0cdc7dde00ec ("ocfs2: fix missing metadata
reservation for large xattrs") fixed for the xattr block case, and it is
reached the same way: namevalue size() charges a value larger than
OCFS2 XATTR INLINE SIZE as only OCFS2 XATTR ROOT SIZE, so
ocfs2 xattr can be in inode() accepts a new value that will be stored
outside. ocfs2 xa prepare entry() installs a value root from def xv and
grows it, and once the cluster allocator is fragmented enough to need a
second extent ocfs2 add clusters in btree() finds the root full with no
meta ac at all and answers RESTART META. ocfs2 xattr extend allocation()
turns that into -ENOSPC, or into a BUG ON() without that commit, and
ocfs2 xa cleanup value truncate() takes its !orig clusters arm, dropping
the entry and leaking the clusters already handed out until fsck.ocfs2
reclaims them.
Reserve for the value tree here too. The entry moves back into the inode
rather than into a new xattr block, so unlike the create side of
meta guess this needs no block of its own.
Found an issue in the description? Have something to add? Feel free to write us 👾