Skip to content

boot: UAF and double free fixes

Sascha Hauer barebox 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20261030-boot-mem-fixes-e19012a6b82d

Versions newest first

  1. v1 Latest4 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4boot: fix use-after-free when restoring bootm variablescommon/boot.c+17 -00 replies
2/4bootargs: fix double free in linux_bootargs_get()common/bootargs.c+1 -01 reply
3/4commands: boot: fix use-after-free of overrides taken from globalvarscommands/boot.c+30 -80 replies
4/4commands: boot: list bootm.image in the -o help text againcommands/boot.c+1 -10 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchAhmad Fatoum
1/4
2/4R-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] boot: UAF and double free fixes

This fixes some Use after free and double free cases. Also bring back the information that the kernel image can be overriden to the boot help text.

---
Sascha Hauer (4):
boot: fix use-after-free when restoring bootm variables
bootargs: fix double free in linux_bootargs_get()
commands: boot: fix use-after-free of overrides taken from globalvars
commands: boot: list bootm.image in the -o help text again

 commands/boot.c   | 40 +++++++++++++++++++++++++++++++---------
 common/boot.c     | 17 +++++++++++++++++
 common/bootargs.c |  1 +
 3 files changed, 49 insertions(+), 9 deletions(-)

---
base-commit: f2e574b9c63c6da07a06179a868cae8a471ec176
change-id: 20261030-boot-mem-fixes-e19012a6b82d

Best regards,

Signature · 1 line
Sascha Hauer <[email protected]>