openwrt-pf/package/utils
Hauke Mehrtens 7e7bd602ea fritz-tools: fix out-of-bounds memset in TFFS segment expansion
When growing the segment array in find_entry(), the memset() that zeroes
the newly allocated slots computed the destination with redundant sizeof
scaling:

  memset(segments + (num_segments * sizeof(struct tffs_entry_segment)), ...)

segments is a typed pointer, so pointer arithmetic already scales by the
element size. Multiplying the offset by sizeof again advances the
destination by num_segments * sizeof^2 bytes, landing far outside the
realloc()'d buffer and zeroing unrelated heap memory whenever a TFFS
entry spans multiple segments that require array expansion.

Drop the redundant multiplication so the memset targets segments[num_segments].

This is a robustness fix for malformed/corrupt TFFS content; the parser
only reads the on-device nand-tffs MTD partition as root, so it is not
considered security relevant.

Reported-by: @Vasco0x4
Assisted-by: Claude:claude-opus-4-8
Link: https://github.com/openwrt/openwrt/pull/23763
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-06-16 00:51:53 +02:00
..
adb adb: update project URL 2026-01-02 18:07:02 +01:00
audit
bcm27xx-utils
bcm4908img
bsdiff
busybox busybox: fix signal handling in non-interactive envirement 2026-06-14 11:51:50 +02:00
bzip2 bzip2: add CPPFLAGS 2026-02-17 22:25:05 +01:00
checkpolicy checkpolicy: update to 3.10 2026-04-27 10:50:53 +02:00
cli cli: add cidr6 data type 2026-02-07 10:04:18 +01:00
ct-bugcheck
debugcc
dns320l-mcu dns320l-mcu: fix compilation with GCC14 2025-05-03 22:57:11 +02:00
dtc dtc: update to 1.7.2 2025-11-23 09:20:12 +01:00
e2fsprogs e2fsprogs: update to version 1.47.4 2026-04-07 01:31:04 +02:00
f2fs-tools f2fs-tools: update project URL 2026-01-02 18:07:02 +01:00
fbtest treewide: strip trailing whitespace 2025-05-20 00:47:37 +02:00
firmware-utils firmware-utils: update to Git HEAD (2025-11-11) 2025-11-11 21:29:22 +01:00
fitblk treewide: validate unified uImage.FIT images before flashing 2025-04-21 16:12:42 +01:00
fritz-tools fritz-tools: fix out-of-bounds memset in TFFS segment expansion 2026-06-16 00:51:53 +02:00
jboot-tools treewide: edit local CMakeLists.txt to be compatible with cmake 4.x 2025-11-04 15:14:53 +01:00
jsonfilter jsonfilter: update to Git HEAD (2026-03-16) 2026-03-16 00:51:04 +01:00
lua
lua5.3 lua: Forward LDFLAGS 2025-11-18 23:13:46 +01:00
mdadm mdadm: move init before fstab init runs 2026-01-27 01:45:10 +01:00
mtd-utils mtd-utils: update to v2.3.1 2026-04-16 20:45:40 +02:00
nilfs-utils nilfs-utils: update to 2.3.0 2026-06-03 13:46:09 +02:00
nvram nvram: use strdup 2026-06-11 10:33:00 +02:00
omnia-eeprom omnia-eeprom: simplify Makefile 2025-06-22 18:58:49 +02:00
omnia-mcutool omnia-mcutool: Bump version to 0.3-rc4 2026-06-02 13:37:37 +02:00
osafeloader
policycoreutils policycoreutils: update to 3.10 2026-04-27 10:50:53 +02:00
provision provision: drop usage of AUTORELEASE 2025-10-29 21:09:55 +01:00
px5g-mbedtls treewide: strip trailing whitespace 2025-05-20 00:47:37 +02:00
px5g-wolfssl
ravpower-mcu ravpower-mcu: add CPPFLAGS 2026-02-17 22:25:09 +01:00
secilc secilc: update to 3.10 2026-04-27 10:50:54 +02:00
spidev_test treewide: use HTTPS URL for www.kernel.org 2026-01-02 18:07:02 +01:00
ucode ucode: update to Git HEAD (2026-06-03) 2026-06-03 13:13:17 +02:00
ucode-mod-bpf ucode-mod-bpf: add CPPFLAGS 2026-02-17 22:25:31 +01:00
ucode-mod-pkgen
ucode-mod-uline ucode-mod-uline: drop usage of AUTORELEASE 2025-10-29 21:09:55 +01:00
uencrypt treewide: edit local CMakeLists.txt to be compatible with cmake 4.x 2025-11-04 15:14:53 +01:00
ugps ugps: update to Git HEAD (2025-10-03) 2025-10-03 23:54:26 +02:00
usbgadget usbgadget: bump PKG_RELEASE for os descriptors support 2025-07-04 17:33:18 +08:00
usbmode usbmode: add modeswitch rule for ZTE MF833U1 2026-02-11 23:21:42 +01:00
util-linux util-linux: update to 2.42.1 2026-05-19 23:39:29 +02:00
yafut
zyxel-bootconfig zyxel-bootconfig: add CPPFLAGS 2026-02-17 22:25:09 +01:00
zyxel-bootconfig-ipq807x qualcommax: ipq807x: add Zyxel NWA110AX support 2026-02-13 21:35:49 +01:00