CVE-2023-4515
ksmbd: validate command request size
Check your servers for CVE-2023-4515
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-4515 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: validate command request size
In commit 2b9b8f3b68ed ("ksmbd: validate command payload size"), except for SMB2_OPLOCK_BREAK_HE command, the request size of other commands is not checked, it's not expected. Fix it by add check for request size of other commands.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.35%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 30.6% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 35f450f54dca1519bb24faacd0428db09f89a11f, before 595679098bdcdbfbba91ebe07a2f7f208df93870 affected from 9650cf70ec9d94ff34daa088b643229231723c26, before c6bef3bc30fd4a175aef846b7d928a6c40d091cd affected from 2b9b8f3b68edb3d67d79962f02e26dbb5ae3808d, before ff7236b66d69582f90cf5616e63cfc3dc18142bb affected from 2b9b8f3b68edb3d67d79962f02e26dbb5ae3808d, before 5aa4fda5aa9c2a5a7bac67b4a12b089ab81fee3c affected 768caf4019f0391c0b6452afe34cea1704133f7b affected from 5.15.121, before 5.15.127 affected from 6.1.36, before 6.1.46 affected from 6.3.10, before 6.4
Other versions: unaffected
|
| Linux |
affected 6.4 unaffected before 6.4 unaffected from 5.15.127 up to and including 5.15.* unaffected from 6.1.46 up to and including 6.1.* unaffected from 6.4.11 up to and including 6.4.* unaffected 6.5 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-4515 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-4515
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-4515
trivy image --scanners vuln IMAGE | grep CVE-2023-4515
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/595679098bdcdbfbba91ebe07a2f7f208df93870 git.kernel.org
- https://git.kernel.org/stable/c/c6bef3bc30fd4a175aef846b7d928a6c40d091cd git.kernel.org
- https://git.kernel.org/stable/c/ff7236b66d69582f90cf5616e63cfc3dc18142bb git.kernel.org
- https://git.kernel.org/stable/c/5aa4fda5aa9c2a5a7bac67b4a12b089ab81fee3c git.kernel.org
Source: the record CVE-2023-4515 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse