In the Linux kernel, the following vulnerability has been resolved:
ksmbd: validate zero numsubauth before subauth is accessed
Access psid->subauth[psid->numsubauth - 1] without checking if numsubauth is non-zero leads to an out-of-bounds read. This patch adds a validation step to ensure numsubauth != 0 before sub_auth is accessed.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22038.json"
}[
{
"digest": {
"length": 821.0,
"function_hash": "297975275205327920192695705294905195348"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2025-22038-a5f01d15",
"target": {
"function": "sid_to_id",
"file": "fs/smb/server/smbacl.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0e36a3e080d6d8bd7a34e089345d043da4ac8283"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"19163239521123808591213946176744986497",
"292172347692128621371148348468364642430",
"60017403763666860419362192977302300451"
]
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2025-22038-fee5e688",
"target": {
"file": "fs/smb/server/smbacl.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0e36a3e080d6d8bd7a34e089345d043da4ac8283"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-22038.json"