WSL2-Linux-Kernel/drivers/net/ieee802154
Christophe JAILLET 6afd112c3f net: ieee802154: adf7242: Fix some potential buffer overflow in adf7242_stats_show()
[ Upstream commit ca082f019d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-08 17:26:38 +01:00
..
Kconfig
Makefile
adf7242.c net: ieee802154: adf7242: Fix some potential buffer overflow in adf7242_stats_show() 2023-11-08 17:26:38 +01:00
at86rf230.c net: ieee802154: at86rf230: Stop leaking skb's 2022-02-23 12:03:04 +01:00
at86rf230.h
atusb.c ieee802154: atusb: fix uninit value in atusb_set_extended_addr 2022-01-11 15:35:12 +01:00
atusb.h
ca8210.c ieee802154: ca8210: Fix a potential UAF in ca8210_probe 2023-10-19 23:05:34 +02:00
cc2520.c ieee802154: cc2520: Fix error return code in cc2520_hw_init() 2022-12-14 11:37:23 +01:00
fakelb.c
mac802154_hwsim.c ieee802154: hwsim: Fix possible memory leaks 2023-06-28 10:29:45 +02:00
mac802154_hwsim.h
mcr20a.c net: ieee802154: mcr20a: Fix lifs/sifs periods 2022-02-08 18:34:08 +01:00
mcr20a.h
mrf24j40.c net: ieee802154: mrf24j40: Drop unneeded of_match_ptr() 2021-06-03 10:32:04 +02:00