Review reviewHigh

CVE-2025-21945

Linux Linux, linux kernel

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.

CVSS
7.8
EPSS
0.49%
39.4% percentile
CISA KEV
Not listed
Published
2025.04.02
PRIORITY ASSESSMENT

Review review

The CVSS severity warrants an early asset and exposure review.

Known exploitationNot established by KEV
Exploit probability0.49%
Technical severityCVSS 7.8

Vulnerability overview

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 product and versions

Product
Linux Linux, linux kernel
Affected versions
>= 0626e6641f6b467447c81dd7678a69c66f7746cf < 410ce35a2ed6d0e114132bba29af49b69880c8c7, >= 0626e6641f6b467447c81dd7678a69c66f7746cf < 8573571060ca466cbef2c6f03306b2cc7b883506, >= 0626e6641f6b467447c81dd7678a69c66f7746cf < a0609097fd10d618aed4864038393dd75131289e, >= 0626e6641f6b467447c81dd7678a69c66f7746cf < 636e021646cf9b52ddfea7c809b018e91f2188cb, >= 0626e6641f6b467447c81dd7678a69c66f7746cf < 84d2d1641b71dec326e8736a749b7ee76a9599fc, >= 5.15, >= 5.15 < 6.1.131, >= 6.2 < 6.6.83, >= 6.7 < 6.12.19, >= 6.13 < 6.13.7, 6.14
Fixed versions
6.1.131, 6.6.83, 6.12.19, 6.13.7

Recommended response sequence

Confirm exposure before applying a vendor-supported change.

Full remediation guide
  1. 1
    Identify

    Confirm that Linux Linux, linux kernel and an affected version are present.

  2. 2
    Prioritize

    Combine exploitation signals with asset exposure and business criticality.

  3. 3
    Remediate

    Follow the vendor advisory or supported update path and preserve rollback options.

  4. 4
    Verify

    Recheck the version, service health, access paths, and relevant logs.

Technical data

CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE
CWE-416