CVE-2025-68806
ksmbd: fix buffer validation by including null terminator size in EA length
Check your servers for CVE-2025-68806
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-2025-68806 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: fix buffer validation by including null terminator size in EA length
The smb2_set_ea function, which handles Extended Attributes (EA), was performing buffer validation checks that incorrectly omitted the size of the null terminating character (+1 byte) for EA Name. This patch fixes the issue by explicitly adding '+ 1' to EaNameLength where the null terminator is expected to be present in the buffer, ensuring the validation accurately reflects the total required buffer size.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- 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 none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.45%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 40.5% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from d070c4dd2a5bed4e9832eec5b6c029c7d14892ea, before cae52c592a07e1d3fa3338a5f064a374a5f26750 affected from 0ba5439d9afa2722e7728df56f272c89987540a4, before a28a375a5439eb474e9f284509a407efb479c925 affected from 0ba5439d9afa2722e7728df56f272c89987540a4, before d26af6d14da43ab92d07bc60437c62901dc522e6 affected from 0ba5439d9afa2722e7728df56f272c89987540a4, before 6dc8cf6e7998ef7aeb9383a4c2904ea5d22fa2e4 affected from 0ba5439d9afa2722e7728df56f272c89987540a4, before 95d7a890e4b03e198836d49d699408fd1867cb55 affected bb5bf157b5be1643cccc7cbbe57fcdef9ae52c2c affected 1a13ecb96230e8b7b91967e292836f7b01ec8111 affected 404e7c01e16288b5e0171d1d8fd3328e806d0794 affected from 6.1.52, before 6.1.160 affected from 5.15.131, before 5.16 affected from 6.4.15, before 6.5 affected from 6.5.2, before 6.6
Other versions: unaffected
|
| Linux |
affected 6.6 unaffected before 6.6 unaffected from 6.1.160 up to and including 6.1.* unaffected from 6.6.120 up to and including 6.6.* unaffected from 6.12.64 up to and including 6.12.* unaffected from 6.18.3 up to and including 6.18.* unaffected 6.19 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-2025-68806 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-68806
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-2025-68806
trivy image --scanners vuln IMAGE | grep CVE-2025-68806
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/cae52c592a07e1d3fa3338a5f064a374a5f26750 git.kernel.org
- https://git.kernel.org/stable/c/a28a375a5439eb474e9f284509a407efb479c925 git.kernel.org
- https://git.kernel.org/stable/c/d26af6d14da43ab92d07bc60437c62901dc522e6 git.kernel.org
- https://git.kernel.org/stable/c/6dc8cf6e7998ef7aeb9383a4c2904ea5d22fa2e4 git.kernel.org
- https://git.kernel.org/stable/c/95d7a890e4b03e198836d49d699408fd1867cb55 git.kernel.org
Source: the record CVE-2025-68806 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