ksmbd: fix overflow in dacloffset bounds check
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0626e6641f6b467447c81dd7678a69c66f7746cf · < 443b373a4df5a2cb9f7b8c4658b2afedeb16397f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix overflow in dacloffset bounds check
The dacloffset field was originally typed as int and used in an unchecked addition, which could overflow and bypass the existing bounds check in both smb_check_perm_dacl() and smb_inherit_dacl().
This could result in out-of-bounds memory access and a kernel crash when dereferencing the DACL pointer.
This patch converts dacloffset to unsigned int and uses check_add_overflow() to validate access to the DACL.
From the CVE record · Linux
The Linux kernel's ksmbd component uses an unchecked addition when checking a DACL offset. If the addition overflows, it can bypass bounds checks and cause out-of-bounds memory access and a kernel crash. The input does not specify whether exploitation requires network access, authentication, or user interaction.
Engineers running Linux kernels with ksmbd should check their deployments; affected versions are not specified.