Skip to content
OpenAdvisories
Critical · 9.9 CVE-2026-85748 EUVD-2026-102941

MariaDB: Use-after-free with a large number of SYS_REFCURSOR's

Published Oct 16, 2026 · Updated Oct 16, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
MariaDB server >= 12.3.1, < 12.3.3, >= 13.0.1, < 13.0.2 —

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.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 mariadb No fix yet —
Ubuntu 26.04 LTS mariadb No fix yet —
Ubuntu 24.04 LTS mariadb No fix yet —
Ubuntu 22.04 LTS mariadb-10.6 No fix yet —
Ubuntu 20.04 LTS mariadb-10.3 No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS mariadb-10.1 No fix yet —
Ubuntu 16.04 LTS mariadb-10.0 No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed mariadb 12.3.2-3.1 openSUSE-SU-2026:12245-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 mariadb123 +15 3:12.3.3-2.amzn2023.0.1 ALAS2023-2026-3311

Advisories 3

References