iconv() is the C library’s character-set converter, and every program that lets a user choose an encoding, from mail systems to web frameworks to iconv itself on the command line, ends up in one of glibc’s gconv modules. The ISO-2022-CN-EXT module, which handles a stateful Chinese encoding that switches character sets with escape and shift bytes, mishandled an invalid shift-out byte: on “an invalid input byte sequence like ‘\x0e'” it “ends up advancing the pointer tracking the read buffer position twice”, and when that byte is the last one in the buffer the decoder reads past the end of it. The outcome the record gives is a crash of the calling application, and the precondition is that “the input and encoding needs to be attacker controlled”. The GNU C Library scores it 5.9 under CVSS 3.1. Take the glibc update when your distribution ships it, and until then do not let untrusted callers choose ISO-2022-CN-EXT as a source encoding.
CVE-2026-121758 at a glance.
| Component | glibc, the ISO-2022-CN-EXT gconv module (iconvdata/iso-2022-cn-ext.c), used by iconv(), the iconv command and anything that converts from that encoding through the C library |
| Affected versions | glibc 2.2 through 2.44, per the CNA record and the project’s advisory GLIBC-SA-2026-0030 (the CVE record links it under the file name GLIBC-SA-2026-00230); introduced by commit c0d99958 in the 2.1.93 development series |
| Fixed in | commit 170ee485fa89b95c3bb7d5606c9812c6c100c9be on the glibc 2.45 development branch (“iconv: ISO-2022-CN-EXT: fix SO handling without a designation (bug 34774)”, by JT Wang); no glibc release carries it on 1 December 2026. Debian sid 2.43-8 and openSUSE Tumbleweed 2.44-5.1 ship the backport |
| Severity | glibc (CNA) CVSS 3.1 5.9 Medium (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H), CWE-126 (buffer over-read); NVD Received with the CNA score. SUSE moderate (and a CVSS 4.0 8.2 of its own); Ubuntu Medium; Debian “Minor issue”, no DSA planned for trixie; Red Hat’s page unreachable on 1 December |
| Exploited in the wild | Not on CISA’s Known Exploited Vulnerabilities list as of 1 December 2026 (catalogue 2026.11.30). EPSS 0.00455 (41st percentile) on 1 December 2026 |
| Who is exposed | Any Linux process built against glibc that converts from ISO-2022-CN-EXT with input an attacker supplies and an encoding name the attacker chooses: mail and news software that honours a charset= label, web applications that convert uploads, language runtimes whose iconv bindings sit on glibc (PHP’s iconv extension, Ruby’s Encoding, Python’s codecs are not involved unless they call glibc). The impact is a crash of that process. musl-based systems such as Alpine do not have this code |
| Published | glibc advisory and CVE record 17 November 2026; this page built 1 December 2026, last updated 1 December 2026 |
What it is
ISO-2022-CN-EXT is one of the stateful ISO 2022 encodings: an escape sequence “designates” a character set, and the shift-out byte 0x0e then switches into it until a shift-in byte switches back. A shift-out that arrives before any designation is an error, because there is no character set for it to select. The fix commit, which is public on the glibc mirror, describes what the decoder did with that case: the loop that converts from ISO-2022-CN-EXT advanced the input pointer past the 0x0e before checking whether a designation had been announced, so the byte was already consumed when the error handler ran, and the error handler consumed it again.
The record describes the result as the pointer being advanced twice, and the consequence depends on where the byte sits. In the middle of a buffer the decoder skips one byte more than it should. At the end of the buffer the second advance steps past the buffer’s end, and the next read is out of bounds: a one-byte over-read that, depending on what lies beyond the buffer, is harmless, reads a byte of unrelated memory, or faults and crashes the process. The commit message adds a detail the record does not: without //IGNORE on the destination, iconv() returns EILSEQ with the shift-out already consumed, and it is the //IGNORE path, where the converter is told to skip invalid sequences and carry on, that can read past the end of the input. The AC:H in the vector is that combination of controlled input, controlled encoding and the byte landing at the end of a buffer.
The fix moves the pointer increment to after the error handling and updates a stale comment; the commit touches iconvdata/iso-2022-cn-ext.c (four lines added, six removed) and adds 180 lines of regression tests to iconvdata/tst-iconv-iso-2022-cn-ext.c, with cases named for a lone shift-out, a shift-out after ASCII, the //IGNORE variant and a trailing shift-out. The reporter is Ksawery RadziwiĹ‚owicz of Trail of Bits. The same 17 November advisory batch covers two sibling converter over-reads, CVE-2026-124024 in the IBM1390 and IBM1399 encoders and CVE-2026-121757 in the CP949 decoder, which have their own pages. The advisory files themselves and the sourceware Bugzilla refuse automated readers, so the advisory facts here are taken from the project’s announcement mail on oss-security and the CVE record.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one. glibc is the C library of every row below except Alpine, which uses musl.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Alpine builds on musl, which has its own iconv and none of this code; the tracker page returned a client error on 1 December and nothing is inferred from it | — |
| Debian | glibc vulnerable in bookworm (2.36-9+deb12u14; bookworm-security 2.36-9+deb12u7), trixie (2.41-12+deb13u5, marked “no-dsa, Minor issue”) and forky (2.43-7); fixed in sid; Debian bug 1154285 | sid 2.43-8 |
| Ubuntu | Priority Medium; glibc “Needs evaluation” on 16.04 through 26.10; no USN | nothing on 1 December 2026 |
| RHEL, Rocky, Alma, CentOS Stream | Tracker unreachable on 1 December 2026 (client error on the page and on the hydra JSON, twice); nothing inferred | — |
| openSUSE/SLE | Rated moderate, state Pending; SLES 15 and openSUSE Leap “Affected”, SLES 16.0/16.1 and SLE Micro 6.x “In progress”; openSUSE Tumbleweed fixed (openSUSE-Tumbleweed-2026-12710); SUSE bug 1290813 | Tumbleweed glibc 2.44-5.1 |
| Arch, Fedora, Gentoo, self-built glibc | Not consulted for this page; the upstream commit applies to any 2.2 to 2.44 build | commit 170ee485 on 2.45 |
How to check
Three questions, in order: which glibc the host runs, whether the ISO-2022-CN-EXT module is present at all, and which processes convert with a caller-chosen encoding. The third is the one that decides whether the flaw is reachable, and it is a question about your applications rather than about the library.
# 1. the C library and its version (musl hosts are not affected)
ldd --version | head -1
ls /lib/ld-musl-* 2>/dev/null && echo "musl: not affected"
dpkg -s libc6 2>/dev/null | grep '^Version'; rpm -q glibc 2>/dev/null
# 2. is the module installed? (it is part of the normal gconv set)
iconv -l | grep -i 'ISO-2022-CN-EXT'
ls /usr/lib/x86_64-linux-gnu/gconv/ISO-2022-CN-EXT.so /usr/lib64/gconv/ISO-2022-CN-EXT.so 2>/dev/null
# 3. who converts with a caller-chosen encoding: library users of iconv_open(), and the command itself
for p in $(pgrep -f '.'); do grep -l 'gconv' /proc/$p/maps 2>/dev/null | sed "s|.*|pid $p: $(tr '\0' ' ' < /proc/$p/cmdline | cut -c1-60)|"; done 2>/dev/null | sort -u
grep -rlE 'iconv_open|iconv\(' --include='*.c' --include='*.cc' --include='*.cpp' /path/to/src 2>/dev/null | head
grep -rn 'iconv' /etc/php/*/*/php.ini /etc/dovecot/conf.d/*.conf /etc/postfix/main.cf 2>/dev/nullA host on Debian sid 2.43-8 or Tumbleweed 2.44-5.1, or on musl, is done. On anything else the module is almost certainly present, since distributions ship the full gconv set, and the question is who calls it: a process that shows a gconv module mapped in step 3 has converted something since it started, and if the encoding name came from outside, a mail header, an HTTP request, a file a user uploaded, that process is the one the record describes. A process that only ever converts between encodings it chose itself is not.
How to fix it
Install the glibc update when your distribution publishes one, then restart every long-running process or reboot: the C library is mapped into every program, and a running process keeps the old copy until it restarts. needrestart on Debian and Ubuntu, or dnf needs-restarting on the RHEL family, lists what still holds the old library.
# Debian sid / testing-tracking hosts (stable has no fix on 1 December 2026)
apt update && apt install --only-upgrade libc6 && needrestart -r a
# openSUSE Tumbleweed
zypper refresh && zypper update glibc && zypper ps -s
# Fedora / RHEL family: check for an erratum, then
dnf upgrade glibc && dnf needs-restarting -r
# self-built: cherry-pick 170ee485fa89b95c3bb7d5606c9812c6c100c9be onto your branch and rebuildUntil a package arrives, the control is on the application side: do not let an untrusted party pick the source encoding. Applications that accept a charset label can map it against an allow-list before calling iconv_open(), and ISO-2022-CN-EXT is rarely on such a list outside East Asian mail and news. What not to do: do not delete the ISO-2022-CN-EXT.so gconv module to make the encoding unavailable, since removing files from the C library package leaves the package manager unable to verify or upgrade it cleanly; and do not read Debian’s “Minor issue” as “not affected”, since it is a statement about the crash’s severity, not about whether the code is present.
# application-side allow-list before iconv_open(): reject encodings you do not serve
case "$CHARSET" in
UTF-8|ISO-8859-1|ISO-8859-15|WINDOWS-1252) ;;
*) echo "unsupported charset $CHARSET" >&2; exit 1 ;;
esacThat is the shape of the check, in whatever language the application is written; the point is that the encoding name should never reach iconv_open() straight from the request.
Sources
- CVE-2026-121758 at CVE.org — the GNU C Library CNA record (17 November 2026): the description, the 2.2 to 2.44 range, CVSS 3.1 5.9, CWE-126, the advisory and bug references, the credit
- glibc security advisories update for 2026-11-17 — the project’s announcement mail on oss-security: GLIBC-SA-2026-0030 with the vulnerable commit, the fix commit
170ee485on 2.45, the score and the reporter - GLIBC-SA-2026-00230 — the advisory file named in the record; refuses automated readers, so its text is quoted here as the announcement mail carries it
- Fix commit 170ee485 — “iconv: ISO-2022-CN-EXT: fix SO handling without a designation (bug 34774)”: the mechanism, the
//IGNOREnote and the two files changed - glibc bug 34774 — the issue named in the record; behind an access check for automated readers
- NVD entry — Received; published 17 November; the CNA’s score and CWE; no CPEs yet
- Distribution trackers: Debian (sid 2.43-8 fixed; bug 1154285) · Ubuntu (Medium, needs evaluation) · SUSE (moderate; Tumbleweed 2.44-5.1) · Red Hat (unreachable on 1 December)
- CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00455 on 1 December 2026
Related reading
- CVE-2026-124024: glibc IBM1390 and IBM1399 encoders look four bytes ahead of a combining base and past the end of the input — sibling from the same advisory batch
- CVE-2026-121757: glibc CP949 decoder reads past the end of its input on an invalid pair when //IGNORE is set — sibling from the same advisory batch
- CVE-2026-134703: libexpat splits a UTF-16 surrogate pair and hands a lone high surrogate to the application — another decoder that trusted its input’s shape
- CVE-2026-137992: libexpat duplicate ATTLIST declarations denial of service — the parsing-library class of flaw this feed tracks at any severity
- Security advisories — every Linux-relevant CVE we track, newest first, with the component index
This advisory page was assembled from the primary sources listed above on 1 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.
