MariaDB Server before 10.7 is vulnerable to Denial of Service. While executing the plugin/serveraudit/serveraudit.c method logstatementex, the held lock lock_bigbuffer is not released correctly, which allows local users to trigger a denial of service due to the deadlock.
{
"versions": [
{
"introduced": "0"
},
{
"fixed": "10.2.41"
},
{
"introduced": "10.3.0"
},
{
"fixed": "10.3.32"
},
{
"introduced": "10.4.0"
},
{
"fixed": "10.4.22"
},
{
"introduced": "10.5.0"
},
{
"fixed": "10.5.13"
},
{
"introduced": "10.6.0"
},
{
"fixed": "10.6.5"
}
]
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31624.json"
[
{
"signature_version": "v1",
"target": {
"file": "sql/sp_head.cc"
},
"source": "https://github.com/mariadb/server/commit/561b6c7e513abc4ceba263252b519bf715ce80f4",
"deprecated": false,
"digest": {
"line_hashes": [
"131649957694533731721940309055820975752",
"249452647439853322414702137565205958351",
"201969777012246482841882403852745931746",
"95578070551738783324854304889376330162",
"249398730562238721197312579126910521732",
"272906839712165971131454335608419438521",
"107318663712936600961191413243544821067",
"180839139384475678538465324643300020059",
"282394023504767334221966027397455256851"
],
"threshold": 0.9
},
"id": "CVE-2022-31624-0f0e4c3d",
"signature_type": "Line"
},
{
"signature_version": "v1",
"target": {
"file": "plugin/server_audit/server_audit.c"
},
"source": "https://github.com/mariadb/server/commit/d627d00b13ab2f2c0954ea7b77202470cb102944",
"deprecated": false,
"digest": {
"line_hashes": [
"90711998564806735195805859599695974488",
"250235656453474445952886226940630586901",
"138601424526244396688102904980203116856",
"260899504695773825099167960290426804286",
"195618794319389720373887341924388728956",
"235225536445748945692084098199749057201",
"31883114073388339147653063826921368361",
"197917030096083514348454819156402060362",
"289230583495206341900450989516810730650",
"91430430361054231056328722674418866585",
"77643133024047768721912717814398829819",
"320552537875945211561760460640784081150",
"105789923430061880194312968275998308603",
"98735563345642094680434238620443677187",
"292031684763090909993275794773076322308",
"92489659976201637249318478726246706024",
"27007173774237668602419387574308086290",
"274122217988597580338963001472301063072",
"300963376605594763791233698212657871132",
"26572807623540130495412504265101171947",
"66215638979692992416579566907711463705",
"303932196489732739924874928020261281051",
"113940657857467622423686902261834598417",
"331452141832298997014984331662191676077",
"208780544668844162214639230045198014431",
"51175193043033892703788848976725360034",
"295660115854400421342896505650256948479",
"35098586381009888889512332354175616121",
"283810331822564743159193848861315334503",
"326402544696859951904373527823434289044",
"92823256719393566777045561395813687873",
"293733344546467634335795315081711120116",
"275312355389525935055558046435670752820",
"243074016587120086829191301778761339000",
"84155445143525991563516771469806392016",
"271349187173497616455976187008678950698",
"93604260207551949815101346941943719267",
"90978700924351308299517326809194195046",
"38508214844301462891858640833477141052",
"106079778222993512903751763731120692597",
"290487621905075585846882912372845753214",
"31557689926468019009368634742709831835",
"90767754057816029463892744414730377001",
"28596287046245976445032249206946795832",
"109749886240234928794249123406894187768",
"284808872374891894869097567934294674017",
"279399910199429446361672530887901626278",
"83474200343153023088513681884050655343",
"276125084189040160593261940922046663677",
"4626733841424454083806093044308943681",
"6141779977975797060391828250288999884",
"237846036462394682827350038206442158043",
"137364733800278379521916866831845789459",
"1484270925556905909558539122805529576",
"331479318533556605097644896467278117922",
"117299276375238609187406297257687113891",
"307471933080226789218435425833536169797",
"334873379364503629241668652362502488215",
"158836082376971200932844697620135032127",
"92094223751136598475424808555861066367"
],
"threshold": 0.9
},
"id": "CVE-2022-31624-21bfa473",
"signature_type": "Line"
},
{
"signature_version": "v1",
"target": {
"file": "plugin/server_audit/server_audit.c",
"function": "log_statement_ex"
},
"source": "https://github.com/mariadb/server/commit/d627d00b13ab2f2c0954ea7b77202470cb102944",
"deprecated": false,
"digest": {
"function_hash": "68208181369720662953476210177932291928",
"length": 3203.0
},
"id": "CVE-2022-31624-429159e8",
"signature_type": "Function"
},
{
"signature_version": "v1",
"target": {
"file": "sql/sql_class.h"
},
"source": "https://github.com/mariadb/server/commit/561b6c7e513abc4ceba263252b519bf715ce80f4",
"deprecated": false,
"digest": {
"line_hashes": [
"246197311705367672488779414942418338437",
"276461508094209904860358154457724219596",
"119856287420192600807656416768471292892",
"307523178086602816378726753514303591471"
],
"threshold": 0.9
},
"id": "CVE-2022-31624-a5b111ca",
"signature_type": "Line"
},
{
"signature_version": "v1",
"target": {
"file": "sql/log.cc",
"function": "trans_cannot_safely_rollback"
},
"source": "https://github.com/mariadb/server/commit/561b6c7e513abc4ceba263252b519bf715ce80f4",
"deprecated": false,
"digest": {
"function_hash": "313645379892638120418940088368384842330",
"length": 526.0
},
"id": "CVE-2022-31624-c0b6a67c",
"signature_type": "Function"
},
{
"signature_version": "v1",
"target": {
"file": "sql/log.cc",
"function": "MYSQL_BIN_LOG::write"
},
"source": "https://github.com/mariadb/server/commit/561b6c7e513abc4ceba263252b519bf715ce80f4",
"deprecated": false,
"digest": {
"function_hash": "58969679078610265830587969385269203468",
"length": 5738.0
},
"id": "CVE-2022-31624-c2087e13",
"signature_type": "Function"
},
{
"signature_version": "v1",
"target": {
"file": "sql/log.cc",
"function": "binlog_rollback"
},
"source": "https://github.com/mariadb/server/commit/561b6c7e513abc4ceba263252b519bf715ce80f4",
"deprecated": false,
"digest": {
"function_hash": "306699274100027957454330329145370130558",
"length": 1646.0
},
"id": "CVE-2022-31624-c7e73326",
"signature_type": "Function"
},
{
"signature_version": "v1",
"target": {
"file": "sql/log.cc"
},
"source": "https://github.com/mariadb/server/commit/561b6c7e513abc4ceba263252b519bf715ce80f4",
"deprecated": false,
"digest": {
"line_hashes": [
"37241440461655139304666183504430673984",
"321123901233127987586838407173769763021",
"72261390377549520472738172439120219059",
"177685578562853608336609164621767055897",
"89819371651002091070891492658372534238",
"51099385615472244965869900895991310181",
"46580225994766933062920841006192426125",
"315917086551178982883049352244998712855",
"151578589657138643687922568393137771305",
"17554905964382256978464037543366371516",
"44471072352567830517014260687216170718",
"24734019721218526304965298857312980362",
"170961031791040395953313676921959415915",
"270863138330118960816828040809003942807",
"193741668719766893391486278801760873722",
"187930135527712657567073811467820013048",
"463263057525947197303571514490382636",
"339713228808563234771781256013265010488",
"60867587337001395239385720816441536057",
"201702182182638939619765504430616936017",
"57432871140975116606615382999074109620",
"84713255884193508387326659336658799628",
"26176627625780710469062407865406490363",
"43796184043138950845306782231229762899",
"324404121552377421361400005592716783209",
"327933765027016333514108949053193264778",
"64468012293600814982757536651285167827",
"7202594327949745606575738191994274437",
"262509239196084693497735668412073064246",
"337977078646117299838774945463804836390",
"10862040297338291254194597838720262756",
"83515971079454692103282106460082729171",
"189738111660857520124962685258236418556",
"32778699285218945562928993184558074443",
"218701964979892061313721302653462012734",
"187533463339481117482532077546372282049",
"202341581865934325003292198703136040956",
"155258852623302621764107560349238231581",
"159919742848761288642405190297761552689",
"147668741816814608585313009494181079624",
"218818688557001123571703121311150830495",
"148772925594895409927511713164729652512",
"95985790907239484288997369415539433967",
"255840666226744218838219627455521697435",
"255600561411523879536850015147493893481",
"27747137695801633233169226083338797085"
],
"threshold": 0.9
},
"id": "CVE-2022-31624-cbcd0de0",
"signature_type": "Line"
},
{
"signature_version": "v1",
"target": {
"file": "sql/handler.h"
},
"source": "https://github.com/mariadb/server/commit/561b6c7e513abc4ceba263252b519bf715ce80f4",
"deprecated": false,
"digest": {
"line_hashes": [
"119521046618748345254444704918727070434",
"200452323826260590731762179699296029024",
"251509020612362925913253356211500341353",
"261751524541214367584170806104141027470",
"201306130400997636080714619460096506715",
"35155932094167429544231535939915658820"
],
"threshold": 0.9
},
"id": "CVE-2022-31624-cd9394d7",
"signature_type": "Line"
},
{
"signature_version": "v1",
"target": {
"file": "sql/sp_head.cc",
"function": "sp_lex_keeper::reset_lex_and_exec_core"
},
"source": "https://github.com/mariadb/server/commit/561b6c7e513abc4ceba263252b519bf715ce80f4",
"deprecated": false,
"digest": {
"function_hash": "336328390458211521927718962871514707351",
"length": 2658.0
},
"id": "CVE-2022-31624-ed8021c5",
"signature_type": "Function"
}
]