CVE Database›CVE-2025-21945

CVE-2025-21945

kernel: ksmbd: fix use-after-free in smb2_lock

Loading…

Severity

Moderate

Red Hat Product Security

7.8

CVSS 3.1

Review impact separately from score.

Published · April 1, 2025

Updated · October 20, 2026

Description

A flaw was found in the Linux kernel ksmbd SMB server. When smb_lock->zero_len is set, smb2_lock() leaves the lock linked and then frees it on an error path. A remote SMB client can cause a use-after-free.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CWE-416 · Use After Free