CVE-2026-85748
CVE-2026-85748 · MariaDB: Use-after-free with a large number of SYS_REFCURSOR's
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 9.9 · Critical · EPSS 0.5%
- Published
- Updated
Affected products and versions
server
- Versions
- >= 12.3.1, < 12.3.3: Affected
- >= 13.0.1, < 13.0.2: Affected
No fix published
mariadb-10.0 Ubuntu:16.04:LTS
- Versions
- 10.0.20-0ubuntu0.15.04.1
- 10.0.22-0ubuntu1
- 10.0.23-1
- 10.0.23-2
- 10.0.24-7
- 10.0.25-0ubuntu0.16.04.1
- 10.0.27-0ubuntu0.16.04.1
- 10.0.28-0ubuntu0.16.04.1
- 10.0.29-0ubuntu0.16.04.1
- 10.0.31-0ubuntu0.16.04.2
- 10.0.33-0ubuntu0.16.04.1
- 10.0.34-0ubuntu0.16.04.1
- 10.0.36-0ubuntu0.16.04.1
- 10.0.38-0ubuntu0.16.04.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
mariadb-10.1 Ubuntu:18.04:LTS
- Versions
- 10.1.25-1
- 1:10.1.29-6
- 1:10.1.34-0ubuntu0.18.04.1
- 1:10.1.38-0ubuntu0.18.04.1
- 1:10.1.38-0ubuntu0.18.04.2
- 1:10.1.40-0ubuntu0.18.04.1
- 1:10.1.41-0ubuntu0.18.04.1
- 1:10.1.43-0ubuntu0.18.04.1
- 1:10.1.44-0ubuntu0.18.04.1
- 1:10.1.47-0ubuntu0.18.04.1
- 1:10.1.48-0ubuntu0.18.04.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
mariadb-10.3 Ubuntu:20.04:LTS
- Versions
- 1:10.3.17-1
- 1:10.3.18-1
- 1:10.3.19-1
- 1:10.3.21-2
- 1:10.3.22-1
- 1:10.3.22-1ubuntu1
- 1:10.3.25-0ubuntu0.20.04.1
- 1:10.3.29-0ubuntu0.20.04.1
- 1:10.3.30-0ubuntu0.20.04.1
- 1:10.3.31-0ubuntu0.20.04.1
- 1:10.3.32-0ubuntu0.20.04.1
- 1:10.3.34-0ubuntu0.20.04.1
- 1:10.3.37-0ubuntu0.20.04.1
- 1:10.3.38-0ubuntu0.20.04.1
- 1:10.3.39-0ubuntu0.20.04.2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
mariadb-10.6 Ubuntu:22.04:LTS
- Versions
- 1:10.6.7-2ubuntu1
- 1:10.6.7-2ubuntu1.1
- 1:10.6.11-0ubuntu0.22.04.1
- 1:10.6.12-0ubuntu0.22.04.1
- 1:10.6.16-0ubuntu0.22.04.1
- 1:10.6.18-0ubuntu0.22.04.1
- 1:10.6.21-0ubuntu0.22.04.2
- 1:10.6.22-0ubuntu0.22.04.1
- 1:10.6.23-0ubuntu0.22.04.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
mariadb Ubuntu:24.04:LTS
- Versions
- 1:10.11.4-1
- 1:10.11.5-3
- 1:10.11.6-1
- 1:10.11.6-2
- 1:10.11.7-2ubuntu1
- 1:10.11.7-2ubuntu2
- 1:10.11.8-0ubuntu0.24.04.1
- 1:10.11.11-0ubuntu0.24.04.2
- 1:10.11.13-0ubuntu0.24.04.1
- 1:10.11.14-0ubuntu0.24.04.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
mariadb Ubuntu:26.10
- Versions
- 1:11.8.6-5
- 1:11.8.8-1
- 1:11.8.9+ds-4ubuntu2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
mariadb Ubuntu:26.04:LTS
- Versions
- 1:11.8.3-1build1
- 1:11.8.5-1
- 1:11.8.5-2
- 1:11.8.5-3
- 1:11.8.5-4
- 1:11.8.6-1
- 1:11.8.6-3
- 1:11.8.6-4
- 1:11.8.6-5
- 1:11.8.6-5ubuntu0.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://github.com/MariaDB/server/security/advisories/GHSA-mv8g-9f7q-hprm
- 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://jira.mariadb.org/browse/MDEV-40396
- https://jira.mariadb.org/browse/MDEV-40639
- https://nvd.nist.gov/vuln/detail/CVE-2026-85748