CVE-2025-22038: ksmbd: validate zero num_subauth before sub_auth is accessed

Published Apr 16, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: validate zero numsubauth before subauth is accessed

Access psid->subauth[psid->numsubauth - 1] without checking if numsubauth is non-zero leads to an out-of-bounds read. This patch adds a validation step to ensure numsubauth != 0 before subauth is accessed.

Affected Software

6 affected components
Linux Linux kernel
Linux Linux kernel<6.1.134
Linux Linux kernel>=6.2<6.6.87
Linux Linux kernel>=6.7<6.12.23
Linux Linux kernel>=6.13<6.13.11
Linux Linux kernel>=6.14<6.14.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Apply the kernel fix for ksmbd: validate that num_subauth is non-zero before evaluating sub_auth[psid->num_subauth - 1], preventing out-of-bounds reads when num_subauth is 0.

    Linux kernel (ksmbd) num_subauth validation = Ensure num_subauth != 0 before accessing sub_auth

Event History

Apr 16, 2025
CVE Published
via MITRE·02:11 PM
Data Sourced
via MITRE·02:11 PM
DescriptionSeverity
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 11, 2025
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2025-22038?

CVE-2025-22038 has a high severity rating due to its potential for causing out-of-bounds reads in the Linux kernel.

2

How do I fix CVE-2025-22038?

To fix CVE-2025-22038, update your Linux kernel to version 6.1.134 or later, or within the specified ranges to ensure the vulnerability is patched.

3

What does CVE-2025-22038 affect?

CVE-2025-22038 affects the Linux kernel, specifically versions between 6.2 and 6.14, including specific updates in that range.

4

How does CVE-2025-22038 impact system security?

CVE-2025-22038 can lead to potential data leakage or crashes due to out-of-bounds memory access, posing a risk to system integrity.

5

Who is affected by CVE-2025-22038?

Any users or organizations utilizing vulnerable versions of the Linux kernel are affected by CVE-2025-22038.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203