In musl libc through 1.2.1, wcsnrtombs mishandles particular combinations of destination buffer size and source character limit, as demonstrated by an invalid write access (buffer overflow).
| Software | From | Fixed in |
|---|---|---|
| musl-libc / musl | - | 1.2.1.x |
| debian / debian_linux | 9.0 | 9.0.x |
| fedoraproject / fedora | 33 | 33.x |
| fedoraproject / fedora | 34 | 34.x |
| oracle / graalvm | 20.3.2 | 20.3.2.x |
| oracle / graalvm | 21.1.0 | 21.1.0.x |