CVE-2022-38791

In MariaDB before 10.9.2, compress_write in extra/mariabackup/ds_compress.cc does not release data_mutex upon a stream write failure, which allows local users to trigger a deadlock.

Published: 2022-08-27 Last update: 2024-11-21 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2022-38791 is rated Low Risk (23.1/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.04%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2022-38791

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2023-03-07 0.89% 0.04% -0.84%
2 2022-08-28 0.89%

Full EPSS history (2 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2022-38791

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
5.5 3.1 MEDIUM
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
1.8 3.6 [email protected]

Weakness enumeration for CVE-2022-38791

OS Trackers for CVE-2022-38791

vendor priority summary link
alpine medium CVE-2022-38791: 1 source package rows (mariadb); 71 state rows across 5 repos (3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-main); fixed 0, open 71. https://security.alpinelinux.org/vuln/CVE-2022-38791
debian not yet assigned CVE-2022-38791 not yet assigned priority: Debian including 1 source packages (mariadb-10.5), 1 status rows across 1 suites (bullseye): resolved 1. https://security-tracker.debian.org/tracker/CVE-2022-38791
gentoo normal CVE-2022-38791: 1 GLSA(s) (202405-25), 1 atom(s) (dev-db/mariadb); latest impact normal. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2022-38791
redhat medium https://access.redhat.com/security/cve/CVE-2022-38791
suse medium CVE-2022-38791 severity moderate: SUSE including 127 source package names (10.6-12.1:mariadb-client-10.6.10-150400.3.17.1, 10.6-12.1:mariadb-errormessages-10.6.10-150400.3.17.1, …), 378 product×package rows across 55 product lines (Container suse/rmt-mariadb, Container suse/rmt-mariadb-client, … (55 product lines)): Fixed 225, Known Not Affected 124, Will Not Fix 29. https://www.suse.com/security/cve/CVE-2022-38791/
ubuntu medium CVE-2022-38791 medium priority: Ubuntu including 6 source packages (mariadb-10.0, mariadb-10.1, mariadb-10.3, mariadb-10.5, mariadb-10.6, mariadb-5.5), 78 status rows across 13 suites (bionic, focal, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): DNE 65, needs-triage 7, released 3, not-affected 2, ignored 1. https://ubuntu.com/security/CVE-2022-38791

Affected software / configurations for CVE-2022-38791

Vendor Product Version Raw CPE
mariadb mariadb >= 10.3.0, < 10.3.36 cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*
mariadb mariadb >= 10.4.0, < 10.4.26 cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*
mariadb mariadb >= 10.5.0, < 10.5.17 cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*
mariadb mariadb >= 10.6.0, < 10.6.9 cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*
mariadb mariadb >= 10.7.0, < 10.7.5 cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*
mariadb mariadb >= 10.8.0, < 10.8.4 cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*
mariadb mariadb 10.9.1 cpe:2.3:a:mariadb:mariadb:10.9.1:*:*:*:*:*:*:*
fedoraproject fedora 35 cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
fedoraproject fedora 36 cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
fedoraproject fedora 37 cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*

References for CVE-2022-38791

cvelogic Threat Intelligence