{"id":"CVE-2023-52755","state":"PUBLISHED","title":"ksmbd: fix slab out of bounds write in smb_inherit_dacl()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix slab out of bounds write in smb_inherit_dacl()\n\nslab out-of-bounds write is caused by that offsets is bigger than pntsd\nallocation size. This patch add the check to validate 3 offsets using\nallocation size.","publishedAt":"2024-05-21T15:30:42.898Z","updatedAt":"2026-08-05T09:11:14.857Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"aaf0a07d60887d6c36fc46a24de0083744f07819","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"8387c94d73ec66eb597c7a23a8d9eadf64bfbafa","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"09d9d8b40a3338193619c14ed4dc040f4f119e70","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"712e01f32e577e7e48ab0adb5fe550646a3d93cb","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"eebff19acaa35820cb09ce2ccb3d21bee2156ffb","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/server/smbacl.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.140","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.64","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.5.13","status":"unaffected","lessThanOrEqual":"6.5.*","versionType":"semver"},{"version":"6.6.3","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/server/smbacl.c"]}],"references":["https://git.kernel.org/stable/c/aaf0a07d60887d6c36fc46a24de0083744f07819","https://git.kernel.org/stable/c/8387c94d73ec66eb597c7a23a8d9eadf64bfbafa","https://git.kernel.org/stable/c/09d9d8b40a3338193619c14ed4dc040f4f119e70","https://git.kernel.org/stable/c/712e01f32e577e7e48ab0adb5fe550646a3d93cb","https://git.kernel.org/stable/c/eebff19acaa35820cb09ce2ccb3d21bee2156ffb"],"weaknesses":["CWE-787"],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/52xxx/CVE-2023-52755.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-52755","state":"PUBLISHED","datePublished":"2024-05-21T15:30:42.898Z","dateUpdated":"2026-08-05T09:11:14.857Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-05-21T15:19:24.235Z"},"containers":{"cna":{"title":"ksmbd: fix slab out of bounds write in smb_inherit_dacl()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix slab out of bounds write in smb_inherit_dacl()\n\nslab out-of-bounds write is caused by that offsets is bigger than pntsd\nallocation size. This patch add the check to validate 3 offsets using\nallocation size."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"aaf0a07d60887d6c36fc46a24de0083744f07819","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"8387c94d73ec66eb597c7a23a8d9eadf64bfbafa","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"09d9d8b40a3338193619c14ed4dc040f4f119e70","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"712e01f32e577e7e48ab0adb5fe550646a3d93cb","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"eebff19acaa35820cb09ce2ccb3d21bee2156ffb","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/server/smbacl.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.140","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.64","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.5.13","status":"unaffected","lessThanOrEqual":"6.5.*","versionType":"semver"},{"version":"6.6.3","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/server/smbacl.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/aaf0a07d60887d6c36fc46a24de0083744f07819"},{"url":"https://git.kernel.org/stable/c/8387c94d73ec66eb597c7a23a8d9eadf64bfbafa"},{"url":"https://git.kernel.org/stable/c/09d9d8b40a3338193619c14ed4dc040f4f119e70"},{"url":"https://git.kernel.org/stable/c/712e01f32e577e7e48ab0adb5fe550646a3d93cb"},{"url":"https://git.kernel.org/stable/c/eebff19acaa35820cb09ce2ccb3d21bee2156ffb"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL"},"scenarios":[{"lang":"en","value":"AV:N - The bug is in ksmbd (fs/smb/server/) and is reached over SMB on TCP/445 via SMB2 CREATE after an attacker plants a malicious security descriptor; the kernel guidance treats ksmbd as Network.\nAC:L - The attacker fully controls planting the parent SD (SET_INFO SECURITY / create SD buffer) with oversized osid/gsid/dacl offsets and then triggers smb_inherit_dacl() by creating a child under that directory, so the OOB write is reliable with no conditions outside attacker control.\nPR:N - ZDI states authentication may not be required depending on configuration; the worst reasonable case is a guest_ok writable share where a passwordless guest session can create directories, set WinACLs, and create children, which scores as no privileges.\nUI:N - Exploitation is performed entirely by the remote attacker through SMB negotiate/session/tree-connect/create/set-info; no victim action such as mounting or opening a file is required.\nS:U - The slab out-of-bounds write corrupts kernel heap within the same host kernel security authority and does not cross a VM, IOMMU, or sandbox boundary.\nC:H - A heap OOB write with attacker-influenced offset and SID/ACE payload is an exploitable memory-corruption primitive that enables arbitrary kernel read/disclosure as part of RCE, matching ZDI’s remote code execution assessment.\nI:H - The vulnerability is a confirmed slab out-of-bounds write (CWE-787) of attacker-controlled ACL/SID bytes at attacker-controlled offsets, which yields arbitrary write and control-flow hijacking for kernel code execution.\nA:H - Writing past the kzalloc’d NTSD object corrupts adjacent slab memory and can oops/panic ksmbd worker threads even when not fully exploited for RCE, so availability impact is complete."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T09:11:14.857Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"5.15.140"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.1.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.5.13"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.6.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.7"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"linux","product":"linux_kernel","defaultStatus":"affected","versions":[{"version":"1da177e4c3f4","status":"affected","lessThan":"aaf0a07d6088","versionType":"git"},{"version":"1da177e4c3f4","status":"affected","lessThan":"8387c94d73ec","versionType":"git"},{"version":"1da177e4c3f4","status":"affected","lessThan":"09d9d8b40a33","versionType":"git"},{"version":"1da177e4c3f4","status":"affected","lessThan":"712e01f32e57","versionType":"git"},{"version":"1da177e4c3f4","status":"affected","lessThan":"eebff19acaa3","versionType":"git"}],"cpes":["cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"]}],"metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":8.4,"attackVector":"LOCAL","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-08-01T03:55:53.690996Z","id":"CVE-2023-52755","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-787","type":"CWE","lang":"en","description":"CWE-787 Out-of-bounds Write"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-08-01T13:46:35.727Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/aaf0a07d60887d6c36fc46a24de0083744f07819","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/8387c94d73ec66eb597c7a23a8d9eadf64bfbafa","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/09d9d8b40a3338193619c14ed4dc040f4f119e70","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/712e01f32e577e7e48ab0adb5fe550646a3d93cb","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/eebff19acaa35820cb09ce2ccb3d21bee2156ffb","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T23:11:35.921Z"}}]}}}