In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix slab-out-of-bounds in smbstrndupfrom_utf16()
If ->NameOffset of smb2createreq is smaller than Buffer offset of smb2createreq, slab-out-of-bounds read can happen from smb2open. This patch set the minimum value of the name offset to the buffer offset to validate name length of smb2create_req().
[
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"26253354792543984686480899033931768646",
"97872940805064119207510968817489722000",
"168814820966151643734658209546328590351",
"168452191157954854320790163991553529096"
]
},
"target": {
"file": "fs/smb/server/smb2misc.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3b8da67191e938a63d2736dabb4ac5d337e5de57",
"signature_version": "v1",
"id": "CVE-2024-26954-0f32df25",
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"26253354792543984686480899033931768646",
"97872940805064119207510968817489722000",
"168814820966151643734658209546328590351",
"168452191157954854320790163991553529096"
]
},
"target": {
"file": "fs/smb/server/smb2misc.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9e4937cbc150f9d5a9b5576e1922ef0b5ed2eb72",
"signature_version": "v1",
"id": "CVE-2024-26954-14f8657b",
"deprecated": false
},
{
"digest": {
"function_hash": "229702261231103149532325121934086565211",
"length": 2830.0
},
"target": {
"file": "fs/smb/server/smb2misc.c",
"function": "smb2_get_data_area_len"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a80a486d72e20bd12c335bcd38b6e6f19356b0aa",
"signature_version": "v1",
"id": "CVE-2024-26954-5538b878",
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"26253354792543984686480899033931768646",
"97872940805064119207510968817489722000",
"168814820966151643734658209546328590351",
"168452191157954854320790163991553529096"
]
},
"target": {
"file": "fs/smb/server/smb2misc.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a80a486d72e20bd12c335bcd38b6e6f19356b0aa",
"signature_version": "v1",
"id": "CVE-2024-26954-6555fcbc",
"deprecated": false
},
{
"digest": {
"function_hash": "229702261231103149532325121934086565211",
"length": 2830.0
},
"target": {
"file": "fs/smb/server/smb2misc.c",
"function": "smb2_get_data_area_len"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4f97e6a9d62cb1fce82fbf4baff44b83221bc178",
"signature_version": "v1",
"id": "CVE-2024-26954-6ef25423",
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"26253354792543984686480899033931768646",
"97872940805064119207510968817489722000",
"168814820966151643734658209546328590351",
"168452191157954854320790163991553529096"
]
},
"target": {
"file": "fs/smb/server/smb2misc.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4f97e6a9d62cb1fce82fbf4baff44b83221bc178",
"signature_version": "v1",
"id": "CVE-2024-26954-71581200",
"deprecated": false
},
{
"digest": {
"function_hash": "229702261231103149532325121934086565211",
"length": 2830.0
},
"target": {
"file": "fs/smb/server/smb2misc.c",
"function": "smb2_get_data_area_len"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9e4937cbc150f9d5a9b5576e1922ef0b5ed2eb72",
"signature_version": "v1",
"id": "CVE-2024-26954-784c671b",
"deprecated": false
},
{
"digest": {
"function_hash": "229702261231103149532325121934086565211",
"length": 2830.0
},
"target": {
"file": "fs/smb/server/smb2misc.c",
"function": "smb2_get_data_area_len"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d70c2e0904ab3715c5673fd45788a464a246d1db",
"signature_version": "v1",
"id": "CVE-2024-26954-99587365",
"deprecated": false
},
{
"digest": {
"function_hash": "229702261231103149532325121934086565211",
"length": 2830.0
},
"target": {
"file": "fs/smb/server/smb2misc.c",
"function": "smb2_get_data_area_len"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3b8da67191e938a63d2736dabb4ac5d337e5de57",
"signature_version": "v1",
"id": "CVE-2024-26954-e9b1a3ea",
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"26253354792543984686480899033931768646",
"97872940805064119207510968817489722000",
"168814820966151643734658209546328590351",
"168452191157954854320790163991553529096"
]
},
"target": {
"file": "fs/smb/server/smb2misc.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d70c2e0904ab3715c5673fd45788a464a246d1db",
"signature_version": "v1",
"id": "CVE-2024-26954-f7d491c8",
"deprecated": false
}
]