Files
twx-linux/lib
Zijun Hu d466353675 kobject_uevent: Fix OOB access within zap_modalias_env()
commit dd6e9894b4 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: 9b3fa47d4a ("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>
2024-08-03 09:00:48 +02:00
..
2024-01-19 11:59:11 -08:00
2024-02-01 13:06:40 +01:00
2024-04-25 21:07:06 -07:00
2024-04-25 21:07:05 -07:00
2024-02-15 12:17:28 -05:00
2024-02-20 20:47:32 -08:00
2024-04-16 17:22:18 +02:00
2024-05-19 16:12:38 -07:00
2024-05-02 17:48:09 -04:00