{"id":"CVE-2025-22043","state":"PUBLISHED","title":"ksmbd: add bounds check for durable handle context","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: add bounds check for durable handle context\n\nAdd missing bounds check for durable handle context.","publishedAt":"2025-04-16T14:12:04.558Z","updatedAt":"2026-08-05T11:56:16.436Z","severity":{"score":8.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"8d4848c45943c9cf5e86142fd7347efa97f497db","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"29b946714d6aa77de54c71243bba39469ac43ef2","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"1107b9ed92194603593c51829a3887812ae9e806","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"f0db3d9d416e332a0d6f045a1509539d3a4cd898","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"542027e123fc0bfd61dd59e21ae0ee4ef2101b29","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/server/smb2pdu.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"6.6.87","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.23","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.11","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14.2","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","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/smb2pdu.c"]}],"references":["https://git.kernel.org/stable/c/8d4848c45943c9cf5e86142fd7347efa97f497db","https://git.kernel.org/stable/c/29b946714d6aa77de54c71243bba39469ac43ef2","https://git.kernel.org/stable/c/1107b9ed92194603593c51829a3887812ae9e806","https://git.kernel.org/stable/c/f0db3d9d416e332a0d6f045a1509539d3a4cd898","https://git.kernel.org/stable/c/542027e123fc0bfd61dd59e21ae0ee4ef2101b29"],"weaknesses":[],"ingestedAt":"2026-10-29T20:08:39.238Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/22xxx/CVE-2025-22043.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-22043","state":"PUBLISHED","datePublished":"2025-04-16T14:12:04.558Z","dateUpdated":"2026-08-05T11:56:16.436Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-12-29T08:45:45.810Z"},"containers":{"cna":{"title":"ksmbd: add bounds check for durable handle context","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: add bounds check for durable handle context\n\nAdd missing bounds check for durable handle context."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"8d4848c45943c9cf5e86142fd7347efa97f497db","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"29b946714d6aa77de54c71243bba39469ac43ef2","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"1107b9ed92194603593c51829a3887812ae9e806","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"f0db3d9d416e332a0d6f045a1509539d3a4cd898","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","status":"affected","lessThan":"542027e123fc0bfd61dd59e21ae0ee4ef2101b29","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/server/smb2pdu.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"6.6.87","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.23","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.11","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14.2","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","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/smb2pdu.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8d4848c45943c9cf5e86142fd7347efa97f497db"},{"url":"https://git.kernel.org/stable/c/29b946714d6aa77de54c71243bba39469ac43ef2"},{"url":"https://git.kernel.org/stable/c/1107b9ed92194603593c51829a3887812ae9e806"},{"url":"https://git.kernel.org/stable/c/f0db3d9d416e332a0d6f045a1509539d3a4cd898"},{"url":"https://git.kernel.org/stable/c/542027e123fc0bfd61dd59e21ae0ee4ef2101b29"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","baseScore":8.1,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - ksmbd is the in-kernel SMB server listening on TCP/445; the malformed SMB2 CREATE request with a crafted durable-handle create context is delivered entirely over the network by a remote peer.\nAC:L - The attacker fully controls the create-context DataOffset/DataLength and struct layout in the request; the undersized context reliably triggers the out-of-bounds read with no uncontrolled preconditions.\nPR:L - SMB2_CREATE is only dispatched after a valid authenticated session (smb2_check_user_session) and tree connect exist, so the attacker needs valid (even low-privilege/guest) SMB credentials — this is post-authentication, not a handshake path.\nUI:N - The attacker triggers the flaw purely by sending a crafted create request; no action by any local user or victim is required.\nS:U - The out-of-bounds read stays within the kernel's own memory and security authority; no boundary such as a VM/hypervisor or IOMMU is crossed.\nC:H - The bug reads tens of bytes of adjacent kernel heap memory beyond the request buffer (well past \"a few bytes\"), which per kernel OOB-read guidance is High confidentiality impact.\nI:N - The defect is strictly a read; it provides no memory-write or corruption primitive, and the OOB-sourced file id/GUID values cannot be steered to a controlled durable-handle takeover.\nA:H - The out-of-bounds read can dereference an unmapped/guard page (kvmalloc/vmalloc-backed buffers) or trip KASAN, producing a kernel oops/panic and denial of service."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:56:16.436Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.6.87"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.12.23"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.13.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.14.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.15"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}