Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-40090

published high CVSS 3.1 · 7.5

ksmbd: fix recursive locking in RPC handle list access

Published
30 Oct 2025, 09:47:58 UTC
Updated
05 Aug 2026, 12:07:42 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux69674b029002b1d90b655f014bdf64f404efa54d to < 5493571f4351f74e11db9943e98a07c56467cf7e · 6b615a8fb3af0baf8126cde3d4fee97d57222ffc to < 1891abe832cbf5a11039e088766131d0f1642d02 · 5cc679ba0f4505936124cd4179ba66bb0a4bd9f3 to < 4602b8cee1481dbb896182e5cb1e8cf12910e9e7 · 6bd7e0e55dcea2cf0d391bbc21c2eb069b4be3e1 to < 3412fbd81b46b9cfae013817b61d4bbd27e09e36 · 305853cce379407090a73b38c5de5ba748893aee to < 88f170814fea74911ceab798a43cbd7c5599bed4 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.12.53 to < 6.12.55 · 6.17.3 to < 6.17.5 · Other versions: unaffected Affected Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
SUSE / openSUSE openSUSE-Tumbleweed kernel-develaarch64 Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-develppc64le Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-devels390x Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-develx86_64 Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
Show 20 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE openSUSE-Tumbleweed kernel-devel-longtermaarch64 Advisory build 6.18.16-1.1 OPENSUSE-SU-2026:10301-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-devel-longtermppc64le Advisory build 6.18.16-1.1 OPENSUSE-SU-2026:10301-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-devel-longterms390x Advisory build 6.18.16-1.1 OPENSUSE-SU-2026:10301-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-devel-longtermx86_64 Advisory build 6.18.16-1.1 OPENSUSE-SU-2026:10301-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosaarch64 Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosppc64le Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macross390x Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosx86_64 Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourceaarch64 Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourceppc64le Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sources390x Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourcex86_64 Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-longtermaarch64 Advisory build 6.18.16-1.1 OPENSUSE-SU-2026:10301-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-longtermppc64le Advisory build 6.18.16-1.1 OPENSUSE-SU-2026:10301-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-longterms390x Advisory build 6.18.16-1.1 OPENSUSE-SU-2026:10301-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-longtermx86_64 Advisory build 6.18.16-1.1 OPENSUSE-SU-2026:10301-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillaaarch64 Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillappc64le Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillas390x Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillax86_64 Advisory build 6.17.7-1.1 OPENSUSE-SU-2025:15702-1

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix recursive locking in RPC handle list access Since commit 305853cce3794 ("ksmbd: Fix race condition in RPC handle list access"), ksmbd_session_rpc_method() attempts to lock sess->rpc_lock. This causes hung connections / tasks when a client attempts to open a named pipe. Using Samba's rpcclient tool: $ rpcclient //192.168.1.254 -U user%password $ rpcclient $> srvinfo <connection hung here> Kernel side: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/0:0 state:D stack:0 pid:5021 tgid:5021 ppid:2 flags:0x00200000 Workqueue: ksmbd-io handle_ksmbd_work Call trace: __schedule from schedule+0x3c/0x58 schedule from schedule_preempt_disabled+0xc/0x10 schedule_preempt_disabled from rwsem_down_read_slowpath+0x1b0/0x1d8 rwsem_down_read_slowpath from down_read+0x28/0x30 down_read from ksmbd_session_rpc_method+0x18/0x3c ksmbd_session_rpc_method from ksmbd_rpc_open+0x34/0x68 ksmbd_rpc_open from ksmbd_session_rpc_open+0x194/0x228 ksmbd_session_rpc_open from create_smb2_pipe+0x8c/0x2c8 create_smb2_pipe from smb2_open+0x10c/0x27ac smb2_open from handle_ksmbd_work+0x238/0x3dc handle_ksmbd_work from process_scheduled_works+0x160/0x25c process_scheduled_works from worker_thread+0x16c/0x1e8 worker_thread from kthread+0xa8/0xb8 kthread from ret_from_fork+0x14/0x38 Exception stack(0x8529ffb0 to 0x8529fff8) The task deadlocks because the lock is already held: ksmbd_session_rpc_open down_write(&sess->rpc_lock) ksmbd_rpc_open ksmbd_session_rpc_method down_read(&sess->rpc_lock) <-- deadlock Adjust ksmbd_session_rpc_method() callers to take the lock when necessary.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

2

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.5 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Scenarios
en: AV:N - ksmbd is the in-kernel SMB server listening on TCP/445, and the deadlock is triggered by a remote client sending an SMB2 CREATE for a named pipe on the IPC$ tree. No local access is needed. AC:L - This is an unconditional self-deadlock on a non-recursive rw_semaphore, hit deterministically on the very first named-pipe open — no race to win, no memory layout or timing dependency. PR:N - In the guest-mapping configuration common on ksmbd's NAS/embedded targets, ntlm_authenticate() skips NTLM password verification entirely for guest users, so an attacker with no credentials can establish a session, tree-connect to the always-present IPC$ share, and reach create_smb2_pipe(). UI:N - The attacker triggers the deadlock purely by sending SMB2 protocol messages; no action by any local user or administrator is required. S:U - The deadlock affects kernel worker threads and ksmbd's own locks within the same security authority; no VM, IOMMU, or sandbox boundary is crossed. C:N - The thread blocks in down_read() before doing anything else; no memory is freed, over-read, or leaked, and no data is disclosed to the attacker. I:N - No memory corruption or data modification occurs — the only effect is a permanently held lock, which yields no write primitive. A:H - An unkillable D-state kworker holds sess->rpc_lock forever, blocking connection teardown and — via ksmbd_sessions_deregister() holding the global sessions_table_lock — all sessions server-wide; destroy_workqueue() also hangs, so ksmbd cannot be restarted or unloaded and recovery requires a reboot.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 69674b029002b1d90b655f014bdf64f404efa54d to < 5493571f4351f74e11db9943e98a07c56467cf7e (affected · git)6b615a8fb3af0baf8126cde3d4fee97d57222ffc to < 1891abe832cbf5a11039e088766131d0f1642d02 (affected · git)5cc679ba0f4505936124cd4179ba66bb0a4bd9f3 to < 4602b8cee1481dbb896182e5cb1e8cf12910e9e7 (affected · git)6bd7e0e55dcea2cf0d391bbc21c2eb069b4be3e1 to < 3412fbd81b46b9cfae013817b61d4bbd27e09e36 (affected · git)305853cce379407090a73b38c5de5ba748893aee to < 88f170814fea74911ceab798a43cbd7c5599bed4 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.12.53 to < 6.12.55 (affected · semver)6.17.3 to < 6.17.5 (affected · semver)Default: unaffected Linux · cna

Weaknesses

0

No weakness assertions.

References

5

Provider assertions

1

Linux · cna

ksmbd: fix recursive locking in RPC handle list access

Provenance

Schema
5.2
Searchable
yes
Content hash
cf779f7c9a1f18909951ed361decd6f342a72b62552712109ead441e430e7cab
Ingested
23 Sep 2026, 08:48:04 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected