summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2021-02-24 11:45:59 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-10 09:23:28 +0100
commitd660f4f42ccea50262c6ee90c8e7ad19a69fb225 (patch)
tree1687f696aa1f0cf3229da8ba220ec9d746b6a1b8 /drivers/regulator
parent7c36194558cf49a86a53b5f60db8046c5e3013ae (diff)
staging: rtl8712: unterminated string leads to read overflow
The memdup_user() function does not necessarily return a NUL terminated string so this can lead to a read overflow. Switch from memdup_user() to strndup_user() to fix this bug. Fixes: c6dc001f2add ("staging: r8712u: Merging Realtek's latest (v2.6.6). Various fixes.") Cc: stable <stable@vger.kernel.org> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/YDYSR+1rj26NRhvb@mwanda Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/regulator')
0 files changed, 0 insertions, 0 deletions