CVE-2026-53010 PUBLISHED

ksmbd: fix use-after-free in smb2_open during durable reconnect

Assigner: Linux
Reserved: 09.06.2026 Published: 24.06.2026 Updated: 28.06.2026

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix use-after-free in smb2_open during durable reconnect

In smb2_open, the call to ksmbd_put_durable_fd(fp) drops the reference to the durable file descriptor early during the durable reconnect process. If an error occurs subsequently (eg, ksmbd_iov_pin_rsp fails) or a scavenger accesses the file, it leads to a use-after-free when accessing fp properties (eg fp->create_time).

Move the single put to the end of the function below err_out2 so fp stays valid until smb2_open returns.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS Score: 9.8

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from c8efcc786146a951091588e5fa7e3c754850cb3c to ce2e164c1c51c3f7813b80f8c926836e896bcbb3 (excl.)
  • affected from c8efcc786146a951091588e5fa7e3c754850cb3c to 97a0cd55283b4e63fd92804da91c8d9896adcad9 (excl.)
  • affected from c8efcc786146a951091588e5fa7e3c754850cb3c to 1baff47b81f94f9231c91236aa511420d0e266b9 (excl.)
  • Version 8df4bcdb0a4232192b2445256c39b787d58ef14d is affected
  • affected from 6.6.32 to 6.7 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.9 is affected
  • unaffected from 0 to 6.9 (excl.)
  • unaffected from 6.18.33 to 6.18.* (incl.)
  • unaffected from 7.0.10 to 7.0.* (incl.)
  • unaffected from 7.1 to * (incl.)

References