Files
linux/arch
Yihui ZENG 2072402afd s390/cmm: fix information leak in cmm_timeout_handler()
commit b8e51a6a9d upstream.

The problem is that we were putting the NUL terminator too far:

	buf[sizeof(buf) - 1] = '\0';

If the user input isn't NUL terminated and they haven't initialized the
whole buffer then it leads to an info leak.  The NUL terminator should
be:

	buf[len - 1] = '\0';

Signed-off-by: Yihui Zeng <yzeng56@asu.edu>
Cc: stable@vger.kernel.org
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
[heiko.carstens@de.ibm.com: keep semantics of how *lenp and *ppos are handled]
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-15 14:56:05 +09:00
..
2023-05-15 11:34:34 +09:00
2023-05-15 14:31:22 +09:00
2018-05-19 14:06:17 +02:00
2018-02-17 14:52:07 +01:00
2016-10-19 08:39:47 -07:00