From 8d66a0a1dc4fd60458dd9fd116e062374ec7e05e Mon Sep 17 00:00:00 2001 From: Jonathan Cameron Date: Sun, 24 Aug 2025 21:39:06 +0800 Subject: [PATCH] iio: light: as73211: Ensure buffer holes are zeroed ANBZ: #26402 commit fd441fd972067f80861a0b66605c0febb0d038dd stable. commit 433b99e922943efdfd62b9a8e3ad1604838181f2 upstream. Given that the buffer is copied to a kfifo that ultimately user space can read, ensure we zero it. Fixes: 403e5586b52e ("iio: light: as73211: New driver") Reviewed-by: Matti Vaittinen Reviewed-by: Andy Shevchenko Link: https://patch.msgid.link/20250802164436.515988-2-jic23@kernel.org Cc: Signed-off-by: Jonathan Cameron [ Adjust context ] Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman Fixes: CVE-2025-39687 Signed-off-by: Xiao Long Signed-off-by: Guixin Liu --- drivers/iio/light/as73211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/light/as73211.c b/drivers/iio/light/as73211.c index 7b32dfaee9b3..04ed6497f2af 100644 --- a/drivers/iio/light/as73211.c +++ b/drivers/iio/light/as73211.c @@ -568,7 +568,7 @@ static irqreturn_t as73211_trigger_handler(int irq __always_unused, void *p) struct { __le16 chan[4]; s64 ts __aligned(8); - } scan; + } scan = { }; int data_result, ret; mutex_lock(&data->mutex); -- Gitee