Description
An issue was discovered in musl libc 0.7.10 through 1.2.6. Stack-based memory corruption can occur during qsort of very large arrays, due to incorrectly implemented double-word primitives. The number of elements must exceed about seven million, i.e., the 32nd Leonardo number on 32-bit platforms (or the 64th Leonardo number on 64-bit platforms, which is not practical).
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| musl-libc | musl | 0.7.10 – ≤ 1.2.6 | — |
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.5-3.1 | — |
| Debian 13 | musl | 1.2.5-3.1~deb13u1 | — |
| Debian 12 | musl | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | musl | No fix yet | — |
| Ubuntu 26.04 LTS | musl | No fix yet | — |
| Ubuntu 25.10 | musl | No fix yet | — |
| Ubuntu 24.04 LTS | musl | No fix yet | — |
| Ubuntu 22.04 LTS | musl | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | musl | No fix yet | — |
| Ubuntu Pro 18.04 LTS | musl | No fix yet | — |
| Ubuntu Pro 16.04 LTS | musl | No fix yet | — |
| Ubuntu Pro 14.04 LTS | musl | No fix yet | — |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | musl | 1.2.6-r2 | — |
| Alpine v3.23 | musl | 1.2.5-r23 | — |
| Alpine v3.22 | musl | 1.2.5-r12 | — |
| Alpine v3.21 | musl | 1.2.5-r11 | — |
| Alpine v3.20 | musl | 1.2.5-r3 | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | musl | 1.2.4_git20230717-r6 | — |