CVE-2025-22038

ksmbd: validate zero num_subauth before sub_auth is accessed

High · published April 16, 2025

CVSS v3.1
7.1
EPSS
1%
Percentile
47.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.1 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00589 · 47.4th percentile
Published
2025-04-16T14:11Z
EPSS history
Timeline
  • 16 APR 14:11Z
    ksmbd: validate zero num_subauth before sub_auth is accessed
    cvelistv5