smb/client: Fix error code in smb2_aead_req_alloc()
18Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 8.8
exploitation probability
—
observed exploitation
nono source reports it
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Affected products
Linux · LinuxReferences
https://git.kernel.org/stable/c/61f28012e5650c619223decdb7970e0d3162e949https://git.kernel.org/stable/c/a187883cc1dc784a4d32537f5d316f1b7b9ad76fhttps://git.kernel.org/stable/c/a1cc432cb0b0a1f74f98a0db3b94ca880c7947achttps://git.kernel.org/stable/c/aa37f5fef78dd11cbf983269da2031e12625c56dhttps://git.kernel.org/stable/c/cad756733dc3985188983f3e2eb77e2927209099