Bug 2360240 (CVE-2025-22038) - CVE-2025-22038 kernel: ksmbd: validate zero num_subauth before sub_auth is accessed
Summary: CVE-2025-22038 kernel: ksmbd: validate zero num_subauth before sub_auth is ac...
Keywords:
Status: NEW
Alias: CVE-2025-22038
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-16 15:04 UTC by OSIDB Bzimport
Modified: 2025-05-16 14:11 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-04-16 15:04:14 UTC
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.

Comment 1 Avinash Hanwate 2025-04-17 11:23:03 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025041659-CVE-2025-22038-1b5a@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.