CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's CIFS implementation, specifically in the parsing of DFS referral strings where improper validation of string offsets can lead to out-of-bounds memory access. This flaw could allow an attacker to exploit malformed referrals, potentially leading to memory corruption and unauthorized access to sensitive data. Organizations using Linux systems that rely on CIFS for file sharing should prioritize patching this vulnerability to mitigate potential security risks.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: cifs: validate DFS referral string offsets parse_dfs_referrals() validates that the response header and referral array fit in the received buffer, but each referral also contains string offsets supplied by the server. Those offsets are used to compute the DfsPath and NetworkAddress string pointers without checking whether they still point inside the response buffer. A malformed referral can therefore make the computed pointer exceed the end of the buffer. The resulting negative max_len is then passed to cifs_strndup_from_utf16(), and the non-Unicode path forwards it to kstrndup() as a size_t, allowing strnlen() to read out of bounds. Validate each string offset before deriving the string pointer.