Bug 2492449 (CVE-2026-52954) - CVE-2026-52954 kernel: libceph: handle rbtree insertion error in decode_choose_args()
Summary: CVE-2026-52954 kernel: libceph: handle rbtree insertion error in decode_choos...
Keywords:
Status: NEW
Alias: CVE-2026-52954
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-24 18:12 UTC by OSIDB Bzimport
Modified: 2026-06-25 09:01 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-06-24 18:12:43 UTC
In the Linux kernel, the following vulnerability has been resolved:

libceph: handle rbtree insertion error in decode_choose_args()

A message of type CEPH_MSG_OSD_MAP contains an OSD map that itself
contains a CRUSH map. The received CRUSH map may optionally contain
choose_args that get decoded in decode_choose_args(). In this function,
num_choose_arg_maps is read from the message, and a corresponding number
of crush_choose_arg_maps gets decoded afterwards. Each
crush_choose_arg_map has a choose_args_index, which serves as the key
when inserting it into the choose_args rbtree of the decoded crush_map.
If a (potentially corrupted) message contains two crush_choose_arg_maps
with the same index, the assertion in insert_choose_arg_map() triggers a
kernel BUG when trying to insert the second crush_choose_arg_map.

This patch fixes the issue by switching to the non-asserting rbtree
insertion function and rejecting the message if the insertion fails.

[ idryomov: changelog ]

Comment 1 Mauro Matteo Cascella 2026-06-25 09:00:38 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026062435-CVE-2026-52954-05b2@gregkh/T


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