{"id":"CVE-2025-21945","summary":"ksmbd: fix use-after-free in smb2_lock","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix use-after-free in smb2_lock\n\nIf smb_lock-\u003ezero_len has value, -\u003ellist of smb_lock is not delete and\nflock is old one. It will cause use-after-free on error handling\nroutine.","modified":"2026-04-02T12:45:17.470067Z","published":"2025-04-01T15:41:08.471Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21945.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/410ce35a2ed6d0e114132bba29af49b69880c8c7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/636e021646cf9b52ddfea7c809b018e91f2188cb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/84d2d1641b71dec326e8736a749b7ee76a9599fc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8573571060ca466cbef2c6f03306b2cc7b883506"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a0609097fd10d618aed4864038393dd75131289e"},{"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-21945.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21945"},{"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":"410ce35a2ed6d0e114132bba29af49b69880c8c7"},{"fixed":"8573571060ca466cbef2c6f03306b2cc7b883506"},{"fixed":"a0609097fd10d618aed4864038393dd75131289e"},{"fixed":"636e021646cf9b52ddfea7c809b018e91f2188cb"},{"fixed":"84d2d1641b71dec326e8736a749b7ee76a9599fc"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21945.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}