smb: client: clear ce->tgthint in free_tgts()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 54be1f6c1c37498bba557049df646cc239fa37e3 · < b1b741cf8e7ce1b91d937e23decd3d3358748700| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
smb: client: clear ce->tgthint in free_tgts()
When free_tgts() frees all structures in ce->tlist, ce->tgthint is left pointing to one of the freed cache_dfs_tgt structures.
If ce->tgthint is not reset before it is used later, it results in a use-after-free.
Set ce->tgthint to NULL in free_tgts() after the elements are freed to reflect that no elements remain.
From the CVE record · Linux
The Linux kernel SMB client leaves ce->tgthint pointing to freed memory after free_tgts() clears its target list, causing a use-after-free if the pointer is used later. The input does not specify how an attacker could trigger this, what they could achieve, or whether access or user interaction is required.
Engineers running Linux kernels with the SMB client should check their versions against the vendor advisory; affected versions are not specified.