In the Linux kernel, the following vulnerability has been resolved:
ksmbd: Fix dangling pointer in krb_authenticate
krbauthenticate frees sess->user and does not set the pointer to NULL. It calls ksmbdkrb5authenticate to reinitialise sess->user but that function may return without doing so. If that happens then smb2sesssetup, which calls krbauthenticate, will be accessing free'd memory when it later uses sess->user.
[
{
"id": "CVE-2025-37778-0b0fa1a8",
"signature_type": "Function",
"signature_version": "v1",
"target": {
"function": "krb5_authenticate",
"file": "fs/smb/server/smb2pdu.c"
},
"digest": {
"length": 1967.0,
"function_hash": "137444097692411869611218339750415949515"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6e30c0e10210c714f3d4453dc258d4abcc70364e",
"deprecated": false
},
{
"id": "CVE-2025-37778-2ad446cd",
"signature_type": "Function",
"signature_version": "v1",
"target": {
"function": "krb5_authenticate",
"file": "fs/smb/server/smb2pdu.c"
},
"digest": {
"length": 1981.0,
"function_hash": "154443564110610074132631766517653344073"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1e440d5b25b7efccb3defe542a73c51005799a5f",
"deprecated": false
},
{
"id": "CVE-2025-37778-444151c7",
"signature_type": "Line",
"signature_version": "v1",
"target": {
"file": "fs/smb/server/smb2pdu.c"
},
"digest": {
"line_hashes": [
"191792918297376607369595925219911610383",
"241034374104755142152171580311202834606",
"228588476630776465633036965096580471088",
"136634091929795892290614297108292690411",
"68749901486014176370981520890395522512"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1e440d5b25b7efccb3defe542a73c51005799a5f",
"deprecated": false
},
{
"id": "CVE-2025-37778-51da9ae5",
"signature_type": "Function",
"signature_version": "v1",
"target": {
"function": "krb5_authenticate",
"file": "fs/smb/server/smb2pdu.c"
},
"digest": {
"length": 1967.0,
"function_hash": "137444097692411869611218339750415949515"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d5b554bc8d554ed6ddf443d3db2fad9f665cec10",
"deprecated": false
},
{
"id": "CVE-2025-37778-813cca44",
"signature_type": "Function",
"signature_version": "v1",
"target": {
"function": "krb5_authenticate",
"file": "fs/smb/server/smb2pdu.c"
},
"digest": {
"length": 1981.0,
"function_hash": "154443564110610074132631766517653344073"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e83e39a5f6a01a81411a4558a59a10f87aa88dd6",
"deprecated": false
},
{
"id": "CVE-2025-37778-8305cd03",
"signature_type": "Line",
"signature_version": "v1",
"target": {
"file": "fs/smb/server/smb2pdu.c"
},
"digest": {
"line_hashes": [
"191792918297376607369595925219911610383",
"241034374104755142152171580311202834606",
"228588476630776465633036965096580471088",
"136634091929795892290614297108292690411",
"68749901486014176370981520890395522512"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e83e39a5f6a01a81411a4558a59a10f87aa88dd6",
"deprecated": false
},
{
"id": "CVE-2025-37778-a839f27d",
"signature_type": "Line",
"signature_version": "v1",
"target": {
"file": "fs/smb/server/smb2pdu.c"
},
"digest": {
"line_hashes": [
"191792918297376607369595925219911610383",
"241034374104755142152171580311202834606",
"228588476630776465633036965096580471088",
"136634091929795892290614297108292690411",
"68749901486014176370981520890395522512"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d5b554bc8d554ed6ddf443d3db2fad9f665cec10",
"deprecated": false
},
{
"id": "CVE-2025-37778-c92f786d",
"signature_type": "Line",
"signature_version": "v1",
"target": {
"file": "fs/smb/server/smb2pdu.c"
},
"digest": {
"line_hashes": [
"191792918297376607369595925219911610383",
"241034374104755142152171580311202834606",
"228588476630776465633036965096580471088",
"136634091929795892290614297108292690411",
"68749901486014176370981520890395522512"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6e30c0e10210c714f3d4453dc258d4abcc70364e",
"deprecated": false
},
{
"id": "CVE-2025-37778-f7b18037",
"signature_type": "Function",
"signature_version": "v1",
"target": {
"function": "krb5_authenticate",
"file": "fs/smb/server/smb2pdu.c"
},
"digest": {
"length": 1967.0,
"function_hash": "137444097692411869611218339750415949515"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1db2451de23e98bc864c6a6e52aa0d82c91cb325",
"deprecated": false
},
{
"id": "CVE-2025-37778-fd0587ce",
"signature_type": "Line",
"signature_version": "v1",
"target": {
"file": "fs/smb/server/smb2pdu.c"
},
"digest": {
"line_hashes": [
"191792918297376607369595925219911610383",
"241034374104755142152171580311202834606",
"228588476630776465633036965096580471088",
"136634091929795892290614297108292690411",
"68749901486014176370981520890395522512"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1db2451de23e98bc864c6a6e52aa0d82c91cb325",
"deprecated": false
}
]