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.
[
{
"id": "CVE-2025-22038-0e884eef",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bf21e29d78cd2c2371023953d9c82dfef82ebb36",
"signature_type": "Line",
"signature_version": "v1",
"target": {
"file": "fs/smb/server/smbacl.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"19163239521123808591213946176744986497",
"292172347692128621371148348468364642430",
"60017403763666860419362192977302300451"
]
},
"deprecated": false
},
{
"id": "CVE-2025-22038-1508afcb",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bf21e29d78cd2c2371023953d9c82dfef82ebb36",
"signature_type": "Function",
"signature_version": "v1",
"target": {
"file": "fs/smb/server/smbacl.c",
"function": "sid_to_id"
},
"digest": {
"length": 821.0,
"function_hash": "297975275205327920192695705294905195348"
},
"deprecated": false
},
{
"id": "CVE-2025-22038-151e73b9",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3ac65de111c686c95316ade660f8ba7aea3cd3cc",
"signature_type": "Function",
"signature_version": "v1",
"target": {
"file": "fs/smb/server/smbacl.c",
"function": "sid_to_id"
},
"digest": {
"length": 821.0,
"function_hash": "297975275205327920192695705294905195348"
},
"deprecated": false
},
{
"id": "CVE-2025-22038-1f83ebd6",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@68c6c3142bfcdb049839d40a9a59ebe8ea865002",
"signature_type": "Function",
"signature_version": "v1",
"target": {
"file": "fs/smb/server/smbacl.c",
"function": "sid_to_id"
},
"digest": {
"length": 821.0,
"function_hash": "297975275205327920192695705294905195348"
},
"deprecated": false
},
{
"id": "CVE-2025-22038-9c5ddac6",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@68c6c3142bfcdb049839d40a9a59ebe8ea865002",
"signature_type": "Line",
"signature_version": "v1",
"target": {
"file": "fs/smb/server/smbacl.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"19163239521123808591213946176744986497",
"292172347692128621371148348468364642430",
"60017403763666860419362192977302300451"
]
},
"deprecated": false
},
{
"id": "CVE-2025-22038-a5f01d15",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0e36a3e080d6d8bd7a34e089345d043da4ac8283",
"signature_type": "Function",
"signature_version": "v1",
"target": {
"file": "fs/smb/server/smbacl.c",
"function": "sid_to_id"
},
"digest": {
"length": 821.0,
"function_hash": "297975275205327920192695705294905195348"
},
"deprecated": false
},
{
"id": "CVE-2025-22038-cf704378",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3ac65de111c686c95316ade660f8ba7aea3cd3cc",
"signature_type": "Line",
"signature_version": "v1",
"target": {
"file": "fs/smb/server/smbacl.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"19163239521123808591213946176744986497",
"292172347692128621371148348468364642430",
"60017403763666860419362192977302300451"
]
},
"deprecated": false
},
{
"id": "CVE-2025-22038-f5877b11",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c8bfe1954a0b89e7b29b3a3e7f4c5e0ebd295e20",
"signature_type": "Function",
"signature_version": "v1",
"target": {
"file": "fs/smb/server/smbacl.c",
"function": "sid_to_id"
},
"digest": {
"length": 821.0,
"function_hash": "297975275205327920192695705294905195348"
},
"deprecated": false
},
{
"id": "CVE-2025-22038-f76c8384",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c8bfe1954a0b89e7b29b3a3e7f4c5e0ebd295e20",
"signature_type": "Line",
"signature_version": "v1",
"target": {
"file": "fs/smb/server/smbacl.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"19163239521123808591213946176744986497",
"292172347692128621371148348468364642430",
"60017403763666860419362192977302300451"
]
},
"deprecated": false
},
{
"id": "CVE-2025-22038-fee5e688",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0e36a3e080d6d8bd7a34e089345d043da4ac8283",
"signature_type": "Line",
"signature_version": "v1",
"target": {
"file": "fs/smb/server/smbacl.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"19163239521123808591213946176744986497",
"292172347692128621371148348468364642430",
"60017403763666860419362192977302300451"
]
},
"deprecated": false
}
]