diff options
author | Zijun Hu <quic_zijuhu@quicinc.com> | 2024-05-30 16:14:37 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-08-03 09:54:24 +0300 |
commit | 57fe01d3d04276875c7e3a6dc763517fc05b8762 (patch) | |
tree | 15cfd3747554f807d155a8009556c22b4d9159ba /lib/globtest.c | |
parent | f7150b2d5ec34abb95745651be75e5d596720bb7 (diff) | |
download | linux-57fe01d3d04276875c7e3a6dc763517fc05b8762.tar.xz |
kobject_uevent: Fix OOB access within zap_modalias_env()
commit dd6e9894b451e7c85cceb8e9dc5432679a70e7dc upstream.
zap_modalias_env() wrongly calculates size of memory block to move, so
will cause OOB memory access issue if variable MODALIAS is not the last
one within its @env parameter, fixed by correcting size to memmove.
Fixes: 9b3fa47d4a76 ("kobject: fix suppressing modalias in uevents delivered over netlink")
Cc: stable@vger.kernel.org
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Reviewed-by: Lk Sii <lk_sii@163.com>
Link: https://lore.kernel.org/r/1717074877-11352-1-git-send-email-quic_zijuhu@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/globtest.c')
0 files changed, 0 insertions, 0 deletions