CVE-2024-50286: ksmbd: fix slab-use-after-free in ksmbd_smb2_session_create
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix slab-use-after-free in ksmbd_smb2_session_create
There is a race condition between ksmbd_smb2_session_create and
ksmbd_expire_session. This patch add missing sessions_table_lock
while adding/deleting session from global session table.
Security readout for executives and security teams
Plain-English summary
A race condition in the Linux kernel’s ksmbd SMB server can access freed memory while sessions are created and expired. The supplied assessment rates potential confidentiality, integrity, and availability impact as high, without authentication or user interaction. Systems not using ksmbd are less likely to reach the vulnerable path.
Executive priority
Prioritize urgent review of internet-facing or broadly reachable Linux SMB servers. Patch confirmed ksmbd deployments promptly. Systems without ksmbd exposure can be handled through normal vulnerability management after documenting why the vulnerable path is unreachable.
Technical view
CVE-2024-50286 is a CWE-416 slab use-after-free caused by concurrent ksmbd_smb2_session_create and ksmbd_expire_session operations. The correction adds the missing sessions_table_lock when sessions are added to or removed from the global session table. The supplied CVSS 3.1 score is 9.8.
Likely exposure
Exposure is most concerning where an affected Linux kernel runs ksmbd and accepts untrusted SMB connections. The supplied affected-version data names several kernel versions but does not provide sufficiently clear range boundaries for reliable inventory decisions. Confirm status through the applicable distribution or vendor advisory.
Exploitation context
The supplied record is not in KEV, and no provided source establishes active exploitation or a publicly weaponized exploit. The network-accessible, unauthenticated CVSS vector indicates serious theoretical reachability, but it does not by itself demonstrate practical exploitation.
Researcher notes
The source establishes a session-table locking defect and use-after-free, but does not document triggering reliability, crash evidence, code execution, or exploitation in the wild. Exact affected ranges should not be inferred from the flattened version list; use distribution package advisories and the cited stable commits.
Mitigation direction
Install a vendor-supported kernel update containing the applicable stable fix.
Check Linux distribution guidance for exact fixed package versions.
Reduce untrusted network access to ksmbd until remediation is verified.
Disable ksmbd where SMB server functionality is unnecessary, following vendor guidance.
Validation and detection
Determine whether ksmbd is installed, loaded, enabled, or configured.
Identify the running kernel and distribution package version.
Compare that version with the distribution’s CVE advisory and fixed package.
Confirm the installed kernel contains the applicable cited stable commit.
Verify SMB exposure is limited to intended networks after remediation.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-416: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
3Timeline events
2ADP providers
6Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-416 · source CWE mapping
Use After Free
Use After Free represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.