In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix out-of-bounds in parsesecdesc()
If osidoffset, gsidoffset and dacloffset could be greater than smb_ntsd struct size. If it is smaller, It could cause slab-out-of-bounds. And when validating sid, It need to check it included subauth array size.
[
{
"id": "CVE-2025-21946-02ab124b",
"signature_version": "v1",
"digest": {
"function_hash": "19099296053796741556844639453610125499",
"length": 186.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c1569dbbe2d43041be9f3fef7ca08bec3b66ad1b",
"target": {
"file": "fs/smb/server/smbacl.c",
"function": "parse_sid"
}
},
{
"id": "CVE-2025-21946-285bd8ba",
"signature_version": "v1",
"digest": {
"function_hash": "258078032066190631118018421790195541710",
"length": 1918.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c1569dbbe2d43041be9f3fef7ca08bec3b66ad1b",
"target": {
"file": "fs/smb/server/smbacl.c",
"function": "parse_sec_desc"
}
},
{
"id": "CVE-2025-21946-3e962e98",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"321500570208980088437105456298835268821",
"298176824356441214070682504711865561728",
"178964263320080926020968170826905452834",
"157866493693322724327318952073456228462",
"247683979836895939794261798826849696557",
"191190868189354746862640349611432480390",
"37447734809255747160044747295773634367",
"330383751235527500066216681320073379353",
"71722242097975101731183357493673707816",
"4614412946290268582447730321736453728",
"176022032923928307284732436215610819589",
"306740485436755956425744036835404294340",
"26801208305940560052485917678478168141",
"221045083935900005275131855180403088190",
"65130813212430896086221299491372869325"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@159d059cbcb0e6d0e7a7b34af3862ba09a6b22d1",
"target": {
"file": "fs/smb/server/smbacl.c"
}
},
{
"id": "CVE-2025-21946-4b19303d",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"321500570208980088437105456298835268821",
"298176824356441214070682504711865561728",
"178964263320080926020968170826905452834",
"157866493693322724327318952073456228462",
"247683979836895939794261798826849696557",
"191190868189354746862640349611432480390",
"37447734809255747160044747295773634367",
"330383751235527500066216681320073379353",
"71722242097975101731183357493673707816",
"4614412946290268582447730321736453728",
"176022032923928307284732436215610819589",
"306740485436755956425744036835404294340",
"26801208305940560052485917678478168141",
"221045083935900005275131855180403088190",
"65130813212430896086221299491372869325"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d6e13e19063db24f94b690159d0633aaf72a0f03",
"target": {
"file": "fs/smb/server/smbacl.c"
}
},
{
"id": "CVE-2025-21946-6c477571",
"signature_version": "v1",
"digest": {
"function_hash": "19099296053796741556844639453610125499",
"length": 186.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6a9831180d0b23b5c97e2bd841aefc8f82900172",
"target": {
"file": "fs/smb/server/smbacl.c",
"function": "parse_sid"
}
},
{
"id": "CVE-2025-21946-7adb0de8",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"321500570208980088437105456298835268821",
"298176824356441214070682504711865561728",
"178964263320080926020968170826905452834",
"157866493693322724327318952073456228462",
"247683979836895939794261798826849696557",
"191190868189354746862640349611432480390",
"37447734809255747160044747295773634367",
"330383751235527500066216681320073379353",
"71722242097975101731183357493673707816",
"4614412946290268582447730321736453728",
"176022032923928307284732436215610819589",
"306740485436755956425744036835404294340",
"26801208305940560052485917678478168141",
"221045083935900005275131855180403088190",
"65130813212430896086221299491372869325"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6a9831180d0b23b5c97e2bd841aefc8f82900172",
"target": {
"file": "fs/smb/server/smbacl.c"
}
},
{
"id": "CVE-2025-21946-7cdb3115",
"signature_version": "v1",
"digest": {
"function_hash": "258078032066190631118018421790195541710",
"length": 1918.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d6e13e19063db24f94b690159d0633aaf72a0f03",
"target": {
"file": "fs/smb/server/smbacl.c",
"function": "parse_sec_desc"
}
},
{
"id": "CVE-2025-21946-acc1fa1d",
"signature_version": "v1",
"digest": {
"function_hash": "258078032066190631118018421790195541710",
"length": 1918.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@159d059cbcb0e6d0e7a7b34af3862ba09a6b22d1",
"target": {
"file": "fs/smb/server/smbacl.c",
"function": "parse_sec_desc"
}
},
{
"id": "CVE-2025-21946-b007741f",
"signature_version": "v1",
"digest": {
"function_hash": "19099296053796741556844639453610125499",
"length": 186.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@159d059cbcb0e6d0e7a7b34af3862ba09a6b22d1",
"target": {
"file": "fs/smb/server/smbacl.c",
"function": "parse_sid"
}
},
{
"id": "CVE-2025-21946-b1080dff",
"signature_version": "v1",
"digest": {
"function_hash": "258078032066190631118018421790195541710",
"length": 1918.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6a9831180d0b23b5c97e2bd841aefc8f82900172",
"target": {
"file": "fs/smb/server/smbacl.c",
"function": "parse_sec_desc"
}
},
{
"id": "CVE-2025-21946-de1f6967",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"321500570208980088437105456298835268821",
"298176824356441214070682504711865561728",
"178964263320080926020968170826905452834",
"157866493693322724327318952073456228462",
"247683979836895939794261798826849696557",
"191190868189354746862640349611432480390",
"37447734809255747160044747295773634367",
"330383751235527500066216681320073379353",
"71722242097975101731183357493673707816",
"4614412946290268582447730321736453728",
"176022032923928307284732436215610819589",
"306740485436755956425744036835404294340",
"26801208305940560052485917678478168141",
"221045083935900005275131855180403088190",
"65130813212430896086221299491372869325"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c1569dbbe2d43041be9f3fef7ca08bec3b66ad1b",
"target": {
"file": "fs/smb/server/smbacl.c"
}
},
{
"id": "CVE-2025-21946-ed9b7549",
"signature_version": "v1",
"digest": {
"function_hash": "19099296053796741556844639453610125499",
"length": 186.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d6e13e19063db24f94b690159d0633aaf72a0f03",
"target": {
"file": "fs/smb/server/smbacl.c",
"function": "parse_sid"
}
}
]