openwrt/toolchain/musl/patches
Petr Štetiar 733a482733 musl: handle wcsnrtombs destination buffer overflow (CVE-2020-28928)
The wcsnrtombs function in all musl libc versions up through 1.2.1 has
been found to have multiple bugs in handling of destination buffer
size when limiting the input character count, which can lead to
infinite loop with no forward progress (no overflow) or writing past
the end of the destination buffera.

This function is not used internally in musl and is not widely used,
but does appear in some applications. The non-input-limiting form
wcsrtombs is not affected.

All users of musl 1.2.1 and prior versions should apply the attached
patch, which replaces the overly complex and erroneous implementation.
The upcoming 1.2.2 release will adopt this new implementation.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit 4d4ef1058c)
2020-11-23 22:37:03 +01:00
..
100-add_glob_onlydir.patch toolchain/musl: bump to version 1.1.24 2019-10-15 16:13:06 +02:00
110-read_timezone_from_fs.patch toolchain/musl: update to version 1.1.21 2019-02-05 19:35:40 +01:00
200-add_libssp_nonshared.patch toolchain/musl: update to version 1.1.21 2019-02-05 19:35:40 +01:00
300-relative.patch toolchain/musl: update to version 1.1.20 2018-09-21 13:25:08 +02:00
400-Add-format-attribute-to-some-function-declarations.patch toolchain/musl: update to version 1.1.22 2019-04-23 13:29:04 +02:00
500-0002-don-t-use-libc.threads_minus_1-as-relaxed-atomic-for.patch musl: fix locking synchronization bug 2020-05-26 23:49:40 +02:00
700-wcsnrtombs-cve-2020-28928.diff musl: handle wcsnrtombs destination buffer overflow (CVE-2020-28928) 2020-11-23 22:37:03 +01:00
900-iconv_size_hack.patch toolchain/musl: update to version 1.1.20 2018-09-21 13:25:08 +02:00
901-crypt_size_hack.patch musl: improve crypt() size hack 2019-01-22 12:08:03 +01:00