CVE-2025-37778
ksmbd: Fix dangling pointer in krb_authenticate
Reported by linux · Published May 1, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 6.14.4, 6.12.25, 6.6.88, 6.1.135 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 0626e6641f6b467447c81dd7678a69c66f7746cf, 0626e6641f6b467447c81dd7678a69c66f7746cf, 0626e6641f6b467447c81dd7678a69c66f7746cf |
| Linux | Linux | 5.15, 0, 5.15.203 |
| linux | linux_kernel | 5.15, 5.15, 5.15 |
| Linux | Linux | 0626e6641f6b467447c81dd7678a69c66f7746cf, 0626e6641f6b467447c81dd7678a69c66f7746cf, 0626e6641f6b467447c81dd7678a69c66f7746cf |
Timeline
- May 1, 2025 CVE Published
- May 2, 2025 EPSS Score (30 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (196 in total, the first dated here)
- Mar 29, 2026 Security Advisory (235 in total, the first dated here)
- Jun 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-37778
vulnetix vdb fixes CVE-2025-37778
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-37778/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart