{"id":"CVE-2023-53399","state":"PUBLISHED","title":"ksmbd: fix NULL pointer dereference in smb2_get_info_filesystem()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix NULL pointer dereference in smb2_get_info_filesystem()\n\nIf share is , share->path is NULL and it cause NULL pointer\ndereference issue.","publishedAt":"2025-09-18T13:33:39.575Z","updatedAt":"2026-08-05T09:13:55.789Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"227eb2689b44d0d60da3839b146983e73435924c","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"a70751dd7b60eab025e97e19b6b2477c6eaf2bbb","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"b35f6c031b87d9e51f141ff6de0ea59756a8e313","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"1636e09779f83e10e6ed57d91ef94abcefdd206b","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"3ac00a2ab69b34189942afa9e862d5170cdcb018","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ksmbd/smb2pdu.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.111","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.28","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.15","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3.2","status":"unaffected","lessThanOrEqual":"6.3.*","versionType":"semver"},{"version":"6.4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ksmbd/smb2pdu.c"]}],"references":["https://git.kernel.org/stable/c/227eb2689b44d0d60da3839b146983e73435924c","https://git.kernel.org/stable/c/a70751dd7b60eab025e97e19b6b2477c6eaf2bbb","https://git.kernel.org/stable/c/b35f6c031b87d9e51f141ff6de0ea59756a8e313","https://git.kernel.org/stable/c/1636e09779f83e10e6ed57d91ef94abcefdd206b","https://git.kernel.org/stable/c/3ac00a2ab69b34189942afa9e862d5170cdcb018"],"weaknesses":["CWE-476"],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/53xxx/CVE-2023-53399.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-53399","state":"PUBLISHED","datePublished":"2025-09-18T13:33:39.575Z","dateUpdated":"2026-08-05T09:13:55.789Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-09-17T14:54:09.738Z"},"containers":{"cna":{"title":"ksmbd: fix NULL pointer dereference in smb2_get_info_filesystem()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix NULL pointer dereference in smb2_get_info_filesystem()\n\nIf share is , share->path is NULL and it cause NULL pointer\ndereference issue."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"227eb2689b44d0d60da3839b146983e73435924c","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"a70751dd7b60eab025e97e19b6b2477c6eaf2bbb","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"b35f6c031b87d9e51f141ff6de0ea59756a8e313","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"1636e09779f83e10e6ed57d91ef94abcefdd206b","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"3ac00a2ab69b34189942afa9e862d5170cdcb018","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ksmbd/smb2pdu.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.111","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.28","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.15","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3.2","status":"unaffected","lessThanOrEqual":"6.3.*","versionType":"semver"},{"version":"6.4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ksmbd/smb2pdu.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/227eb2689b44d0d60da3839b146983e73435924c"},{"url":"https://git.kernel.org/stable/c/a70751dd7b60eab025e97e19b6b2477c6eaf2bbb"},{"url":"https://git.kernel.org/stable/c/b35f6c031b87d9e51f141ff6de0ea59756a8e313"},{"url":"https://git.kernel.org/stable/c/1636e09779f83e10e6ed57d91ef94abcefdd206b"},{"url":"https://git.kernel.org/stable/c/3ac00a2ab69b34189942afa9e862d5170cdcb018"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - ksmbd is the in-kernel SMB server; the bug is reached by sending SMB2_QUERY_INFO over TCP/445 after tree-connecting to IPC$, so a remote network peer triggers it with no local access.\nAC:L - The attacker simply tree-connects to the IPC$ pipe share and issues SMB2_QUERY_INFO with InfoType=SMB2_O_INFO_FILESYSTEM; share->path is always NULL for KSMBD_SHARE_FLAG_PIPE shares, so the NULL deref is deterministic with no race or uncontrolled precondition.\nPR:N - IPC$ is the classic SMB null-session target, and ksmbd's commonly shipped map-to-guest configuration lets an unauthenticated client obtain a guest session, tree-connect IPC$, and reach smb2_get_info_filesystem() without valid credentials.\nUI:N - The attacker drives negotiate, session setup, IPC$ tree connect, and QUERY_INFO entirely from its own SMB client; no victim or administrator action is required beyond ksmbd already listening.\nS:U - The NULL dereference oops/panic affects only the host kernel running ksmbd and does not cross a VM, IOMMU, or other security-authority boundary.\nC:N - This is a pure NULL pointer dereference in getname_kernel()/strlen on share->path; no out-of-bounds read or other disclosure primitive is obtained.\nI:N - The fault is a read of address 0 with no memory write, type confusion, or control-flow hijack path beyond the ensuing oops.\nA:H - Dereferencing the NULL share->path causes a kernel oops/panic in the ksmbd worker (as shown by the KASAN null-ptr-deref report), which is a full availability impact that a remote attacker can repeat at will."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T09:13:55.789Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"5.15.111"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.1.28"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.2.15"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.4"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"id":"CVE-2023-53399","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2026-01-14T19:01:07.198974Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-476","lang":"en","type":"CWE","description":"CWE-476 NULL Pointer Dereference"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-01-14T19:03:06.653Z"}}]}}}