CVE-2026-53198
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedIn 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceUse-after-free in ksmbd's SMB2_CANCEL handler where a deferred byte-range lock's file_lock structure is freed on first cancel but the async work entry remains with a stale cancel_fn pointer, allowing a second SMB2_CANCEL to dereference the freed memory.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 5.15, < 6.1.176>= 6.2, < 6.6.143>= 6.7, < 6.12.94>= 6.13, < 6.18.36>= 6.19, < 7.0.13= 7.1CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Verify ksmbd is activeCheck if the ksmbd kernel module is loaded (lsmod | grep ksmbd) or if the ksmbd server process is running (ps aux | grep ksmbd).Affected if ksmbd module is loaded and the server is running, exposing the vulnerable SMB2_CANCEL handler.
-
Check kernel versionRun 'uname -r' to obtain the running kernel version and compare it against the affected ranges: >= 5.15 to < 6.1.176, >= 6.2 to < 6.6.143, >= 6.7 to < 6.12.94, >= 6.13 to < 6.18.36, >= 6.19 to < 7.0.13, or version 7.1.Affected if The kernel version falls within any of the listed affected ranges.
-
Confirm SMB server is configuredCheck for active SMB shares or connections using 'smbstatus' if available, or by reviewing /etc/ksmbd/ksmbd.conf for share definitions.Affected if ksmbd has exported shares or has active SMB connections, making the SMB2_CANCEL code path reachable.
A system is affected if it runs a vulnerable kernel version AND has ksmbd active with configured shares or active connections, enabling the SMB2_CANCEL handler to be triggered.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped6.1.1766.6.1436.12.94
Apply the kernel patch that skips cancelled async works to prevent the stale cancel callback from being invoked.
Linux Kernel 6.18.36 (or minimum 6.1.176/6.6.143/6.12.94 depending on branch)
- 1. Identify the current running kernel version using `uname -r`
- 2. Check if the system is running an affected kernel version (>= 5.15, < 6.1.176; >= 6.2, < 6.6.143; >= 6.7, < 6.12.94; or >= 6.13, < 6.18.36)
- 3. Schedule a maintenance window for kernel upgrade (this requires system reboot)
- 4. Update the package manager and install a newer kernel version appropriate for your distribution
- 5. For RHEL/CentOS/Fedora: run `dnf update kernel` or `yum update kernel`
- 6. For Debian/Ubuntu: run `apt-get update && apt-get install linux-image-<version>`
- 7. Verify the new kernel version is greater than or equal to the fixed version for your branch (6.1.176, 6.6.143, 6.12.94, or 6.18.36)
- 8. Reboot the system to load the patched kernel
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing3.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,800.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-53198 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-53198 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data