{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2023-3867", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2023-07-24T14:52:44.448Z", "datePublished": "2025-08-16T13:29:51.946Z", "dateUpdated": "2026-08-05T09:09:49.106Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-08-05T09:09:49.106Z" }, "descriptions": [ { "lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix out of bounds read in smb2_sess_setup\n\nksmbd does not consider the case of that smb2 session setup is\nin compound request. If this is the second payload of the compound,\nOOB read issue occurs while processing the first payload in\nthe smb2_sess_setup()." } ], "metrics": [ { "cvssV3_1": { "version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H", "baseScore": 9.1, "baseSeverity": "CRITICAL" }, "scenarios": [ { "lang": "en", "value": "AV:N - ksmbd is an in-kernel SMB server reachable over TCP/445; the bug is in smb2_sess_setup processing of network SMB2 compound PDUs, so a remote attacker can trigger it by sending crafted packets.\nAC:L - The attacker fully controls the compound request layout (e.g., ECHO then SESSION_SETUP) and the misinterpreted SecurityBufferOffset/Length bytes in the first PDU, so the OOB read is reliably triggered with no conditions outside attacker control.\nPR:N - SMB2 SESSION_SETUP is a pre-authentication path; smb2_check_user_session explicitly exempts it (and ECHO), so no credentials or prior session are required.\nUI:N - Exploitation requires only sending SMB2 packets to a reachable ksmbd instance; no victim user action is needed.\nS:U - Impact is confined to the host kernel running ksmbd (memory disclosure/crash); this is a standard kernel vulnerability, not a cross-authority escape such as guest-to-host.\nC:H - Using smb2_get_msg(request_buf) on a non-first compound SESSION_SETUP misreads attacker-influenced offset/length fields and performs an unbounded OOB read past the request buffer; SPNEGO decoding can even copy that kernel memory into mechToken, enabling substantial information disclosure.\nI:N - The vulnerability is an out-of-bounds read; the incorrect response pointer only corrupts the attacker-facing response buffer within its allocation and does not provide an arbitrary kernel write primitive.\nA:H - An attacker-controlled OOB read past the allocated request buffer into unmapped or invalid memory can oops/panic the kernel, fully denying availability of the host." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "fs/smb/server/smb2pdu.c" ], "versions": [ { "version": "0626e6641f6b467447c81dd7678a69c66f7746cf", "lessThan": "676392184785ace61e939831e7ca44a03d438c3b", "status": "affected", "versionType": "git" }, { "version": "0626e6641f6b467447c81dd7678a69c66f7746cf", "lessThan": "ef572ffa8eb44111eed2925fbb2adca78bdcbf61", "status": "affected", "versionType": "git" }, { "version": "0626e6641f6b467447c81dd7678a69c66f7746cf", "lessThan": "2ba03cecb12ac7ac9e0170e251543c56832d9959", "status": "affected", "versionType": "git" }, { "version": "0626e6641f6b467447c81dd7678a69c66f7746cf", "lessThan": "98422bdd4cb3ca4d08844046f6507d7ec2c2b8d8", "status": "affected", "versionType": "git" } ] }, { "product": "Linux", "vendor": "Linux", "defaultStatus": "affected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "fs/smb/server/smb2pdu.c" ], "versions": [ { "version": "5.15", "status": "affected" }, { "version": "0", "lessThan": "5.15", "status": "unaffected", "versionType": "semver" }, { "version": "5.15.145", "lessThanOrEqual": "5.15.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.1.40", "lessThanOrEqual": "6.1.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.4.5", "lessThanOrEqual": "6.4.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.5", "lessThanOrEqual": "*", "status": "unaffected", "versionType": "original_commit_for_fix" } ] } ], "cpeApplicability": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.15", "versionEndExcluding": "5.15.145" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.15", "versionEndExcluding": "6.1.40" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.15", "versionEndExcluding": "6.4.5" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.15", "versionEndExcluding": "6.5" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/676392184785ace61e939831e7ca44a03d438c3b" }, { "url": "https://git.kernel.org/stable/c/ef572ffa8eb44111eed2925fbb2adca78bdcbf61" }, { "url": "https://git.kernel.org/stable/c/2ba03cecb12ac7ac9e0170e251543c56832d9959" }, { "url": "https://git.kernel.org/stable/c/98422bdd4cb3ca4d08844046f6507d7ec2c2b8d8" } ], "title": "ksmbd: fix out of bounds read in smb2_sess_setup", "x_generator": { "engine": "bippy-1.2.0" } } } }