CVE-2025-21945: ksmbd: fix use-after-free in smb2_lock
Vulnerability summary
CVE-2025-21945 is a high (CVSS 8.8) Use After Free vulnerability in linux. EPSS estimates a 0.53% chance of exploitation in the next 30 days, higher than 46% of scored vulnerabilities.
Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 20 · Related 18Timeline
- 01-04-2025PublishedVulnerability first disclosed.
- 05-08-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HDiffers
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
0.53%
Chance of exploitation in the next 30 days
Percentile
46%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.53% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu127 products
- linuxAll versions (No fix recorded) | < 6.8.0-84.84
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 6.8.0-1039.41
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 0626e6641f6b467447c81dd7678a69c66f7746cf, < 410ce35a2ed6d0e114132bba29af49b69880c8c7 | ≥ 0626e6641f6b467447c81dd7678a69c66f7746cf, < 8573571060ca466cbef2c6f03306b2cc7b883506 | ≥ 0626e6641f6b467447c81dd7678a69c66f7746cf, < a0609097fd10d618aed4864038393dd75131289e | ≥ 0626e6641f6b467447c81dd7678a69c66f7746cf, < 636e021646cf9b52ddfea7c809b018e91f2188cb | ≥ 0626e6641f6b467447c81dd7678a69c66f7746cf, < 84d2d1641b71dec326e8736a749b7ee76a9599fc | 5.15
- linux_kernel≥ 5.15, < 6.1.131 | ≥ 6.2, < 6.6.83 | ≥ 6.7, < 6.12.19 | ≥ 6.13, < 6.13.7 | 6.14:rc1 | 6.14:rc2 | 6.14:rc3 | 6.14:rc4 | 6.14:rc5
Debian1 product
- linux< 6.1.133-1 | < 6.12.19-1
3 vendors · 130 products