openwrt-pf/package/system
Anna Kiri dd62e3af15
mtd: fis: fix buffer overflow from negative memset size
In fis_remap(), when desc < last, the memset size is computed as
'tmp - end'. Since tmp is calculated as 'end - positive_value', tmp is
always less than end, making 'tmp - end' negative. When cast to size_t,
this wraps to a very large value, causing a massive buffer overflow.

Fix by swapping the operands to 'end - tmp' which correctly computes the
number of bytes to clear.

Signed-off-by: Anna Kiri <bredcorn@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23550
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
2026-07-17 10:02:59 +02:00
..
apk package: make APK embedded help gzip reproducible 2026-06-10 20:15:15 +02:00
ca-certificates ca-certificates: update to 20260601 2026-06-07 10:47:20 +02:00
fstools fstools: update to Git HEAD (2026-05-23) 2026-05-23 18:25:00 +02:00
fwtool fwtool: update to Git HEAD (2025-10-03) 2025-10-03 23:56:29 +02:00
gpio-cdev/nu801 nu801: Mark as nonshared to build in step 1 2024-11-04 21:20:37 +01:00
iucode-tool packages: refresh patches 2024-05-31 11:30:06 +02:00
mtd mtd: fis: fix buffer overflow from negative memset size 2026-07-17 10:02:59 +02:00
openwrt-keyring openwrt-keyring: update to Git HEAD (2025-12-10) 2025-12-10 23:22:27 +01:00
opkg opkg: update to Git HEAD (2025-11-05) 2025-11-05 16:47:32 +01:00
procd procd: update to Git HEAD (2026-06-17) 2026-06-24 11:21:28 +02:00
refpolicy refpolicy: update to 2.20260312 2026-04-27 10:50:54 +02:00
rpcd rpcd: update to Git HEAD (2026-06-04) 2026-06-05 16:35:07 +02:00
selinux-policy selinux-policy: update to 2.8.4 2025-11-27 13:32:52 +01:00
ubox ubox: update to Git HEAD (2025-10-30) 2025-11-11 00:20:14 +01:00
ubus ubus: update to Git HEAD (2026-06-28) 2026-06-28 16:48:20 +02:00
ucert treewide: add explicit default variant 2026-01-02 14:46:30 +01:00
uci uci: update to Git HEAD (2025-12-02) 2025-12-09 20:36:25 +01:00
urandom-seed treewide: disable QUILT refresh for unsupported packages 2023-10-20 16:13:13 +02:00
urngd urngd: update to Git HEAD (2025-10-03) 2025-10-03 23:54:41 +02:00
usign usign: update to Git HEAD (2025-10-03) 2025-10-03 23:54:34 +02:00
zram-swap treewide: replace AUTORELEASE with real PKG_RELEASE 2023-05-18 11:35:29 +02:00