CVE-2023-3867
ksmbd: fix out of bounds read in smb2_sess_setup
CVE-2023-3867 is an out-of-bounds read in Linux (CVSS 9.1, Critical).
No known exploitation. EPSS puts it in the 46th percentile. Fixed versions are out.
No public exploit knownFix3 products4 fixed builds listed below
e.g. OID 1.3.6.1.4.1.25623.1.1.12.2023.6464.1
What to do
Find your product and version, then upgrade to the build on the right.
- LinuxAffected: ≥ e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 676392184785ace61e939831e7ca44a03d438c3bUpgrade to: 676392184785ace61e939831e7ca44a03d438c3bAffected: ≥ e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < ef572ffa8eb44111eed2925fbb2adca78bdcbf61Upgrade to: ef572ffa8eb44111eed2925fbb2adca78bdcbf61Affected: ≥ e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 2ba03cecb12ac7ac9e0170e251543c56832d9959Upgrade to: 2ba03cecb12ac7ac9e0170e251543c56832d9959Affected: ≥ e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 98422bdd4cb3ca4d08844046f6507d7ec2c2b8d8Upgrade to: 98422bdd4cb3ca4d08844046f6507d7ec2c2b8d8Stated by: CVE record
- RED SOFT RED OSAffected: 7.3Upgrade to: not statedStated by: BDU
- Open-source community LinuxAffected: from 5.16 before 6.1.39 inclusiveUpgrade to: not statedStated by: BDU
Versions as the sources state them. Full version matrix after sign-in
Steps
Written by AI from the record- Check whether your Linux servers have the ksmbd kernel SMB server module enabled (most businesses use Samba instead, which is not affected).
- If ksmbd is enabled and your server is reachable from the internet or an untrusted network, restrict access to it immediately (firewall the SMB port, 445/tcp).
- Update the Linux kernel to a version containing the fix, such as 5.15.145 or later (or the equivalent fixed point release for your distribution).
- Confirm with your IT provider or distro vendor (e.g. RED OS) that their kernel package includes this fix.
What it is
From the CVE record
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix out of bounds read in smb2_sess_setup ksmbd does not consider the case of that smb2 session setup is in compound request. If this is the second payload of the compound, OOB read issue occurs while processing the first payload in the smb2_sess_setup().
In plain language
Written by AI from the recordThis is a flaw in the Linux kernel's built-in file-sharing server (ksmbd), not something most small businesses run by default, so unless you specifically use Linux as an SMB/file-sharing server, you're very likely not affected.
Out-of-bounds read (CWE-125) in ksmbd's smb2_sess_setup when a session-setup request arrives as the second payload of a compound SMB2 request, allowing an unauthenticated remote attacker to crash the kernel or potentially leak kernel memory.
If you're affected
- File server crash / downtime
- Potential data exposure from memory
- Operational disruption
Exploitation
Where each signal puts this CVE on the scale from published to confirmed exploited.
- CISA KEV
Not in the catalog. CISA has not confirmed exploitation.
- Public exploits
No public exploit or proof of concept found in the sources we track.
- EPSS
0.6% chance of exploitation activity in the next 30 days, which ranks it in the 46th percentile of scored CVEs.
Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.
Lifecycle
16 events over 466 days, from the signal feeds we watch.
- EPSS band changemoderate → lowepss band change
- EPSS band changelow → moderate
- EPSS band changelow → moderate
- EPSS band changelow → moderateepss band change
- Patch availablerecord updated
- Patch availablerecord updated
Affected products
Technical detail
CVSS 3.1 vector
Open in the CVSS calculatorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Scored 9.1 by NVD.
How it is reached
- Attack Vector NetworkExploitable remotely over the network without any special conditions
- Attack Complexity LowNo special conditions — the attack can be reliably reproduced
- Privileges Required NoneNo authentication required — anyone can exploit this
- User Interaction NoneNo user interaction needed — fully automated exploitation
Scope
- Scope UnchangedImpact is limited to the vulnerable component itself
Impact if exploited
- Confidentiality HighTotal information disclosure — all data in the component is compromised
- Integrity NoneNo integrity impact
- Availability HighTotal denial of service — the component is completely unavailable
Weaknesses
ATT&CK techniques
Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.
Sources
Questions about CVE-2023-3867
- Is CVE-2023-3867 being exploited?
- No exploitation is confirmed and no public exploit is known. EPSS puts the chance of exploitation in the next 30 days at 0.6%.
- Which versions are affected by CVE-2023-3867?
- Linux: ≥ e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 676392184785ace61e939831e7ca44a03d438c3b; ≥ e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < ef572ffa8eb44111eed2925fbb2adca78bdcbf61; ≥ e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 2ba03cecb12ac7ac9e0170e251543c56832d9959. RED OS: 7.3. Linux: from 5.16 before 6.1.39 inclusive.
- How do I fix or mitigate CVE-2023-3867?
- Upgrade to a fixed build for your product branch: 676392184785ace61e939831e7ca44a03d438c3b, ef572ffa8eb44111eed2925fbb2adca78bdcbf61, 2ba03cecb12ac7ac9e0170e251543c56832d9959, 98422bdd4cb3ca4d08844046f6507d7ec2c2b8d8. The advisory is on ubuntu.com.
Last updated
Related articles
All articlesWatch the software you run.
My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.
We'll flag the next CVE, public exploit or patch for Linux, not every advisory.
A free account adds
- The full version matrix and every affected product
- Exploit links, proofs of concept and Metasploit modules
- Email alerts for the products you watch
- The same data over REST API, MCP and CLI