Cloudanix VulnDB

CVE-2025-37956

High · 8.8

CVSS

8.8

EPSS

0.4%

Published

May 20, 2025

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A flaw in the Linux kernel's built-in file-sharing code lets a remote user crash the whole system by sending one specially crafted request.

Exploitation
Remote Authenticated
Attacker needs
Low Privilege
Complexity
Trivial
Impact
Denial Of Service
Component
OS kernel
Class
Improper Input Validation
Remediation
Patch
Effort
Low
Patch risk
None

What it actually does

ksmbd SMB server in the Linux kernel accepts an empty newname string in rename requests, triggering a NULL dereference or invalid pointer use inside d_alloc that results in a kernel oops.

Why it matters to the business

Systems running the ksmbd kernel module can be forced into a crash, producing denial-of-service conditions that interrupt file-sharing services and require manual recovery or reboot.

How an attack unfolds

An attacker establishes an SMB session to a target running ksmbd, issues a rename operation supplying an empty newname field, and the server code path calls d_alloc on the empty string, causing the kernel fault.

How to fix it

Upgrade the Linux kernel to a build containing commit 6ee551672c8cf36108b0cfba92ec0c7c28ac3439 or later; apply the corresponding fixed packages for any distribution kernels that include ksmbd.

How to confirm the fix worked

Confirm the running kernel contains the referenced commit or patched release; attempt a rename operation with an empty target name from an SMB client and verify the server returns an error instead of oopsing.

Typical attack path

  1. Establish authenticated or guest SMB session to ksmbd
  2. Send SMB2 rename request containing an empty newname string
  3. Trigger d_alloc on the malformed name, producing kernel oops

How to detect it

Review kernel logs for oops/panic entries containing ksmbd and d_alloc; inspect SMB audit logs for rename requests that carry zero-length newname fields.

What your security team should do

  • Prioritize kernel updates on all systems exposing ksmbd
  • Disable ksmbd in kernel configuration when SMB server functionality is not required
  • Monitor for kernel oops entries referencing ksmbd and d_alloc

The record

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.

Affected packages

Ecosystem Package Introduced Fixed
Debian:12 linux 0 No fix
Debian:13 linux 0 No fix
Debian:13 linux 0 6.12.29-1
Linux Kernel 5.15.0 6.6.91
Mageia:9 dwarves 0 1.30-1.mga9
Mageia:9 kernel 0 6.6.93-1.mga9
Mageia:9 kernel-firmware 0 20250509-1.mga9
Mageia:9 kernel-firmware-nonfree 0 20250509-1.mga9.nonfree
Mageia:9 kernel-linus 0 6.6.93-1.mga9
Mageia:9 kmod-virtualbox 0 7.1.8-3.mga9
Mageia:9 kmod-xtables-addons 0 3.24-80.mga9
Mageia:9 libtraceevent 0 1.8.4-1.mga9
Mageia:9 libtracefs 0 1.8.2-1.mga9
Mageia:9 radeon-firmware 0 20250509-1.mga9.nonfree
Mageia:9 wireless-regdb 0 20250220-1.mga9

Related vulnerabilities