smb/client: Fix error code in smb2_aead_req_alloc()
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:
smb/client: Fix error code in smb2_aead_req_alloc()
The "*num_sgs" variable is a u32 so "ERR_PTR(*num_sgs)" doesn't work. We would have to do something similar to the previous line where it's cast to int and then long. However, it's simpler to store the return in an int ret variable.
This bug would eventually result in a crash when dereference the invalid error pointer.
From the CVE record · Linux
The Linux kernel SMB client has an error-handling bug in smb2_aead_req_alloc(). Dereferencing the resulting invalid error pointer can crash the kernel. The input does not establish how an attacker could trigger it or whether authentication or user interaction is required.
Engineers running Linux kernels with the SMB client should check their versions against the vendor advisory; affected versions were not provided.