# CVE-2025-22038: ksmbd: validate zero num\_subauth before sub\_auth is accessed

- Priority: **Routine**
- Reason: Not severe (CVSS 8.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-04-16 · Modified: 2026-08-05
- Aliases: UBUNTU-CVE-2025-22038, DEBIAN-CVE-2025-22038
- Record: https://cvemate.com/vulnerability/CVE-2025-22038 · JSON: https://cvemate.com/vulnerability/CVE-2025-22038/json

## Description

```text
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.
```

## Signals

- CVSS: 8.3 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
- EPSS: 0.6%, percentile 50.197%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 130)

- debian linux (Debian): \< 6.1.135-1 \| \< 6.12.25-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-86.87
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1041.43
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1041.43~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1041.43+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1041.47
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 28)

- <https://git.kernel.org/stable/c/3ac65de111c686c95316ade660f8ba7aea3cd3cc>
- <https://git.kernel.org/stable/c/0e36a3e080d6d8bd7a34e089345d043da4ac8283>
- <https://git.kernel.org/stable/c/56de7778a48560278c334077ace7b9ac4bfb2fd1>
- <https://git.kernel.org/stable/c/68c6c3142bfcdb049839d40a9a59ebe8ea865002>
- <https://git.kernel.org/stable/c/c8bfe1954a0b89e7b29b3a3e7f4c5e0ebd295e20>
- <https://git.kernel.org/stable/c/bf21e29d78cd2c2371023953d9c82dfef82ebb36>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- <https://ubuntu.com/security/CVE-2025-22038>
- <https://www.cve.org/CVERecord?id=CVE-2025-22038>
- <https://git.kernel.org/linus/bf21e29d78cd2c2371023953d9c82dfef82ebb36>
- <https://ubuntu.com/security/notices/USN-7594-1>
- <https://ubuntu.com/security/notices/USN-7594-2>
- <https://ubuntu.com/security/notices/USN-7605-1>
- <https://ubuntu.com/security/notices/USN-7606-1>
- <https://ubuntu.com/security/notices/USN-7605-2>
- <https://ubuntu.com/security/notices/USN-7594-3>
- <https://ubuntu.com/security/notices/USN-7628-1>
- <https://ubuntu.com/security/notices/USN-7835-1>
- <https://ubuntu.com/security/notices/USN-7835-2>
- <https://ubuntu.com/security/notices/USN-7835-3>

---

Data as of 2026-12-05T05:18:18.827Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
