In MariaDB before 10.9.2, compresswrite in extra/mariabackup/dscompress.cc does not release data_mutex upon a stream write failure, which allows local users to trigger a deadlock.
{
"versions": [
{
"introduced": "10.3.0"
},
{
"fixed": "10.3.36"
},
{
"introduced": "10.4.0"
},
{
"fixed": "10.4.26"
},
{
"introduced": "10.5.0"
},
{
"fixed": "10.5.17"
},
{
"introduced": "10.6.0"
},
{
"fixed": "10.6.9"
},
{
"introduced": "0"
},
{
"last_affected": "10.9.1"
}
]
}[
{
"events": [
{
"introduced": "10.7.0"
},
{
"fixed": "10.7.5"
}
]
},
{
"events": [
{
"introduced": "10.8.0"
},
{
"fixed": "10.8.4"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "35"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "36"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "37"
}
]
}
]
[
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-38791-bab28f5d",
"target": {
"file": "sql/strfunc.cc",
"function": "find_set"
},
"digest": {
"length": 1094.0,
"function_hash": "96567548985656349046472553596954460768"
},
"signature_version": "v1",
"source": "https://github.com/mariadb/server/commit/faddcf3c395da640b760c3f701f5bc1f3baae6c4"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-38791-ee10862f",
"target": {
"file": "sql/strfunc.cc"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"271363707396860767418283350345897486504",
"120596951573328682502907908502941671745",
"115421961338400510566446524145876737974",
"64074615696916198601226435566349591945"
]
},
"signature_version": "v1",
"source": "https://github.com/mariadb/server/commit/faddcf3c395da640b760c3f701f5bc1f3baae6c4"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-38791.json"