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().
{ "vanir_signatures": [ { "id": "CVE-2024-26954-0f32df25", "signature_type": "Line", "target": { "file": "fs/smb/server/smb2misc.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3b8da67191e938a63d2736dabb4ac5d337e5de57", "digest": { "threshold": 0.9, "line_hashes": [ "26253354792543984686480899033931768646", "97872940805064119207510968817489722000", "168814820966151643734658209546328590351", "168452191157954854320790163991553529096" ] }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2024-26954-14f8657b", "signature_type": "Line", "target": { "file": "fs/smb/server/smb2misc.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9e4937cbc150f9d5a9b5576e1922ef0b5ed2eb72", "digest": { "threshold": 0.9, "line_hashes": [ "26253354792543984686480899033931768646", "97872940805064119207510968817489722000", "168814820966151643734658209546328590351", "168452191157954854320790163991553529096" ] }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2024-26954-5538b878", "signature_type": "Function", "target": { "file": "fs/smb/server/smb2misc.c", "function": "smb2_get_data_area_len" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a80a486d72e20bd12c335bcd38b6e6f19356b0aa", "digest": { "function_hash": "229702261231103149532325121934086565211", "length": 2830.0 }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2024-26954-6555fcbc", "signature_type": "Line", "target": { "file": "fs/smb/server/smb2misc.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a80a486d72e20bd12c335bcd38b6e6f19356b0aa", "digest": { "threshold": 0.9, "line_hashes": [ "26253354792543984686480899033931768646", "97872940805064119207510968817489722000", "168814820966151643734658209546328590351", "168452191157954854320790163991553529096" ] }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2024-26954-6ef25423", "signature_type": "Function", "target": { "file": "fs/smb/server/smb2misc.c", "function": "smb2_get_data_area_len" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4f97e6a9d62cb1fce82fbf4baff44b83221bc178", "digest": { "function_hash": "229702261231103149532325121934086565211", "length": 2830.0 }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2024-26954-71581200", "signature_type": "Line", "target": { "file": "fs/smb/server/smb2misc.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4f97e6a9d62cb1fce82fbf4baff44b83221bc178", "digest": { "threshold": 0.9, "line_hashes": [ "26253354792543984686480899033931768646", "97872940805064119207510968817489722000", "168814820966151643734658209546328590351", "168452191157954854320790163991553529096" ] }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2024-26954-784c671b", "signature_type": "Function", "target": { "file": "fs/smb/server/smb2misc.c", "function": "smb2_get_data_area_len" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9e4937cbc150f9d5a9b5576e1922ef0b5ed2eb72", "digest": { "function_hash": "229702261231103149532325121934086565211", "length": 2830.0 }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2024-26954-99587365", "signature_type": "Function", "target": { "file": "fs/smb/server/smb2misc.c", "function": "smb2_get_data_area_len" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d70c2e0904ab3715c5673fd45788a464a246d1db", "digest": { "function_hash": "229702261231103149532325121934086565211", "length": 2830.0 }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2024-26954-e9b1a3ea", "signature_type": "Function", "target": { "file": "fs/smb/server/smb2misc.c", "function": "smb2_get_data_area_len" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3b8da67191e938a63d2736dabb4ac5d337e5de57", "digest": { "function_hash": "229702261231103149532325121934086565211", "length": 2830.0 }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2024-26954-f7d491c8", "signature_type": "Line", "target": { "file": "fs/smb/server/smb2misc.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d70c2e0904ab3715c5673fd45788a464a246d1db", "digest": { "threshold": 0.9, "line_hashes": [ "26253354792543984686480899033931768646", "97872940805064119207510968817489722000", "168814820966151643734658209546328590351", "168452191157954854320790163991553529096" ] }, "deprecated": false, "signature_version": "v1" } ] }