CVE-2025-21967
kernel: ksmbd: fix use-after-free in ksmbd_free_work_struct
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · April 1, 2025
Updated · September 13, 2026
Description
A flaw was found in the ksmbd component of the Linux kernel. This use-after-free vulnerability occurs when the interim_entry of ksmbd_work is prematurely deleted after an opportunistic lock (oplock) is freed. A local attacker could exploit this memory corruption flaw to cause a denial of service or potentially achieve arbitrary code execution, leading to a complete compromise of the system.
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.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE-416 · Use After Free