ksmbd: fix out-of-bounds in parse_sec_desc()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix out-of-bounds in parse_sec_desc()
If osidoffset, gsidoffset and dacloffset could be greater than smb_ntsd struct size. If it is smaller, It could cause slab-out-of-bounds. And when validating sid, It need to check it included subauth array size.
From the CVE record · Linux
The Linux kernel's ksmbd parse_sec_desc() has an out-of-bounds issue when security descriptor offsets exceed the smb_ntsd structure size or SID validation omits the subauthority array size. An attacker could trigger a slab out-of-bounds access with a security descriptor containing those values. The input does not specify whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with ksmbd should check their versions against the vendor advisory; affected versions are not specified.