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
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
dtc
e2fsprogs e2fsprogs: update to version 1.47.4 2026-04-07 01:31:04 +02:00
f2fs-tools
fbtest
firmware-utils
fitblk
fritz-tools fritz-tools: fix out-of-bounds memset in TFFS segment expansion 2026-06-16 00:51:53 +02:00
jboot-tools
jsonfilter jsonfilter: update to Git HEAD (2026-03-16) 2026-03-16 00:51:04 +01:00
lua
lua5.3
mdadm
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-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
px5g-mbedtls
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
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
uencrypt
ugps
usbgadget
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