{"id":"CVE-2025-21944","summary":"ksmbd: fix bug on trap in smb2_lock","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix bug on trap in smb2_lock\n\nIf lock count is greater than 1, flags could be old value.\nIt should be checked with flags of smb_lock, not flags.\nIt will cause bug-on trap from locks_free_lock in error handling\nroutine.","modified":"2026-04-02T12:45:17.539490Z","published":"2025-04-01T15:41:07.977Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21944.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/11e0e74e14f1832a95092f2c98ed3b99f57797ee"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2b70e3ac79eacbdf32571f7af48dd81cdd957ca8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8994f0ce8259f812b4f4a681d8298c6ff682efaa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dbcd7fdd86f77529210fe8978154a81cd479844c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e26e2d2e15daf1ab33e0135caf2304a0cfa2744b"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21944.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21944"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf"},{"fixed":"11e0e74e14f1832a95092f2c98ed3b99f57797ee"},{"fixed":"8994f0ce8259f812b4f4a681d8298c6ff682efaa"},{"fixed":"dbcd7fdd86f77529210fe8978154a81cd479844c"},{"fixed":"2b70e3ac79eacbdf32571f7af48dd81cdd957ca8"},{"fixed":"e26e2d2e15daf1ab33e0135caf2304a0cfa2744b"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21944.json"}}],"schema_version":"1.7.5"}