CVE-2025-37778

ksmbd: Fix dangling pointer in krb_authenticate

State
Published
Severity
9.8 Critical
Published
May 1, 2025
Updated
Oct 15, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.19.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before b61f04d5d73c53d183019bafe22fb700a739bac5Affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before d5b554bc8d554ed6ddf443d3db2fad9f665cec10Affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 1db2451de23e98bc864c6a6e52aa0d82c91cb325Affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 6e30c0e10210c714f3d4453dc258d4abcc70364eAffected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before e83e39a5f6a01a81411a4558a59a10f87aa88dd6Affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 1e440d5b25b7efccb3defe542a73c51005799a5fAffected
LinuxLinux
  • 5.15Affected
  • before 5.15Not affected
  • 5.15.203 through 5.15.*Not affected
  • 6.1.135 through 6.1.*Not affected
  • 6.6.88 through 6.6.*Not affected
  • 6.12.25 through 6.12.*Not affected
  • 6.14.4 through 6.14.*Not affected
  • 6.15 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.