Bug 2554096

Summary: CVE-2026-85748 mariadb12.3: mariadb: use-after-free in SYS_REFCURSOR during FETCH operations [fedora-all]
Product: [Fedora] Fedora Reporter: Laura Pardo <lpardo>
Component: mariadb12.3Assignee: Michal Schorm <mschorm>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: db-sig, mschorm
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["14809952-868f-4225-b416-7a1d2821b38b"]}
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2553279    

Description Laura Pardo 2026-10-16 12:54:14 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

A use-after-free vulnerability was found in MariaDB's SYS_REFCURSOR handling during FETCH operations. An authenticated, low-privileged SQL user can trigger a use-after-free condition that potentially allows control over a virtual function call. When chained with a separate information-disclosure vulnerability, this can be used to modify Security_context::master_access to obtain FILE privileges and subsequently achieve operating-system command execution through UDF loading.

The researcher reports successful exploitation against MariaDB 13.0.1-rc with ASLR, PIE, and Full RELRO enabled.

Reference: https://hackerone.com/reports/3856148