linux-stable/drivers/net/ieee802154
Christophe JAILLET ca082f019d net: ieee802154: adf7242: Fix some potential buffer overflow in adf7242_stats_show()
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: 7302b9d901 ("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>
2023-10-22 11:28:43 +01:00
..
adf7242.c net: ieee802154: adf7242: Fix some potential buffer overflow in adf7242_stats_show() 2023-10-22 11:28:43 +01:00
at86rf230.c net: ieee802154: at86rf230: drop of_match_ptr for ID table 2023-03-15 08:11:02 +00:00
at86rf230.h
atusb.c ieee802154: atusb: add support for trac feature 2022-10-12 19:43:20 +02:00
atusb.h
ca8210.c ieee802154: ca8210: Fix a potential UAF in ca8210_probe 2023-10-07 20:37:38 +02:00
cc2520.c Merge tag 'ieee802154-for-net-next-2023-02-20' of git://git.kernel.org/pub/scm/linux/kernel/git/sschmidt/wpan-next 2023-02-20 16:40:52 -08:00
fakelb.c
Kconfig net: ieee802154: at86rf230: Forward Tx trac errors 2022-04-25 20:52:22 +02:00
mac802154_hwsim.c ieee802154: hwsim: Fix possible memory leaks 2023-04-12 21:31:32 +02:00
mac802154_hwsim.h
Makefile
mcr20a.c net: ieee802154: mcr20a: drop of_match_ptr for ID table 2023-03-15 08:11:02 +00:00
mcr20a.h
mrf24j40.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00