[Midnightbsd-cvs] [MidnightBSD/src] 527531: iconv: Fix buffer overflows in HZ, UTF-7, VIQR, ZW...
Lucas Holt
noreply at github.com
Tue Jun 30 21:12:01 EDT 2026
Branch: refs/heads/stable/4.0
Home: https://github.com/MidnightBSD/src
Commit: 527531371fce197f1d0022ea5ee42b06134df9a9
https://github.com/MidnightBSD/src/commit/527531371fce197f1d0022ea5ee42b06134df9a9
Author: Lucas Holt <luke at foolishgames.com>
Date: 2026-06-30 (Tue, 30 Jun 2026)
Changed paths:
M lib/libiconv_modules/HZ/citrus_hz.c
M lib/libiconv_modules/ISO2022/citrus_iso2022.c
M lib/libiconv_modules/UTF7/citrus_utf7.c
M lib/libiconv_modules/VIQR/citrus_viqr.c
M lib/libiconv_modules/ZW/citrus_zw.c
Log Message:
-----------
iconv: Fix buffer overflows in HZ, UTF-7, VIQR, ZW and ISO-2022 modules
Several citrus iconv(3) encoding modules (HZ, UTF-7, VIQR, ZW) did not
check the size of the caller-supplied output buffer before writing
converted characters [CVE-2026-58081]. The ISO-2022 module used a
stack buffer sized to MB_LEN_MAX (6 bytes) for intermediate output, but
some ISO-2022 variants require up to 10 bytes per character, allowing a
stack buffer overflow of up to four bytes [CVE-2026-58082].
An application using iconv(3) to convert untrusted input to or from one
of the affected encodings could be vulnerable to buffer overflows.
Ported from the FreeBSD fix for SA-26:49.iconv (FreeBSD commit
d62d0b6586a8), which is derived from NetBSD's citrus changes by
Nick Wellnhofer and Mark Johnston.
Security: FreeBSD-SA-26:49.iconv
Security: CVE-2026-58081
Security: CVE-2026-58082
Obtained from: FreeBSD
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply at anthropic.com>
Commit: f3803669033855914138bd1e088d96b3813011a8
https://github.com/MidnightBSD/src/commit/f3803669033855914138bd1e088d96b3813011a8
Author: Lucas Holt <luke at foolishgames.com>
Date: 2026-06-30 (Tue, 30 Jun 2026)
Changed paths:
M UPDATING
Log Message:
-----------
UPDATING: Note SA-26:49.iconv fix
Security: FreeBSD-SA-26:49.iconv
Security: CVE-2026-58081
Security: CVE-2026-58082
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply at anthropic.com>
Compare: https://github.com/MidnightBSD/src/compare/896ba2ddc413...f38036690338
To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications
More information about the Midnightbsd-cvs
mailing list