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

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 34% of CVEs (2026-12-01)
- Published: 2025-05-20T16:01:49.865Z
- Modified: 2026-10-30T13:17:59.040Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 0626e6641f6b467447c81dd7678a69c66f7746cf before 35e2964e93d95185d2db0c0ffd9959d0197b3956; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 6ee551672c8cf36108b0cfba92ec0c7c28ac3439; from 0626e6641f6b467447c81dd7678a69c66f7746cf before c57301e332cc413fe0a7294a90725f4e21e9549d; from 0626e6641f6b467447c81dd7678a69c66f7746cf before d7f2c00acb1ef64304fd40ac507e9213ff1d9b5c; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 53e3e5babc0963a92d856a5ec0ce92c59f54bc12; 5.15 (not affected: before 5.15; from 6.1.191 up to 6.1.*; from 6.6.91 up to 6.6.*; from 6.12.29 up to 6.12.*; from 6.14.7 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 5.15 before 6.6.91; from 6.7 before 6.12.29; from 6.13 before 6.14.7; 6.15

## Every score

- Linux: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/35e2964e93d95185d2db0c0ffd9959d0197b3956>
- <https://git.kernel.org/stable/c/6ee551672c8cf36108b0cfba92ec0c7c28ac3439> (patch)
- <https://git.kernel.org/stable/c/c57301e332cc413fe0a7294a90725f4e21e9549d> (patch)
- <https://git.kernel.org/stable/c/d7f2c00acb1ef64304fd40ac507e9213ff1d9b5c> (patch)
- <https://git.kernel.org/stable/c/53e3e5babc0963a92d856a5ec0ce92c59f54bc12> (patch)

## Sources

- CVE List: [CVE-2025-37956](https://www.cve.org/CVERecord?id=CVE-2025-37956), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2025-37956](https://nvd.nist.gov/vuln/detail/CVE-2025-37956), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2025-37956 · Whole record: https://cve.day/CVE-2025-37956.json · Rebuilt by cve.day 2026-11-25T22:58:58.305Z
