From: David Lechner <dlechner@baylibre.com>
To: Dheeraj Reddy Jonnalagadda <dheeraj.linuxdev@gmail.com>,
jic23@kernel.org, lars@metafoo.de
Cc: jstephan@baylibre.com, yasin.lee.x@gmail.com,
dan.carpenter@linaro.org, nuno.sa@analog.com,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH iio-next] iio: proximity: Fix use-after-free in hx9023s_send_cfg()
Date: Tue, 7 Jan 2025 10:42:49 -0600 [thread overview]
Message-ID: <4b6c8505-5615-4d43-9632-3fc3dca27e70@baylibre.com> (raw)
In-Reply-To: <20250107123510.44978-1-dheeraj.linuxdev@gmail.com>
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@gmail.com>
> ---
Reviewed-by: David Lechner <dlechner@baylibre.com>
next prev parent reply other threads:[~2025-01-07 16:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-07 12:35 [PATCH iio-next] iio: proximity: Fix use-after-free in hx9023s_send_cfg() Dheeraj Reddy Jonnalagadda
2025-01-07 16:42 ` David Lechner [this message]
2025-01-12 11:53 ` Jonathan Cameron
2025-01-18 17:21 ` Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4b6c8505-5615-4d43-9632-3fc3dca27e70@baylibre.com \
--to=dlechner@baylibre.com \
--cc=dan.carpenter@linaro.org \
--cc=dheeraj.linuxdev@gmail.com \
--cc=jic23@kernel.org \
--cc=jstephan@baylibre.com \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=yasin.lee.x@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox