cve.bz

CVE-2026-85748 mariadb mariadb: Use After Free

9.9 criticalEPSS 1.2%Fix available

Critical (9.9) in mariadb mariadb. EPSS 1.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.9 critical
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS
1.2% (unchanged from 1.2% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 68th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-10-16. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-85748 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-85748?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-85748?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-85748 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
mariadb:mariadbfrom 12.3.1 before 12.3.3
mariadb:mariadb13.0.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu16.04:LTSmariadb-10.0no fix listedUBUNTU-CVE-2026-85748
Ubuntu18.04:LTSmariadb-10.1no fix listedUBUNTU-CVE-2026-85748
Ubuntu20.04:LTSmariadb-10.3no fix listedUBUNTU-CVE-2026-85748
Ubuntu22.04:LTSmariadb-10.6no fix listedUBUNTU-CVE-2026-85748
Ubuntu24.04:LTS, 26.04:LTS, 26.10mariadbno fix listedUBUNTU-CVE-2026-85748
openSUSETumbleweedmariadb12.3.2-3.1openSUSE-SU-2026:12245-1

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

A use-after-free vulnerability was found in MariaDB's SYS_REFCURSOR handling. When a large number of SYS_REFCURSOR cursors are opened, a Dynamic_array reallocation can leave dangling pointers that are later dereferenced during FETCH operations. An authenticated SQL user with low privileges can exploit this to gain control of the instruction pointer. SYS_REFCURSOR was introduced in MariaDB 12.0; no version of MariaDB shipped in Red Hat Enterprise Linux contains this feature. Fedora ships MariaDB 12.3, which is affected.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10mariadb10.11Not affected
Red Hat Enterprise Linux 10mariadb11.8Not affected
Red Hat Enterprise Linux 7mariadbNot affected
Red Hat Enterprise Linux 8mariadb:10.11/mariadbNot affected
Red Hat Enterprise Linux 8mariadb:10.3/mariadbNot affected
Red Hat Enterprise Linux 9mariadbNot affected
Red Hat Enterprise Linux 9mariadb:10.11/mariadbNot affected
Red Hat Enterprise Linux 9mariadb:11.8/mariadbNot affected
Red Hat Hardened Imageshi/mariadbNot affected
Red Hat Hardened Imagesmariadb10.11Not affected
Red Hat Hardened Imagesmariadb11.8Not affected
Red Hat OpenStack Platform 13 (Queens)mariadbNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-85748.

References

Check your stackJSON