]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath12k: Fix buffer overflow in debugfs
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 9 Apr 2025 11:01:25 +0000 (14:01 +0300)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Sat, 12 Apr 2025 04:19:29 +0000 (21:19 -0700)
commit8c7a5031a6b0d42e640fbd2d5d05f61f74e32dce
tree2e4ca33911b80f8ea30bbc7ac171aae6d8818403
parent4703416d0fb993f7505025667f868f6981a5f7ab
wifi: ath12k: Fix buffer overflow in debugfs

If the user tries to write more than 32 bytes then it results in memory
corruption.  Fortunately, this is debugfs so it's limited to root users.

Fixes: 3f73c24f28b3 ("wifi: ath12k: Add support to enable debugfs_htt_stats")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
Link: https://patch.msgid.link/35daefbd-d493-41d9-b192-96177d521b40@stanley.mountain
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath12k/debugfs_htt_stats.c