musl — security advisory
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).
- Products
- musl
- Affected versions
- 0.9.14-2, 0.9.14-2ubuntu1, 0.9.15-1, 0.9.15-1ubuntu0.1~esm1, 0.9.15-1ubuntu0.1~esm2, 1.1.16-3, 1.1.18-1, 1.1.19-1, 1.1.19-1ubuntu0.1~esm1, 1.1.23-2build1, 1.1.24-1, 1.1.24-1ubuntu0.1~esm1, 1.1.9-1, 1.1.9-1ubuntu0.1~esm2, 1.1.9-1ubuntu0.1~esm3, 1.2.2-1, 1.2.2-4, 1.2.3-1, 1.2.4-2, 1.2.5-2, 1.2.5-3, 1.2.5-3build1, 1.2.6-1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-40200
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 03:02 UTC · Revision 1
Source evidence
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).
osv:UBUNTU-CVE-2026-40200
musl
Fixed versions: Not specified
musl
Fixed versions: Not specified
musl
Fixed versions: Not specified
musl
Fixed versions: Not specified
musl
Fixed versions: Not specified
musl
Fixed versions: Not specified
musl
Fixed versions: Not specified
musl
Fixed versions: Not specified
musl
Fixed versions: Not specified
Complete source record
{
"id": "37c7c342509aad921dcdf89d4d173f00e597ba387e89eb375f96ca2b67c6bfa3",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-40200",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-40200",
"summary": "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).",
"evidence": "osv:UBUNTU-CVE-2026-40200",
"products": [
{
"name": {
"value": "musl",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.9.14-2",
"evidence": "/affected/0/versions"
},
{
"value": "0.9.14-2ubuntu1",
"evidence": "/affected/0/versions"
},
{
"value": "0.9.15-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.9.15-1ubuntu0.1~esm1",
"evidence": "/affected/0/versions"
},
{
"value": "0.9.15-1ubuntu0.1~esm2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "musl",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.1.9-1",
"evidence": "/affected/1/versions"
},
{
"value": "1.1.9-1ubuntu0.1~esm2",
"evidence": "/affected/1/versions"
},
{
"value": "1.1.9-1ubuntu0.1~esm3",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "musl",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.1.16-3",
"evidence": "/affected/2/versions"
},
{
"value": "1.1.18-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.1.19-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.1.19-1ubuntu0.1~esm1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "musl",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.1.23-2build1",
"evidence": "/affected/3/versions"
},
{
"value": "1.1.24-1",
"evidence": "/affected/3/versions"
},
{
"value": "1.1.24-1ubuntu0.1~esm1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "musl",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.2.2-1",
"evidence": "/affected/4/versions"
},
{
"value": "1.2.2-4",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "musl",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.2.3-1",
"evidence": "/affected/5/versions"
},
{
"value": "1.2.4-2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "musl",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.2.5-2",
"evidence": "/affected/6/versions"
},
{
"value": "1.2.5-3",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "musl",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.2.5-3build1",
"evidence": "/affected/7/versions"
},
{
"value": "1.2.6-1",
"evidence": "/affected/7/versions"
}
]
},
{
"name": {
"value": "musl",
"evidence": "/affected/8/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.2.5-3",
"evidence": "/affected/8/versions"
},
{
"value": "1.2.5-3build1",
"evidence": "/affected/8/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2026-40200",
"aliases": [
"UBUNTU-CVE-2026-40200"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "musl",
"purl": "pkg:deb/ubuntu/musl?arch=source&distro=esm-infra-legacy%2Ftrusty",
"ecosystem": "Ubuntu:Pro:14.04:LTS"
},
"versions": [
"0.9.14-2",
"0.9.14-2ubuntu1",
"0.9.15-1",
"0.9.15-1ubuntu0.1~esm1",
"0.9.15-1ubuntu0.1~esm2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40200.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "musl",
"binary_version": "0.9.15-1ubuntu0.1~esm2"
},
{
"binary_name": "musl-tools",
"binary_version": "0.9.15-1ubuntu0.1~esm2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "musl",
"purl": "pkg:deb/ubuntu/musl?arch=source&distro=esm-apps%2Fxenial",
"ecosystem": "Ubuntu:Pro:16.04:LTS"
},
"versions": [
"1.1.9-1",
"1.1.9-1ubuntu0.1~esm2",
"1.1.9-1ubuntu0.1~esm3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40200.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "musl",
"binary_version": "1.1.9-1ubuntu0.1~esm3"
},
{
"binary_name": "musl-tools",
"binary_version": "1.1.9-1ubuntu0.1~esm3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "musl",
"purl": "pkg:deb/ubuntu/musl?arch=source&distro=esm-apps%2Fbionic",
"ecosystem": "Ubuntu:Pro:18.04:LTS"
},
"versions": [
"1.1.16-3",
"1.1.18-1",
"1.1.19-1",
"1.1.19-1ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40200.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "musl",
"binary_version": "1.1.19-1ubuntu0.1~esm1"
},
{
"binary_name": "musl-tools",
"binary_version": "1.1.19-1ubuntu0.1~esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "musl",
"purl": "pkg:deb/ubuntu/musl?arch=source&distro=esm-apps%2Ffocal",
"ecosystem": "Ubuntu:Pro:20.04:LTS"
},
"versions": [
"1.1.23-2build1",
"1.1.24-1",
"1.1.24-1ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40200.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "musl",
"binary_version": "1.1.24-1ubuntu0.1~esm1"
},
{
"binary_name": "musl-tools",
"binary_version": "1.1.24-1ubuntu0.1~esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "musl",
"purl": "pkg:deb/ubuntu/musl?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"1.2.2-1",
"1.2.2-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40200.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "musl",
"binary_version": "1.2.2-4"
},
{
"binary_name": "musl-tools",
"binary_version": "1.2.2-4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "musl",
"purl": "pkg:deb/ubuntu/musl?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"1.2.3-1",
"1.2.4-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40200.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "musl",
"binary_version": "1.2.4-2"
},
{
"binary_name": "musl-tools",
"binary_version": "1.2.4-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "musl",
"purl": "pkg:deb/ubuntu/musl?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"1.2.5-2",
"1.2.5-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40200.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "musl",
"binary_version": "1.2.5-3"
},
{
"binary_name": "musl-tools",
"binary_version": "1.2.5-3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "musl",
"purl": "pkg:deb/ubuntu/musl?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"1.2.5-3build1",
"1.2.6-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40200.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "musl",
"binary_version": "1.2.6-1"
},
{
"binary_name": "musl-tools",
"binary_version": "1.2.6-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "musl",
"purl": "pkg:deb/ubuntu/musl?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"1.2.5-3",
"1.2.5-3build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40200.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "musl",
"binary_version": "1.2.5-3build1"
},
{
"binary_name": "musl-tools",
"binary_version": "1.2.5-3build1"
}
]
}
}
],
"modified": "2026-10-17T13:00:03.899872085Z",
"provider": "osv",
"upstream": [
"CVE-2026-40200"
],
"references": [
"https://ubuntu.com/security/CVE-2026-40200",
"https://www.cve.org/CVERecord?id=CVE-2026-40200",
"https://www.openwall.com/lists/oss-security/2026/04/10/13",
"https://musl.libc.org/releases.html"
]
},
"related_cves": [
{
"value": "CVE-2026-40200",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 360231,
"published_at": "2026-04-10T17:17:00+00:00"
}