ksmbd: validate zero num_subauth before sub_auth is accessed
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0626e6641f6b467447c81dd7678a69c66f7746cf · < bf21e29d78cd2c2371023953d9c82dfef82ebb36| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's ksmbd component can read outside the bounds of sub_auth when num_subauth is zero. The input does not specify how an attacker can trigger this condition or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel should check whether their version includes the ksmbd validation fix; affected versions are not specified.