CVE
CVE-2025-37778
CNA 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.
Affected versions
All Linux kernel vulnerabilities →
- 6.15-rc2This version only
- 6.15-rc1This version only
- ≥ 6.13, < 6.14.4Fixed in 6.14.4
- ≥ 6.7, < 6.12.25Fixed in 6.12.25
- ≥ 6.2, < 6.6.88Fixed in 6.6.88
- ≥ 5.15, < 6.1.135Fixed in 6.1.135
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- git.kernel.org/stable/c/1db2451de23e98bc864c6a6e52aa0d82c91cb325 · Patch
- git.kernel.org/stable/c/1e440d5b25b7efccb3defe542a73c51005799a5f · Patch
- git.kernel.org/stable/c/6e30c0e10210c714f3d4453dc258d4abcc70364e · Patch
- git.kernel.org/stable/c/d5b554bc8d554ed6ddf443d3db2fad9f665cec10 · Patch
- git.kernel.org/stable/c/e83e39a5f6a01a81411a4558a59a10f87aa88dd6 · Patch
- lists.debian.org/debian-lts-announce/2025/05/msg00045.html · Third Party Advisory
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.