Skip to content

CVE-2026-75092 Leapp-repository: leapp-upgrade-el9toel10: leapp-upgrade-el9toel10: scan_mysql runs mysqld --validate-config as root and can load mysql-writable plugins

HighCVSS 7.3 EPSS 0.19%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
MySQLRed Hat

Description

A privilege escalation flaw was found in the scan_mysql actor of leapp-upgrade-el9toel10 (provided by leapp-repository). During RHEL 9 to RHEL 10 upgrades, the actor runs:
mysqld --validate-config --log-error-verbosity=2 directly as root in the Leapp actor context, bypassing the packaged MySQL systemd unit that normally starts the daemon as User=mysql.

A process compromised as the mysql OS identity can write a version-2 persisted configuration (mysqld-auto.cnf) and a malicious shared object into /var/lib/mysql (a directory owned by mysql). That persisted map can set plugin_dir to /var/lib/mysql and early_plugin_load (or related loader options such as plugin_load / plugin_load_add) so MySQL loads the attacker-controlled object during configuration validation. Plugin loading can reach dlopen() before MySQL’s runtime-user check and before plugin-symbol validation.

When an administrator subsequently runs the documented Leapp preupgrade or upgrade workflow, attacker-controlled code can execute as UID 0 with a full capability set in an unconfined SELinux domain (unconfined_t). The attack does not require write access to the default system plugin path under /usr; redirecting plugin_dir via mysql-owned persisted state is sufficient. Ordinary SQL privileges alone (including highly privileged SQL accounts) are not a sufficient startpoint — OS-level execution as the mysql service identity is required, plus later administrator invocation of Leapp.

Upgrade path

5 packages: 4 fixed.

PackageAffectedFixed inStatus
redhat enterprise linux < 0:0.24.0-1.el9_8.1; = 8 0:0.24.0-1.el9_8.1 Fixed
redhat rhel eus < 0:0.22.0-1.el9_6.2 0:0.22.0-1.el9_6.2 Fixed
redhat/leapp-repository(Red Hat enterprise_linux 9) < 0.24.0-1.el9_8.1 0.24.0-1.el9_8.1 Fixed
redhat/leapp-repository(Red Hat rhel_eus 9.6) < 0.22.0-1.el9_6.2 0.22.0-1.el9_6.2 Fixed
redhat openstack = 17.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
redhat enterprise linux < 0:0.24.0-1.el9_8.1 0:0.24.0-1.el9_8.1
redhat rhel eus < 0:0.22.0-1.el9_6.2 0:0.22.0-1.el9_6.2
redhat enterprise linux = 8 No fix listed
redhat openstack = 17.1 No fix listed
redhat/leapp-repository(Red Hat:enterprise_linux:9) < 0.24.0-1.el9_8.1 0.24.0-1.el9_8.1
redhat/leapp-repository(Red Hat:rhel_eus:9.6) < 0.22.0-1.el9_6.2 0.22.0-1.el9_6.2

References