linux/drivers/iio/proximity
Dheeraj Reddy Jonnalagadda 5d702aa2a4 iio: proximity: Fix use-after-free in hx9023s_send_cfg()
Reorder the assignment of fw_size to happen before release_firmware()
to avoid accessing the firmware structure after it's been freed.

Fixes: e9ed97be4f ("iio: proximity: hx9023s: Added firmware file parsing functionality")
Closes: https://scan7.scan.coverity.com/#/project-view/52337/11354?selectedIssue=1602791
Signed-off-by: Dheeraj Reddy Jonnalagadda <dheeraj.linuxdev@gmail.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250107123510.44978-1-dheeraj.linuxdev@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2025-02-03 19:30:11 +00:00
..
Kconfig iio: proximity: mb1232: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig 2024-10-06 16:30:15 +01:00
Makefile iio: proximity: aw96103: Add support for aw96103/aw96105 proximity sensor 2024-09-05 19:27:06 +01:00
as3935.c iio: proximity: Use aligned_s64 instead of open coding alignment. 2024-12-28 14:28:15 +00:00
aw96103.c iio: proximity: aw96103: Constify struct iio_info​ 2024-12-07 17:54:21 +00:00
cros_ec_mkbp_proximity.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
hx9023s.c iio: proximity: Fix use-after-free in hx9023s_send_cfg() 2025-02-03 19:30:11 +00:00
irsd200.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
isl29501.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
mb1232.c iio: proximity: Use aligned_s64 instead of open coding alignment. 2024-12-28 14:28:15 +00:00
ping.c iio: proximity: ping: fix typo in comment 2022-06-11 14:35:27 +01:00
pulsedlight-lidar-lite-v2.c iio: proximity: Use aligned_s64 instead of open coding alignment. 2024-12-28 14:28:15 +00:00
rfd77402.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
srf04.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
srf08.c iio: proximity: Use aligned_s64 instead of open coding alignment. 2024-12-28 14:28:15 +00:00
sx9310.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
sx9324.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
sx9360.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
sx9500.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
sx_common.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
sx_common.h iio: proximity: Use aligned_s64 instead of open coding alignment. 2024-12-28 14:28:15 +00:00
vcnl3020.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
vl53l0x-i2c.c Linux 6.12-rc2 2024-10-12 11:43:29 +01:00