{"id":"CVE-2025-21945","published":"2025-04-01T15:41:08Z","modified":"2026-08-05T11:55:30Z","title":"ksmbd: fix use-after-free in smb2_lock","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix use-after-free in smb2_lock\n\nIf smb_lock->zero_len has value, ->llist of smb_lock is not delete and\nflock is old one. It will cause use-after-free on error handling\nroutine.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00525,"percentile":0.45428,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://git.kernel.org/stable/c/410ce35a2ed6d0e114132bba29af49b69880c8c7","tags":[]},{"url":"https://git.kernel.org/stable/c/8573571060ca466cbef2c6f03306b2cc7b883506","tags":[]},{"url":"https://git.kernel.org/stable/c/a0609097fd10d618aed4864038393dd75131289e","tags":[]},{"url":"https://git.kernel.org/stable/c/636e021646cf9b52ddfea7c809b018e91f2188cb","tags":[]},{"url":"https://git.kernel.org/stable/c/84d2d1641b71dec326e8736a749b7ee76a9599fc","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html","tags":[]}],"priority":{"score":15.2,"factors":[{"name":"EPSS percentile","points":9.09},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 410ce35a2ed6d0e114132bba29af49b69880c8c7",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 8573571060ca466cbef2c6f03306b2cc7b883506",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < a0609097fd10d618aed4864038393dd75131289e",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 636e021646cf9b52ddfea7c809b018e91f2188cb",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 84d2d1641b71dec326e8736a749b7ee76a9599fc"]},{"vendor":"Linux","product":"Linux","versions":["5.15"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-16T13:14:55.516245Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-9376","exploited":false,"provenance":"source"}}