Skip to main content
← All vulnerabilities
CVE-2023-52480

ksmbd: fix race condition between session lookup and expire

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.1.57, 6.3, 6.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix race condition between session lookup and expire Thread A + Thread B ksmbd_session_lookup | smb2_sess_setup sess = xa_load | | | xa_erase(&conn->sessions, sess->id); | | ksmbd_session_destroy(sess) --> kfree(sess) | // UAF! | sess->last_active = jiffies | + This patch add rwsem to fix race condition between ksmbd_session_lookup and ksmbd_expire_session.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Linux Linux

    From 6.1.29 · fixed in 6.1.57; From 6.2.16 · fixed in 6.3; From 6.3.2 · fixed in 6.4

  • Linux Linux

    6.4

References 4

git.kernel.org