{"id":"CVE-2026-53010","state":"PUBLISHED","title":"ksmbd: fix use-after-free in smb2_open during durable reconnect","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix use-after-free in smb2_open during durable reconnect\n\nIn smb2_open, the call to ksmbd_put_durable_fd(fp) drops the reference\nto the durable file descriptor early during the durable reconnect\nprocess. If an error occurs subsequently (eg, ksmbd_iov_pin_rsp fails)\nor a scavenger accesses the file, it leads to a use-after-free when\naccessing fp properties (eg fp->create_time).\n\nMove the single put to the end of the function below err_out2 so fp\nstays valid until smb2_open returns.","publishedAt":"2026-06-24T16:29:21.211Z","updatedAt":"2026-09-14T11:58:29.019Z","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":"8df4bcdb0a4232192b2445256c39b787d58ef14d","status":"affected","lessThan":"f0ff7f12398e85b3a11745ff7feab6246f3d75c2","versionType":"git"},{"version":"c8efcc786146a951091588e5fa7e3c754850cb3c","status":"affected","lessThan":"4db3dcac84c2f14a45ae201efb38de1fb1bfc009","versionType":"git"},{"version":"c8efcc786146a951091588e5fa7e3c754850cb3c","status":"affected","lessThan":"ce2e164c1c51c3f7813b80f8c926836e896bcbb3","versionType":"git"},{"version":"c8efcc786146a951091588e5fa7e3c754850cb3c","status":"affected","lessThan":"97a0cd55283b4e63fd92804da91c8d9896adcad9","versionType":"git"},{"version":"c8efcc786146a951091588e5fa7e3c754850cb3c","status":"affected","lessThan":"1baff47b81f94f9231c91236aa511420d0e266b9","versionType":"git"},{"version":"6.6.32","status":"affected","lessThan":"6.6.157","versionType":"semver"}],"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":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.33","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.10","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","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/f0ff7f12398e85b3a11745ff7feab6246f3d75c2","https://git.kernel.org/stable/c/4db3dcac84c2f14a45ae201efb38de1fb1bfc009","https://git.kernel.org/stable/c/ce2e164c1c51c3f7813b80f8c926836e896bcbb3","https://git.kernel.org/stable/c/97a0cd55283b4e63fd92804da91c8d9896adcad9","https://git.kernel.org/stable/c/1baff47b81f94f9231c91236aa511420d0e266b9"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:16.098Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/53xxx/CVE-2026-53010.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-53010","state":"PUBLISHED","datePublished":"2026-06-24T16:29:21.211Z","dateUpdated":"2026-09-14T11:58:29.019Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-06-09T07:44:35.378Z"},"containers":{"cna":{"title":"ksmbd: fix use-after-free in smb2_open during durable reconnect","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix use-after-free in smb2_open during durable reconnect\n\nIn smb2_open, the call to ksmbd_put_durable_fd(fp) drops the reference\nto the durable file descriptor early during the durable reconnect\nprocess. If an error occurs subsequently (eg, ksmbd_iov_pin_rsp fails)\nor a scavenger accesses the file, it leads to a use-after-free when\naccessing fp properties (eg fp->create_time).\n\nMove the single put to the end of the function below err_out2 so fp\nstays valid until smb2_open returns."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8df4bcdb0a4232192b2445256c39b787d58ef14d","status":"affected","lessThan":"f0ff7f12398e85b3a11745ff7feab6246f3d75c2","versionType":"git"},{"version":"c8efcc786146a951091588e5fa7e3c754850cb3c","status":"affected","lessThan":"4db3dcac84c2f14a45ae201efb38de1fb1bfc009","versionType":"git"},{"version":"c8efcc786146a951091588e5fa7e3c754850cb3c","status":"affected","lessThan":"ce2e164c1c51c3f7813b80f8c926836e896bcbb3","versionType":"git"},{"version":"c8efcc786146a951091588e5fa7e3c754850cb3c","status":"affected","lessThan":"97a0cd55283b4e63fd92804da91c8d9896adcad9","versionType":"git"},{"version":"c8efcc786146a951091588e5fa7e3c754850cb3c","status":"affected","lessThan":"1baff47b81f94f9231c91236aa511420d0e266b9","versionType":"git"},{"version":"6.6.32","status":"affected","lessThan":"6.6.157","versionType":"semver"}],"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":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.33","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.10","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","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/f0ff7f12398e85b3a11745ff7feab6246f3d75c2"},{"url":"https://git.kernel.org/stable/c/4db3dcac84c2f14a45ae201efb38de1fb1bfc009"},{"url":"https://git.kernel.org/stable/c/ce2e164c1c51c3f7813b80f8c926836e896bcbb3"},{"url":"https://git.kernel.org/stable/c/97a0cd55283b4e63fd92804da91c8d9896adcad9"},{"url":"https://git.kernel.org/stable/c/1baff47b81f94f9231c91236aa511420d0e266b9"}],"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 - ksmbd is an in-kernel SMB server reachable over TCP, and SMB2_CREATE requests are dispatched from network-received SMB packets to smb2_open. The durable reconnect path is therefore remotely reachable over the network.\nAC:L - An attacker can drive the required SMB sequence by creating a durable handle, disconnecting, and sending a durable reconnect request with controlled create contexts. The bug is a use-after-free/lifetime error in the request path, not a race depending on conditions outside the attacker's control.\nPR:N - Although SMB2_CREATE requires a valid session and tree connect, ksmbd supports guest/anonymous users and guest shares, so a reasonable guest-enabled deployment lets an unauthenticated network client satisfy those gates. Scoring uses that highest reasonable exposure.\nUI:N - No victim user action is required once ksmbd is listening and the share is available. The attacker sends SMB protocol messages directly.\nS:U - The vulnerability is in the kernel SMB server and impacts the same kernel/server security authority. It does not cross a VM, IOMMU, or other separate security scope boundary.\nC:H - The bug is a use-after-free of struct ksmbd_file, which contains kernel pointers, file state, IDs, GUIDs, and list links. Kernel UAF memory corruption can be leveraged for information disclosure, so confidentiality impact is high.\nI:H - Use-after-free in kernel heap objects can be exploited through heap shaping and stale pointer reuse to corrupt kernel state or hijack control flow. Integrity impact is therefore high.\nA:H - The stale ksmbd_file can be dereferenced or closed after free on reconnect/error/scavenger paths, which can crash or destabilize the kernel. Availability impact is high."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-09-14T11:58:29.019Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.32","versionEndExcluding":"6.6.157"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.12.110"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.18.33"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"7.0.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"7.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}