Description
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.
Affected products
linux: linux kernel
References5
- git.kernel.org/stable/c/1baff47b81f94f9231c91236aa511420d0e266b9 Patch
- git.kernel.org/stable/c/97a0cd55283b4e63fd92804da91c8d9896adcad9 Patch
- git.kernel.org/stable/c/ce2e164c1c51c3f7813b80f8c926836e896bcbb3 Patch
- git.kernel.org/stable/c/4db3dcac84c2f14a45ae201efb38de1fb1bfc009
- git.kernel.org/stable/c/f0ff7f12398e85b3a11745ff7feab6246f3d75c2
Metrics
- CVSS 3.1
-
9.8
CRITICAL
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - EPSS — exploit probability
- 0% percentile: 39 · as of 16 November 2026
- CWE
- CWE-416
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.