Bug 2514461 (CVE-2026-68450) - CVE-2026-68450 kernel: btrfs: free mapping node on duplicate reloc root insert
Summary: CVE-2026-68450 kernel: btrfs: free mapping node on duplicate reloc root insert
Keywords:
Status: NEW
Alias: CVE-2026-68450
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-12 01:11 UTC by OSIDB Bzimport
Modified: 2026-08-12 07:14 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-12 01:11:09 UTC
In the Linux kernel, the following vulnerability has been resolved:

btrfs: free mapping node on duplicate reloc root insert

__add_reloc_root() allocates a mapping_node before inserting it into
rc->reloc_root_tree.  If rb_simple_insert() finds an existing entry, it
returns the existing rb_node and leaves the newly allocated node unlinked.

The error path then returns -EEXIST without freeing the new node.  Since
the node was never inserted into reloc_root_tree, the later cleanup in
put_reloc_control() cannot find it either.

Free the newly allocated node before returning -EEXIST.

The callers currently assert that -EEXIST should not happen, so this is a
defensive cleanup for an unexpected duplicate insert path.  If the path is
ever reached, the local allocation should still be released.


Note You need to log in before you can comment on or make changes to this bug.