Project

General

Profile

Actions

Bug #77862

closed
KC YS

mds: reclaim_session auth_name check is bypassed, any client can evict another client's session

Bug #77862: mds: reclaim_session auth_name check is bypassed, any client can evict another client's session

Added by Kefu Chai 5 months ago. Updated 29 days ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
Correctness/Safety
Target version:
Due date:
% Done:

0%

Source:
Community (dev)
Backport:
squid tentacle umbrella
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
MDS
Labels (FS):
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-1553-g6beaf71d96
Released In:
Upkeep Timestamp:
2026-11-04T00:56:56+00:00

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.


Related issues 3 (0 open — 3 closed)

Copied to CephFS - Backport #78867: umbrella: mds: reclaim_session auth_name check is bypassed, any client can evict another client's sessionResolvedVenky Shankar

Actions
Copied to CephFS - Backport #78868: squid: mds: reclaim_session auth_name check is bypassed, any client can evict another client's sessionResolvedVenky Shankar

Actions
Copied to CephFS - Backport #78869: tentacle: mds: reclaim_session auth_name check is bypassed, any client can evict another client's sessionResolvedVenky Shankar

Actions

KC Updated by Kefu Chai 5 months ago Actions #1

  • Pull request ID set to 69835

VS Updated by Venky Shankar 5 months ago Actions #2

  • 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 Actions #3

  • Target version changed from v21.1.0 to v22.0.0

UB Updated by Upkeep Bot 4 months ago Actions #4

  • 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 Actions #5

  • 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 Actions #6

  • 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 Actions #7

  • 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 Actions #8

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 3 months ago Actions #9

  • 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 Actions #10

  • 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
Actions

Also available in: PDF Atom