CVE-2026-85748
published critical CVSS 3.1 · 9.9MariaDB: Use-after-free with a large number of SYS_REFCURSOR's
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MariaDB | — | server>= 12.3.1, < 12.3.3 · >= 13.0.1, < 13.0.2 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected; No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3311 | Fixed | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | libmariadbd-develaarch64 | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| Amazon Linux | AL2023 | mariadb123aarch64 | Listed in advisory | Not stated | ALAS2023-2026-3311 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libmariadbd-develppc64le | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libmariadbd-devels390x | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
Show 40 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | libmariadbd-develx86_64 | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libmariadbd19aarch64 | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libmariadbd19ppc64le | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libmariadbd19s390x | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libmariadbd19x86_64 | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadbaarch64 | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadbppc64le | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadbs390x | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadbx86_64 | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-benchaarch64 | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-benchppc64le | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-benchs390x | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-benchx86_64 | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-clientaarch64 | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-clientppc64le | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-clients390x | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-clientx86_64 | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-errormessagesaarch64 | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-errormessagesppc64le | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-errormessagess390x | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-errormessagesx86_64 | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-galeraaarch64 | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-galerappc64le | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-galeras390x | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-galerax86_64 | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-rpm-macrosaarch64 | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-rpm-macrosppc64le | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-rpm-macross390x | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-rpm-macrosx86_64 | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-testaarch64 | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-testppc64le | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-tests390x | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-testx86_64 | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-toolsaarch64 | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-toolsppc64le | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-toolss390x | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-toolsx86_64 | Advisory build | 12.3.2-3.1 | OPENSUSE-SU-2026:12245-1 |
| Amazon Linux | AL2023 | mariadb123noarch | Listed in advisory | Not stated | ALAS2023-2026-3311 |
| Amazon Linux | AL2023 | mariadb123src | Listed in advisory | Not stated | ALAS2023-2026-3311 |
| Amazon Linux | AL2023 | mariadb123x86_64 | Listed in advisory | Not stated | ALAS2023-2026-3311 |
Description
MariaDB server is a community developed fork of MySQL server. From 12.3.1 until 12.3.3 and 13.0.2, SYS_REFCURSOR handling is affected because cursor-array reallocation can leave stale references in routine contexts. A low-privileged attacker can open a large number of SYS_REFCURSORs and then fetch one to trigger a use-after-free that can enable remote code execution when combined with another vulnerability. This issue is fixed in versions 12.3.3 and 13.0.2.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.9 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MariaDB | server | >= 12.3.1, < 12.3.3 (affected)>= 13.0.1, < 13.0.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-416 CWE-416: Use After Free
References
7- https://github.com/MariaDB/server/commit/91156c3de58762196605150ab3f756fe952592d1
- https://github.com/MariaDB/server/commit/9b075b2cb53338f67e7230cc585e02d2d34514ed
- https://github.com/MariaDB/server/releases/tag/mariadb-12.3.3
- https://github.com/MariaDB/server/releases/tag/mariadb-13.0.2
- https://github.com/MariaDB/server/security/advisories/GHSA-mv8g-9f7q-hprm
- https://jira.mariadb.org/browse/MDEV-40396
- https://jira.mariadb.org/browse/MDEV-40639
Provider assertions
2GitHub_M · cna
MariaDB: Use-after-free with a large number of SYS_REFCURSOR's
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ef3a041def61cac3f37f41704e2144017e084afcd11798198ecf31e4eaad9750
- Ingested
- 16 Oct 2026, 17:03:42 UTC
- Source record
- Official CVE record