Vulnerabilities · 2025 · Linux
CVE-2025-22038
Linux Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate zero num_subauth before sub_auth is accessed Access psid->sub_auth[psid->num_subauth - 1] without checking if num_subauth is non-zero leads to an out-of-bounds read. This patch adds a validation step to ensure num_subauth != 0 before sub_auth is accessed.
Affected products
Linux Kernel. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Linux Kernel runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- git.kernel.org/stable/c/0e36a3e080d6d8bd7a34e089345d043da4ac8283 · Patch
- git.kernel.org/stable/c/3ac65de111c686c95316ade660f8ba7aea3cd3cc · Patch
- git.kernel.org/stable/c/56de7778a48560278c334077ace7b9ac4bfb2fd1 · Patch
- git.kernel.org/stable/c/68c6c3142bfcdb049839d40a9a59ebe8ea865002 · Patch
- git.kernel.org/stable/c/bf21e29d78cd2c2371023953d9c82dfef82ebb36 · Patch
- git.kernel.org/stable/c/c8bfe1954a0b89e7b29b3a3e7f4c5e0ebd295e20 · Patch
- lists.debian.org/debian-lts-announce/2025/05/msg00045.html
- nvd.nist.gov/vuln/detail/CVE-2025-22038
- cve.org/CVERecord?id=CVE-2025-22038
More vulnerabilities in Linux products
CVE-2026-46300CVE-2025-40364CVE-2025-40325CVE-2025-40300CVE-2025-40114CVE-2025-40014CVE-2025-39989CVE-2025-39967All 12,086
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.