Bug #77862
closedmds: reclaim_session auth_name check is bypassed, any client can evict another client's session
0%
Description
Summary¶
Server::reclaim_session() rejects a session-reclaim from a mismatched cephx identity with -EPERM, but does not return after sending the reply. It falls through and reclaims the target session anyway, so the auth_name check has no effect.
Impact¶
An authenticated MDS client can evict or kill any other client's session by its reclaim uuid, without matching that client's cephx identity. The auth_name check that is meant to allow a reclaim only from the same identity is bypassed.
A client sends MClientReclaim with the victim's reclaim uuid and CEPH_RECLAIM_RESET. find_session_by_uuid() returns the victim's session, session->info.auth_name differs from the target's, and -EPERM is sent to the caller. Execution then continues: session->reclaiming_from is bound to the target and finish_reclaim_session() calls kill_session() / evict_client() on the target. The victim is evicted regardless of the failed check.
VS Updated by Venky Shankar 5 months ago
- Category set to Correctness/Safety
- Target version set to v21.1.0
- Source set to Community (dev)
VS Updated by Venky Shankar 4 months ago
- Target version changed from v21.1.0 to v22.0.0
UB Updated by Upkeep Bot 4 months ago
- Status changed from Fix Under Review to Pending Backport
- Merge Commit set to 6beaf71d960430c8073035aecf6cb4e2f930d817
- Fixed In set to v21.3.0-1553-g6beaf71d96
- Upkeep Timestamp set to 2026-07-30T08:33:33+00:00
UB Updated by Upkeep Bot 4 months ago
- Copied to Backport #78867: umbrella: mds: reclaim_session auth_name check is bypassed, any client can evict another client's session added
UB Updated by Upkeep Bot 4 months ago
- Copied to Backport #78868: squid: mds: reclaim_session auth_name check is bypassed, any client can evict another client's session added
UB Updated by Upkeep Bot 4 months ago
- Copied to Backport #78869: tentacle: mds: reclaim_session auth_name check is bypassed, any client can evict another client's session added
UB Updated by Upkeep Bot 4 months ago
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Backporting
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2026-07-30T08:33:33+00:00 to 2026-08-27T18:43:39+00:00
UB Updated by Upkeep Bot 29 days ago
- Status changed from Backporting to Resolved
- Upkeep Timestamp changed from 2026-08-27T18:43:39+00:00 to 2026-11-04T00:56:56+00:00