public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/4] fix multiple integer overflows in fs
@ 2025-12-29 19:44 Timo tp Preißl
  2025-12-29 19:44 ` [PATCH 1/4] fs: prevent integer overflow in fs.c do_mv Timo tp Preißl
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Timo tp Preißl @ 2025-12-29 19:44 UTC (permalink / raw)
  To: u-boot; +Cc: trini, Timo tp Preißl

This series fixes integer overflow issues in several filesystem
subsystems of U-Boot. Without these fixes, certain size calculations
could wrap, potentially leading to under-allocation and heap buffer
overflows.


Timo tp Preißl (4):
  fs: prevent integer overflow in fs.c do_mv
  fs: prevent integer overflow in zfs_nvlist_lookup
  fs: prevent integer overflow in sqfs_concat
  fs: prevent integer overflow in ext4fs_get_bgdtable

 fs/ext4/ext4_write.c |  7 ++++++-
 fs/fs.c              | 16 +++++++++++++---
 fs/squashfs/sqfs.c   |  8 ++++++--
 fs/zfs/zfs.c         |  5 ++++-
 4 files changed, 29 insertions(+), 7 deletions(-)

tested on:
make sandbox_defconfig
-- 
2.43.0



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

end of thread, other threads:[~2025-12-30  3:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-29 19:44 [PATCH 0/4] fix multiple integer overflows in fs Timo tp Preißl
2025-12-29 19:44 ` [PATCH 1/4] fs: prevent integer overflow in fs.c do_mv Timo tp Preißl
2025-12-29 19:44 ` [PATCH 2/4] fs: prevent integer overflow in zfs_nvlist_lookup Timo tp Preißl
2025-12-29 19:44 ` [PATCH 3/4] fs: prevent integer overflow in sqfs_concat Timo tp Preißl
2025-12-29 19:44 ` [PATCH 4/4] fs: prevent integer overflow in ext4fs_get_bgdtable Timo tp Preißl
2025-12-30  3:53 ` [PATCH 0/4] fix multiple integer overflows in fs Yao Zi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox