kernel_samsung_a53x/drivers/net/ieee802154
Christophe JAILLET 9fedfe37d5 net: ieee802154: adf7242: Fix some potential buffer overflow in adf7242_stats_show()
[ Upstream commit ca082f019d8fbb983f03080487946da714154bae ]

strncat() usage in adf7242_debugfs_init() is wrong.
The size given to strncat() is the maximum number of bytes that can be
written, excluding the trailing NULL.

Here, the size that is passed, DNAME_INLINE_LEN, does not take into account
the size of "adf7242-" that is already in the array.

In order to fix it, use snprintf() instead.

Fixes: 7302b9d90117 ("ieee802154/adf7242: Driver for ADF7242 MAC IEEE802154")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 10:58:29 +01:00
..
adf7242.c net: ieee802154: adf7242: Fix some potential buffer overflow in adf7242_stats_show() 2024-11-18 10:58:29 +01:00
at86rf230.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
at86rf230.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atusb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atusb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ca8210.c ieee802154: ca8210: Fix a potential UAF in ca8210_probe 2024-11-08 11:25:45 +01:00
cc2520.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fakelb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mac802154_hwsim.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mac802154_hwsim.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mcr20a.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mcr20a.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mrf24j40.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00