[PATCH] cmd: nvedit: Validate argument count before use
Tom Rini
trini at konsulko.com
Thu Dec 18 20:51:56 CET 2025
On Wed, 17 Dec 2025 20:57:38 +0100, Marek Vasut wrote:
> Avoid NULL pointer dereference in case 'env select' is invoked
> without parameters, check the arg count and make sure it is at
> least 2, otherwise print usage.
>
> The crash is easy to trigger e.g. in sandbox:
> $ ./u-boot -Tc "env select"
>
> [...]
Applied to u-boot/master, thanks!
[1/1] cmd: nvedit: Validate argument count before use
commit: 2333d446b7b133ddfb9dea2d53996d560796ecd9
--
Tom
More information about the U-Boot
mailing list