smb: client: validate DFS referral PathConsumed
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4ecce920e13ace16a5ba45efe8909946c28fb2ad · < f6f5ee2aa33b350c671721b965251c42cebb962e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
smb: client: validate DFS referral PathConsumed
parse_dfs_referrals() validates that the response contains the fixed referral entry array and, on for-next, the per-referral string offsets. However, the response also contains a PathConsumed value that is later used for DFS path parsing.
If a malformed response provides a PathConsumed value larger than the search name, later DFS parsing can advance beyond the end of the path.
Validate PathConsumed against the search name length before storing it in the parsed referral.
From the CVE record · Linux
The Linux kernel SMB client fails to validate the PathConsumed value in a DFS referral response against the search name length. A malformed response with an oversized value can cause later DFS path parsing to advance beyond the end of the path. The input does not specify authentication or user-interaction requirements.
Engineers running Linux systems that use the kernel SMB client should check their kernel against the vendor advisory; affected versions are not specified.