Re: [PATCH] soc: qcom: mdt_loader: fix off-by-one heap overflow in segment name

From: Bjorn Andersson

Date: Sun Nov 08 2026 - 15:34:35 EST



On Sat, 12 Sep 2026 09:56:51 +0300, Kenneth Kabogo wrote:
> mdt_load_split_segment() builds a segment firmware filename by
> overwriting the last three characters of a kstrdup'd copy of fw_name
> with "b%02d" formatted from segment. %02d is a minimum field width,
> not a cap: for segment in [0, 99] this produces exactly "bNN" + NUL,
> which fits the buffer, but for segment >= 100 it writes "b100" or
> wider, one or more bytes past the end of the kstrdup allocation.
>
> [...]

Applied, thanks!

[1/1] soc: qcom: mdt_loader: fix off-by-one heap overflow in segment name
commit: 3e0d5015fc90859ca8c3a2edacdbaad546969f54

Best regards,
--
Bjorn Andersson <andersson@xxxxxxxxxx>