glibc denial of service in UCS-4 to IBM1390/IBM1399 conversion
The GNU C Library glibc
The GNU C Library glibc
| Product | Affected | Fixed in |
|---|---|---|
| The GNU C Library glibc |
| No fix yet |
Converting crafted input from UCS-4 to IBM1390 or IBM1399 character encoding, in the GNU C Library version 2.3.3 and later may result in the converter reading past the end of the input buffer, causing the calling application to crash.
When converting from UCS-4, these encoders may encounter a combining base such as U+00E6 and jump ahead by 4 bytes to check the next UCS-4 code point. The check for end of buffer however does not account for this, which may result in a buffer overread if the following code point has less than 4 bytes remaining. Exploitation of this bug not only requires attacker control of input and encoding, but also strict control over layout of the input in memory.
From the CVE record · glibc
In glibc 2.3.3 and later, converting crafted UCS-4 input to IBM1390 or IBM1399 can read past the input buffer and crash the calling application. Exploitation requires attacker control of the input, the encoding, and the input’s layout in memory. The input does not specify whether network access, authentication, or user interaction is required.
Engineers running applications that use glibc 2.3.3 or later for UCS-4 to IBM1390 or IBM1399 conversion should check their exposure.