Skip to main content
← All vulnerabilities
CVE-2025-37778

ksmbd: Fix dangling pointer in krb_authenticate

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.15.203, 6.1.135, 6.6.88, 6.12.25, 6.14.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

Summary

In the Linux kernel, the following vulnerability has been resolved: ksmbd: Fix dangling pointer in krb_authenticate krb_authenticate frees sess->user and does not set the pointer to NULL. It calls ksmbd_krb5_authenticate to reinitialise sess->user but that function may return without doing so. If that happens then smb2_sess_setup, which calls krb_authenticate, will be accessing free'd memory when it later uses sess->user.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • Linux Linux

    From 0626e6641f6b467447c81dd7678a69c66f7746cf · fixed in b61f04d5d73c53d183019bafe22fb700a739bac5; From 0626e6641f6b467447c81dd7678a69c66f7746cf · fixed in d5b554bc8d554ed6ddf443d3db2fad9f665cec10; From 0626e6641f6b467447c81dd7678a69c66f7746cf · fixed in 1db2451de23e98bc864c6a6e52aa0d82c91cb325; From 0626e6641f6b467447c81dd7678a69c66f7746cf · fixed in 6e30c0e10210c714f3d4453dc258d4abcc70364e; From 0626e6641f6b467447c81dd7678a69c66f7746cf · fixed in e83e39a5f6a01a81411a4558a59a10f87aa88dd6; From 0626e6641f6b467447c81dd7678a69c66f7746cf · fixed in 1e440d5b25b7efccb3defe542a73c51005799a5f

  • Linux Linux

    5.15

  • KernelLinux

    From 5.15.0 · fixed in 5.15.203; From 5.16.0 · fixed in 6.1.135; From 6.2.0 · fixed in 6.6.88; From 6.7.0 · fixed in 6.12.25; From 6.13.0 · fixed in 6.14.4

References 6

git.kernel.org