5.5medium
ksmbd: fix bug on trap in smb2_lock
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.18% (higher than 7% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix bug on trap in smb2_lock If lock count is greater than 1, flags could be old value. It should be checked with flags of smb_lock, not flags. It will cause bug-on trap from locks_free_lock in error handling routine.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 0626e6641f6b467447c81dd7678a69c66f7746cf before 11e0e74e14f1832a95092f2c98ed3b99f57797ee, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 8994f0ce8259f812b4f4a681d8298c6ff682efaa, from 0626e6641f6b467447c81dd7678a69c66f7746cf before dbcd7fdd86f77529210fe8978154a81cd479844c, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 2b70e3ac79eacbdf32571f7af48dd81cdd957ca8, from 0626e6641f6b467447c81dd7678a69c66f7746cf before e26e2d2e15daf1ab33e0135caf2304a0cfa2744b, 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 |
Classification
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix bug on trap in smb2_lock If lock count is greater than 1, flags could be old value. It should be checked with flags of smb_lock, not flags. It will cause bug-on trap from locks_free_lock in error handling routine.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ksmbd: se corrige un error en la trampa de smb2_lock. Si el número de bloqueos es mayor que 1, las banderas podrían tener un valor anterior. Debe comprobarse con las banderas de smb_lock, no con las banderas. Esto provocará un error en la trampa de locks_free_lock en la rutina de gestión de errores.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-21944 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2025-21944 changed 2026-06-17 | Public domain |