{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-22043","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2024-12-29T08:45:45.810Z","datePublished":"2025-04-16T14:12:04.558Z","dateUpdated":"2026-08-05T11:56:16.436Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-08-05T11:56:16.436Z"},"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."}],"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."}]}],"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":"8d4848c45943c9cf5e86142fd7347efa97f497db","status":"affected","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","lessThan":"29b946714d6aa77de54c71243bba39469ac43ef2","status":"affected","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","lessThan":"1107b9ed92194603593c51829a3887812ae9e806","status":"affected","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","lessThan":"f0db3d9d416e332a0d6f045a1509539d3a4cd898","status":"affected","versionType":"git"},{"version":"0626e6641f6b467447c81dd7678a69c66f7746cf","lessThan":"542027e123fc0bfd61dd59e21ae0ee4ef2101b29","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":"6.6.87","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.23","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.13.11","lessThanOrEqual":"6.13.*","status":"unaffected","versionType":"semver"},{"version":"6.14.2","lessThanOrEqual":"6.14.*","status":"unaffected","versionType":"semver"},{"version":"6.15","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":"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"}]}]}],"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"}],"title":"ksmbd: add bounds check for durable handle context","x_generator":{"engine":"bippy-1.2.0"}}}}