8.8high
ksmbd: fix use-after-free in smb2_lock
- Severity
- 8.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.53% (higher than 45% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 0626e6641f6b467447c81dd7678a69c66f7746cf before 410ce35a2ed6d0e114132bba29af49b69880c8c7, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 8573571060ca466cbef2c6f03306b2cc7b883506, from 0626e6641f6b467447c81dd7678a69c66f7746cf before a0609097fd10d618aed4864038393dd75131289e, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 636e021646cf9b52ddfea7c809b018e91f2188cb, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 84d2d1641b71dec326e8736a749b7ee76a9599fc, 5.15 Not affected: before 5.15, from 6.1.131 up to 6.1.*, from 6.6.83 up to 6.6.*, from 6.12.19 up to 6.12.*, from 6.13.7 up to 6.13.*, from 6.14 up to * | CVE List |
| linux linux_kernel | from 5.15 before 6.1.131, from 6.2 before 6.6.83, from 6.7 before 6.12.19, from 6.13 before 6.13.7, 6.14 | NVD |
All scores
| Linux | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CISA-ADP | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ksmbd: se corrige el use-after-free en smb2_lock. Si smb_lock->zero_len tiene valor, ->llist de smb_lock no se elimina y Flock es antiguo. Esto provocará el use-after-free en la rutina de gestión de errores.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-21945 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2025-21945 changed 2026-07-30 | Public domain |