[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4b6c8505-5615-4d43-9632-3fc3dca27e70@baylibre.com>
Date: Tue, 7 Jan 2025 10:42:49 -0600
From: David Lechner <dlechner@...libre.com>
To: Dheeraj Reddy Jonnalagadda <dheeraj.linuxdev@...il.com>,
jic23@...nel.org, lars@...afoo.de
Cc: jstephan@...libre.com, yasin.lee.x@...il.com, dan.carpenter@...aro.org,
nuno.sa@...log.com, linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH iio-next] iio: proximity: Fix use-after-free in
hx9023s_send_cfg()
On 1/7/25 6:35 AM, Dheeraj Reddy Jonnalagadda wrote:
> Reorder the assignment of fw_size to happen before release_firmware()
> to avoid accessing the firmware structure after it's been freed.
>
> Fixes: e9ed97be4fcc ("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@...il.com>
> ---
Reviewed-by: David Lechner <dlechner@...libre.com>
Powered by blists - more mailing lists