All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] spl: fix error handling in spl_fit_get_image_name()
@ 2025-06-24 15:34 Heinrich Schuchardt
  2025-06-24 15:34 ` [PATCH 1/2] common/spl: Revert fix potential out of buffer access in spl_fit_get_image_name function Heinrich Schuchardt
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Heinrich Schuchardt @ 2025-06-24 15:34 UTC (permalink / raw)
  To: Tom Rini
  Cc: Simon Glass, Mikhail Kshevetskiy, Sam Edwards, Anshul Dalal,
	u-boot, Heinrich Schuchardt

spl_fit_get_image_name() used to lack a detection of malformed image name
properties in FIT images. The change in commit 3704b888a4ca ("common/spl:
fix potential out of buffer access in spl_fit_get_image_name function")
tried to fix this  but led to function spl_fit_get_image_name() no longer
detecting if a property at index > 1 does not exist.

This patch is reverted.

An explicit check for malformed image name properties is introduced.

Cf.
[BUG] [PATCH v5 1/3] common/spl: fix potential out of buffer access in
spl_fit_get_image_name function
https://lore.kernel.org/u-boot/38f5d078-3328-4bdb-9c95-4fb5fe89ddc2@gmx.de/T/#u

Heinrich Schuchardt (2):
  common/spl: Revert fix potential out of buffer access in
    spl_fit_get_image_name function
  common/spl: guard against buffer overflow in spl_fit_get_image_name()

 common/spl/spl_fit.c | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

-- 
2.48.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-06-26 19:33 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-24 15:34 [PATCH 0/2] spl: fix error handling in spl_fit_get_image_name() Heinrich Schuchardt
2025-06-24 15:34 ` [PATCH 1/2] common/spl: Revert fix potential out of buffer access in spl_fit_get_image_name function Heinrich Schuchardt
2025-06-25  2:18   ` E Shattow
2025-06-24 15:34 ` [PATCH 2/2] common/spl: guard against buffer overflow in spl_fit_get_image_name() Heinrich Schuchardt
2025-06-24 21:02   ` Mikhail Kshevetskiy
2025-06-24 23:05     ` Heinrich Schuchardt
2025-06-24 21:05   ` Mikhail Kshevetskiy
2025-06-24 23:05     ` Heinrich Schuchardt
2025-06-24 23:07       ` Mikhail Kshevetskiy
2025-06-25  2:18   ` E Shattow
2025-06-25  2:00 ` [PATCH 0/2] spl: fix error handling " E Shattow
2025-06-26 19:32 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.