CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's handling of DFS referrals in SMB client interactions, specifically in the `parse_dfs_referrals()` function. An attacker could exploit this flaw by sending a malformed response that includes an oversized PathConsumed value, potentially leading to out-of-bounds memory access during DFS path parsing. Organizations using Linux systems that rely on SMB for file sharing should prioritize patching this vulnerability to mitigate risks of system instability or exploitation.
Original NVD Description
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.