smb: client: harden DFS cache against invalid target hints
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 54be1f6c1c37498bba557049df646cc239fa37e3 · < bf86c08123c6ab8c61cc0be1dad7540db93738ff| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
smb: client: harden DFS cache against invalid target hints
Currently, get_tgt_name() returns ERR_PTR(-ENOENT) when ce->tgthint is NULL, and dfs_cache_noreq_update_tgthint() assumes ce->tgthint is always valid.
In preparation for clearing ce->tgthint in free_tgts(), harden callers of get_tgt_name() against ERR_PTR results and harden dfs_cache_noreq_update_tgthint() against NULL pointer dereferences.
From the CVE record · Linux
The Linux kernel SMB client DFS cache does not safely handle an invalid or missing target hint, potentially causing a NULL pointer dereference. The input does not establish whether an attacker can trigger this condition, or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the SMB client should check their versions; affected versions are not specified.