CVE-2025-22038
JSON

8.3high

ksmbd: validate zero num_subauth before sub_auth is accessed

Severity
8.3high CVSS:3.1 by Linux
Exploit likelihood
0.60% (higher than 50% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

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

Product or packageVersionsReported by
Linux Linuxfrom 0626e6641f6b467447c81dd7678a69c66f7746cf before 3ac65de111c686c95316ade660f8ba7aea3cd3cc, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 0e36a3e080d6d8bd7a34e089345d043da4ac8283, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 56de7778a48560278c334077ace7b9ac4bfb2fd1, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 68c6c3142bfcdb049839d40a9a59ebe8ea865002, from 0626e6641f6b467447c81dd7678a69c66f7746cf before c8bfe1954a0b89e7b29b3a3e7f4c5e0ebd295e20, from 0626e6641f6b467447c81dd7678a69c66f7746cf before bf21e29d78cd2c2371023953d9c82dfef82ebb36, 5.15
Not affected: before 5.15, from 6.1.134 up to 6.1.*, from 6.6.87 up to 6.6.*, from 6.12.23 up to 6.12.*, from 6.13.11 up to 6.13.*, from 6.14.2 up to 6.14.*
CVE List
linux linux_kernelbefore 6.1.134, from 6.2 before 6.6.87, from 6.7 before 6.12.23, from 6.13 before 6.13.11, from 6.14 before 6.14.2NVD

All scores

Linux8.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
CISA-ADP7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
NVD7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Classification

CWE-125

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ksmbd: validar num_subauth a cero antes de acceder a sub_auth. Acceder a psid->sub_auth[psid->num_subauth - 1] sin comprobar si num_subauth es distinto de cero provoca una lectura fuera de los límites. Este parche añade un paso de validación para garantizar que num_subauth sea != 0 antes de acceder a sub_auth.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-22038 changed 2026-08-05CVE Terms of Use
NVDCVE-2025-22038 changed 2026-07-30Public domain