In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix use-after-free of a deferred file_lock on double SMB2_CANCEL A deferred byte-range lock (an SMB2_LOCK that blocks) regis…
- CVSS
- 8.8High
- Chance of exploitation (EPSS)
- 0.45%
- Published
- Jun 25, 2026
- In the news
- 1 story
What to do
A serious memory corruption flaw in Linux kernel that can be attacked over the network by someone with an account. No attacks are reported yet; it can go in your normal patch cycle.
Action: Apply the vendor's update or follow its advisory.
Affected versions
- Linux
- 5.15
Description
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix use-after-free of a deferred file_lock on double SMB2_CANCEL
A deferred byte-range lock (an SMB2_LOCK that blocks) registers an async work on
conn->async_requests via setup_async_work(), with cancel_fn =
smb2_remove_blocked_lock and cancel_argv[0] pointing at the struct file_lock.
When the request is cancelled, the worker frees the file_lock with
locks_free_lock() and takes the cancelled early-exit, which "goto out"s and never
reaches release_async_work() -- the only site that unlinks the work from
conn->async_requests and clears cancel_fn/cancel_argv. The work therefore stays
matchable on async_requests with a live cancel_fn pointing at the freed file_lock,
until connection teardown finally runs release_async_work().
smb2_cancel() fires cancel_fn unconditionally with no state guard, so a second
SMB2_CANCEL for the same AsyncId, arriving in that window, re-runs
smb2_remove_blocked_lock() on the freed file_lock -- a slab use-after-free:
BUG: KASAN: slab-use-after-free in __locks_delete_block
__locks_delete_block
locks_delete_block
ksmbd_vfs_posix_lock_unblock
smb2_remove_blocked_lock
smb2_cancel <- 2nd SMB2_CANCEL fires cancel_fn
handle_ksmbd_work
Allocated by ...: locks_alloc_lock <- smb2_lock
Freed by ...: locks_free_lock <- smb2_lock (cancelled branch)
... cache file_lock_cache of size 192
Reproduced on mainline with KASAN by an authenticated SMB client.
Skip a work whose state is already KSMBD_WORK_CANCELLED so its cancel callback
cannot be fired a second time.
Affected products
Get alerts for these →Timeline 13
Latest change: Nessus plugin 392096: Ubuntu 22.04 LTS / 24.04 LTS / Pro Realtime 24.04 LTS : linux-oracle-6.8, linux-raspi, linux-raspi-realtime vulnerabilities (USN-9025-1) (Dec 2, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Thu, Dec 3, 2026
Wed, Dec 2, 2026
- DetectionTenable Cloud Security plugin 493684: Chainguard: multiple linux-aws-6.12 packages: security update to 6.12.95-r0multiple linux-aws-6.18 packages: security update to 6.18.38-r0Tenable
- DetectionTenable Container Security plugin 493684: Chainguard: multiple linux-aws-6.12 packages: security update to 6.12.95-r0multiple linux-aws-6.18 packages: security update to 6.18.38-r0Tenable
Sat, Nov 14, 2026
- DetectionNessus plugin 343527: Ubuntu 24.04 LTS / 26.04 LTS / Pro Realtime 24.04 LTS : Linux kernel vulnerabilities (USN-8726-1)Tenable
- DetectionNessus plugin 343531: Ubuntu 26.04 LTS : Linux kernel (OEM) vulnerabilities (USN-8727-1)Tenable
- DetectionNessus plugin 346233: Ubuntu 24.04 LTS / Pro Realtime 24.04 LTS : Linux kernel (NVIDIA) vulnerabilities (USN-8760-1)Tenable
- DetectionNessus plugin 349106: Ubuntu 26.04 LTS : Linux kernel (NVIDIA BaseOS) vulnerabilities (USN-8800-1)Tenable
Thu, Oct 22, 2026
- AdvisorySiemens SIMATIC S7 Webserver APICISA · 12:00 UTC
- AdvisorySiemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFPCISA · 12:00 UTC
- AdvisorySiemens SIMATIC IPCsCISA · 12:00 UTC
- AdvisorySiemens SIMATIC S7 PLCs Web ServerCISA · 12:00 UTC
- AdvisorySiemens SIMATIC S7-1500 TM MFPCISA · 12:00 UTC
Thu, Jun 25, 2026
- CVECVE-2026-53198 published (CVSS 8.8)CVE Program · 09:16 UTC
References 7
- git.kernel.org Patch /stable/c/0da2e073f9cbf4985a0fd9acb71bc5ff599f8afd
- git.kernel.org Patch /stable/c/14d2eee0193ac3cd1bf3d014373449f0b8d35d6d
- git.kernel.org Patch /stable/c/2b2eda2821cff1d1b5a423b6ee7d8fc6fbc8e694
- git.kernel.org Patch /stable/c/89ae9df09d2c1fb4a4eb495c113a7ce1dca34147
- git.kernel.org Patch /stable/c/b7063c7426ea5a4d15e01b60538718765392f49d
- git.kernel.org Patch /stable/c/f580d27e8928828693df44ba2db0fffdbe11dfea
- cert-portal.siemens.com /productcert/html/ssa-784472.html