CVE-2025-21945

ksmbd: fix use-after-free in smb2_lock

HIGH
7.8
CVSS Score
Published: April 1, 2025 at 03:41 PM UTC
Updated: August 5, 2026 at 12:44 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.5%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix use-after-free in smb2_lock If smb_lock->zero_len has value, ->llist of smb_lock is not delete and flock is old one. It will cause use-after-free on error handling routine.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.15 ≤ v < 6.1.1315.15 ≤ v < 6.12.195.15 ≤ v < 6.13.75.15 ≤ v < 6.145.15 ≤ v < 6.6.836.13 ≤ v < 6.13.76.2 ≤ v < 6.6.836.7 ≤ v < 6.12.196.14 rc16.14 rc26.14 rc36.14 rc46.14 rc5626e6641f6b467447c81dd7678a69c66f7746cf
Vendor states this is fixed in 410ce35a2ed6d0e114132bba29af49b69880c8c7 (fixed)
Vendor states this is fixed in 636e021646cf9b52ddfea7c809b018e91f2188cb (fixed)
Vendor states this is fixed in 84d2d1641b71dec326e8736a749b7ee76a9599fc (fixed)
Vendor states this is fixed in 8573571060ca466cbef2c6f03306b2cc7b883506 (fixed)
Vendor states this is fixed in a0609097fd10d618aed4864038393dd75131289e (fixed)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 6.1.131 (unaffected)
Vendor states this is fixed in 6.12.19 (unaffected)
Vendor states this is fixed in 6.13.7 (unaffected)
Vendor states this is fixed in 6.14 (unaffected)
Vendor states this is fixed in 6.6.83 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/410ce35a2ed6d0e114132bba29af49b69880c8c7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/636e021646cf9b52ddfea7c809b018e91f2188cb
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/84d2d1641b71dec326e8736a749b7ee76a9599fc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8573571060ca466cbef2c6f03306b2cc7b883506
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a0609097fd10d618aed4864038393dd75131289e
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card