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

ksmbd: fix use-after-free by using call_rcu() for oplock_info

ksmbd currently frees oplock_info immediately using kfree(), even
though it is accessed under RCU read-side critical sections in places
like opinfo_get() and proc_show_files().

Since there is no RCU grace period delay between nullifying the pointer
and freeing the memory, a reader can still access oplock_info
structure after it has been freed. This can leads to a use-after-free
especially in opinfo_get() where atomic_inc_not_zero() is called on
already freed memory.

Fix this by switching to deferred freeing using call_rcu().
Published: 2026-05-08
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel’s ksmbd module contains a use‑after‑free flaw: it frees the oplock_info structure with kfree() while still being accessed under RCU read‑side critical sections in functions such as opinfo_get() and proc_show_files(). Because no RCU grace period is observed before freeing the memory, a reader can dereference oplock_info after it has been released, potentially corrupting kernel memory and enabling privileged code execution or escalation. The weakness is classified as CWE‑763.

Affected Systems

All Linux kernel releases before the commit that replaces the immediate kfree() call with call_rcu() for oplock_info are affected. The product is the Linux kernel, across all vendors (Linux:Linux), with no specific version ranges listed in the CVE data.

Risk and Exploitability

The EPSS score is not available and the vulnerability is not listed in CISA’s KEV catalog, indicating no documented widespread exploitation to date. The likely attack vector is a remote SMB request to a ksmbd‑enabled host; however, this is inferred from the nature of the module rather than explicitly stated. Successful exploitation would grant kernel privilege escalation, so the overall risk remains high though the exploitation likelihood appears low based on current evidence.

Generated by OpenCVE AI on May 9, 2026 at 05:53 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the kernel patch that replaces kfree() with call_rcu() for oplock_info as referenced in the CVE commit logs.
  • Upgrade the system to a kernel version that includes the fix and reboot so the new code takes effect.
  • If an upgrade cannot be performed immediately, disable or restrict ksmbd (SMB) service access on exposed network interfaces.

Generated by OpenCVE AI on May 9, 2026 at 05:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 09 May 2026 04:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Sat, 09 May 2026 00:15:00 +0000


Fri, 08 May 2026 16:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Fri, 08 May 2026 14:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix use-after-free by using call_rcu() for oplock_info ksmbd currently frees oplock_info immediately using kfree(), even though it is accessed under RCU read-side critical sections in places like opinfo_get() and proc_show_files(). Since there is no RCU grace period delay between nullifying the pointer and freeing the memory, a reader can still access oplock_info structure after it has been freed. This can leads to a use-after-free especially in opinfo_get() where atomic_inc_not_zero() is called on already freed memory. Fix this by switching to deferred freeing using call_rcu().
Title ksmbd: fix use-after-free by using call_rcu() for oplock_info
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-05-08T14:21:25.854Z

Reserved: 2026-05-01T14:12:56.006Z

Link: CVE-2026-43376

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-05-08T15:16:48.760

Modified: 2026-05-08T15:16:48.760

Link: CVE-2026-43376

cve-icon Redhat

Severity :

Publid Date: 2026-05-08T00:00:00Z

Links: CVE-2026-43376 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-05-09T06:00:12Z

Weaknesses