Description
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).
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | musl | 1.2.2-1 | — |
| Debian 13 | musl | 1.2.2-1 | — |
| Debian 12 | musl | 1.2.2-1 | — |
| Debian 9 | musl | 1.1.16-3+deb9u1 | DLA-2474-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | musl | 1.1.24-1ubuntu0.1~esm1 | USN-5990-1 |
| Ubuntu Pro 18.04 LTS | musl | 1.1.19-1ubuntu0.1~esm1 | USN-5990-1 |
| Ubuntu Pro 16.04 LTS | musl | 1.1.9-1ubuntu0.1~esm3 | USN-5990-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | musl | 0.9.15-1ubuntu0.1~esm2 | USN-5990-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | musl | 1.2.2_pre2-r0 | — |
| Alpine v3.23 | musl | 1.2.2_pre2-r0 | — |
| Alpine v3.22 | musl | 1.2.2_pre2-r0 | — |
| Alpine v3.21 | musl | 1.2.2_pre2-r0 | — |
| Alpine v3.20 | musl | 1.2.2_pre2-r0 | — |
Show 11 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | musl | 1.2.2_pre2-r0 | — |
| Alpine v3.18 | musl | 1.2.2_pre2-r0 | — |
| Alpine v3.17 | musl | 1.2.2_pre2-r0 | — |
| Alpine v3.16 | musl | 1.2.2_pre2-r0 | — |
| Alpine v3.15 | musl | 1.2.2_pre2-r0 | — |
| Alpine v3.14 | musl | 1.2.2_pre2-r0 | — |
| Alpine v3.13 | musl | 1.2.2_pre2-r0 | — |
| Alpine v3.12 | musl | 1.1.24-r10 | — |
| Alpine v3.11 | musl | 1.1.24-r3 | — |
| Alpine v3.10 | musl | 1.1.22-r4 | — |
| Alpine v3.9 | musl | 1.1.20-r6 | — |
Advisories 3
- USN-5990-1 musl vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- DLA-2474-1 musl - security update Debian Security (DSA / DLA) · Mar 9, 2026
- WID-SEC-2022-0464 Oracle Java SE: Mehrere Schwachstellen BSI CERT-Bund (WID) · Apr 29, 2025
References
- https://musl.libc.org/releases.html
- [debian-lts-announce] 20201130 [SECURITY] [DLA 2474-1] musl security update mailing-list
- [apisix-notifications] 20210428 [GitHub] [apisix-docker] tao12345666333 opened a new pull request #166: fix: upgrade alpine version due to CVE-2020-28928 mailing-list
- [apisix-notifications] 20210428 [apisix-docker] branch master updated: fix: upgrade alpine version due to CVE-2020-28928 (#166) mailing-list
- [apisix-notifications] 20210428 [GitHub] [apisix-docker] starsz merged pull request #166: fix: upgrade alpine version due to CVE-2020-28928 mailing-list
- FEDORA-2021-4892dbbf76 vendor-advisory
- FEDORA-2021-0cf36f9134 vendor-advisory
- https://www.oracle.com//security-alerts/cpujul2021.html
- http://www.openwall.com/lists/oss-security/2020/11/20/4
- https://www.oracle.com/security-alerts/cpuoct2021.html