CVE-2022-38791 in Fedoraproject Fedora and 1 more product
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.
Affects 2 products from 2 vendors. Facts below cite their sources.
Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Fedoraproject | Fedora | 35 36 37 |
| Mariadb | Mariadb | 10.9.1 ≥ 10.3.0, < 10.3.36 ≥ 10.4.0, < 10.4.26 ≥ 10.5.0, < 10.5.17 ≥ 10.6.0, < 10.6.9 ≥ 10.7.0, < 10.7.5+1 more≥ 10.8.0, < 10.8.4 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2022-38791 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-331037-M |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| Published | 2022-08-27 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-667: CWE-667
Related attack patterns (CAPEC)
CAPEC-27 Leveraging Race Conditions via Symbolic Links via CWE-667
CAPEC-25 Forced Deadlock via CWE-667
CAPEC-26 Leveraging Race Conditions via CWE-667
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A deadlock can be triggered in MariaDB versions before 10.9.2 due to a failure to release a mutex in the compress_write function, affecting the mariabackup tool.
Local users can exploit this vulnerability by causing a stream write failure, which prevents the data_mutex from being released, leading to a deadlock condition.
Questions
What is CVE-2022-38791?
A deadlock can be triggered in MariaDB versions before 10.9.2 due to a failure to release a mutex in the compress_write function, affecting the mariabackup tool.
What is the CVSS score for CVE-2022-38791?
CVE-2022-38791 has CVSS 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. EPSS: 0.2%.
Is CVE-2022-38791 actively exploited?
No confirmed active exploitation of CVE-2022-38791 as of 2026-09-25.
How do I remediate CVE-2022-38791?
Priority: MEDIUM. Advisory: https://jira.mariadb.org/browse/MDEV-28719 PSIRT: [email protected]
What systems are affected by CVE-2022-38791?
CVE-2022-38791 affects Fedoraproject Fedora; Mariadb Mariadb.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Fedoraproject","product":"Fedora","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.