{"id":"CVE-2025-22038","published":"2025-04-16T14:11:56Z","modified":"2026-08-05T11:56:11Z","title":"ksmbd: validate zero num_subauth before sub_auth is accessed","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: validate zero num_subauth before sub_auth is accessed\n\nAccess psid->sub_auth[psid->num_subauth - 1] without checking\nif num_subauth is non-zero leads to an out-of-bounds read.\nThis patch adds a validation step to ensure num_subauth != 0\nbefore sub_auth is accessed.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00639,"percentile":0.45174,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://git.kernel.org/stable/c/3ac65de111c686c95316ade660f8ba7aea3cd3cc","tags":[]},{"url":"https://git.kernel.org/stable/c/0e36a3e080d6d8bd7a34e089345d043da4ac8283","tags":[]},{"url":"https://git.kernel.org/stable/c/56de7778a48560278c334077ace7b9ac4bfb2fd1","tags":[]},{"url":"https://git.kernel.org/stable/c/68c6c3142bfcdb049839d40a9a59ebe8ea865002","tags":[]},{"url":"https://git.kernel.org/stable/c/c8bfe1954a0b89e7b29b3a3e7f4c5e0ebd295e20","tags":[]},{"url":"https://git.kernel.org/stable/c/bf21e29d78cd2c2371023953d9c82dfef82ebb36","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html","tags":[]}],"priority":{"score":14.8,"factors":[{"name":"EPSS percentile","points":9.03},{"name":"CVSS severity","points":5.81}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 3ac65de111c686c95316ade660f8ba7aea3cd3cc",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 0e36a3e080d6d8bd7a34e089345d043da4ac8283",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 56de7778a48560278c334077ace7b9ac4bfb2fd1",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 68c6c3142bfcdb049839d40a9a59ebe8ea865002",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < c8bfe1954a0b89e7b29b3a3e7f4c5e0ebd295e20",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < bf21e29d78cd2c2371023953d9c82dfef82ebb36"]},{"vendor":"Linux","product":"Linux","versions":["5.15"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T18:13:11.878668Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-11257","exploited":false,"provenance":"source"}}