{"id":"CVE-2022-31624","details":"MariaDB Server before 10.7 is vulnerable to Denial of Service. While executing the plugin/server_audit/server_audit.c method log_statement_ex, the held lock lock_bigbuffer is not released correctly, which allows local users to trigger a denial of service due to the deadlock.","aliases":["BIT-mariadb-2022-31624","BIT-mariadb-min-2022-31624","BIT-mysql-client-2022-31624"],"modified":"2026-04-12T02:56:49.836568Z","published":"2022-05-25T21:15:08.700Z","references":[{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20220707-0006/"},{"type":"REPORT","url":"https://jira.mariadb.org/browse/MDEV-26556?filter=-2"},{"type":"FIX","url":"https://github.com/MariaDB/server/commit/d627d00b13ab2f2c0954ea7b77202470cb102944"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mariadb/server","events":[{"introduced":"0"},{"fixed":"561b6c7e513abc4ceba263252b519bf715ce80f4"},{"introduced":"20ae591abd0bfe1bfaee546989ee163f4ef832b1"},{"fixed":"a2f147af35480e27bd599462db59b9b95f71acd9"},{"introduced":"c761b43451d54eeeecdf3c102906fcce88d4e9d9"},{"fixed":"a19ab67318760f8f155ef7f4f821dfc738542c67"},{"introduced":"7c7f9bef28aa566557da31402142f6dd8298ddd2"},{"fixed":"8635be6a2962f8e256c27836c35064ccaabb7486"},{"introduced":"1a647b700f6b72dc97211510a5d0c647d5d3d911"},{"fixed":"109fc67d4da46d52d2a96528eaea3b0ef6275692"},{"fixed":"d627d00b13ab2f2c0954ea7b77202470cb102944"}],"database_specific":{"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"}]}}],"versions":["mariadb-10.1.0","mariadb-10.1.2","mariadb-10.1.3","mariadb-10.1.4","mariadb-10.1.5","mariadb-10.1.6","mariadb-10.1.7","mariadb-10.1.8","mariadb-10.2.0","mariadb-10.2.1","mariadb-10.2.10","mariadb-10.2.11","mariadb-10.2.12","mariadb-10.2.13","mariadb-10.2.14","mariadb-10.2.15","mariadb-10.2.16","mariadb-10.2.18","mariadb-10.2.19","mariadb-10.2.2","mariadb-10.2.20","mariadb-10.2.21","mariadb-10.2.22","mariadb-10.2.23","mariadb-10.2.24","mariadb-10.2.25","mariadb-10.2.26","mariadb-10.2.27","mariadb-10.2.28","mariadb-10.2.29","mariadb-10.2.30","mariadb-10.2.31","mariadb-10.2.39","mariadb-10.2.40","mariadb-10.2.5","mariadb-10.3.0","mariadb-10.3.1","mariadb-10.3.10","mariadb-10.3.12","mariadb-10.3.16","mariadb-10.3.17","mariadb-10.3.18","mariadb-10.3.19","mariadb-10.3.2","mariadb-10.3.20","mariadb-10.3.21","mariadb-10.3.26","mariadb-10.3.30","mariadb-10.3.31","mariadb-10.3.4","mariadb-10.3.5","mariadb-10.3.6","mariadb-10.3.7","mariadb-10.4.10","mariadb-10.4.11","mariadb-10.4.20","mariadb-10.4.21","mariadb-10.4.3","mariadb-10.4.4","mariadb-10.4.5","mariadb-10.4.7","mariadb-10.4.9","mariadb-10.5.0","mariadb-10.5.11","mariadb-10.5.12","mariadb-10.5.2","mariadb-10.5.4","mariadb-10.6.0","mariadb-10.6.1","mariadb-10.6.2","mariadb-10.6.3","mariadb-10.6.4"],"database_specific":{"vanir_signatures_modified":"2026-04-12T02:56:49Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31624.json","vanir_signatures":[{"digest":{"line_hashes":["131649957694533731721940309055820975752","249452647439853322414702137565205958351","201969777012246482841882403852745931746","95578070551738783324854304889376330162","249398730562238721197312579126910521732","272906839712165971131454335608419438521","107318663712936600961191413243544821067","180839139384475678538465324643300020059","282394023504767334221966027397455256851"],"threshold":0.9},"id":"CVE-2022-31624-0f0e4c3d","signature_type":"Line","target":{"file":"sql/sp_head.cc"},"source":"https://github.com/mariadb/server/commit/561b6c7e513abc4ceba263252b519bf715ce80f4","deprecated":false,"signature_version":"v1"},{"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","target":{"file":"plugin/server_audit/server_audit.c"},"source":"https://github.com/mariadb/server/commit/d627d00b13ab2f2c0954ea7b77202470cb102944","deprecated":false,"signature_version":"v1"},{"digest":{"length":3203,"function_hash":"68208181369720662953476210177932291928"},"id":"CVE-2022-31624-429159e8","signature_type":"Function","target":{"function":"log_statement_ex","file":"plugin/server_audit/server_audit.c"},"source":"https://github.com/mariadb/server/commit/d627d00b13ab2f2c0954ea7b77202470cb102944","deprecated":false,"signature_version":"v1"},{"digest":{"line_hashes":["246197311705367672488779414942418338437","276461508094209904860358154457724219596","119856287420192600807656416768471292892","307523178086602816378726753514303591471"],"threshold":0.9},"id":"CVE-2022-31624-a5b111ca","signature_type":"Line","target":{"file":"sql/sql_class.h"},"source":"https://github.com/mariadb/server/commit/561b6c7e513abc4ceba263252b519bf715ce80f4","deprecated":false,"signature_version":"v1"},{"digest":{"length":526,"function_hash":"313645379892638120418940088368384842330"},"id":"CVE-2022-31624-c0b6a67c","signature_type":"Function","target":{"function":"trans_cannot_safely_rollback","file":"sql/log.cc"},"source":"https://github.com/mariadb/server/commit/561b6c7e513abc4ceba263252b519bf715ce80f4","deprecated":false,"signature_version":"v1"},{"digest":{"length":5738,"function_hash":"58969679078610265830587969385269203468"},"id":"CVE-2022-31624-c2087e13","signature_type":"Function","target":{"function":"MYSQL_BIN_LOG::write","file":"sql/log.cc"},"source":"https://github.com/mariadb/server/commit/561b6c7e513abc4ceba263252b519bf715ce80f4","deprecated":false,"signature_version":"v1"},{"digest":{"length":1646,"function_hash":"306699274100027957454330329145370130558"},"id":"CVE-2022-31624-c7e73326","signature_type":"Function","target":{"function":"binlog_rollback","file":"sql/log.cc"},"source":"https://github.com/mariadb/server/commit/561b6c7e513abc4ceba263252b519bf715ce80f4","deprecated":false,"signature_version":"v1"},{"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","target":{"file":"sql/log.cc"},"source":"https://github.com/mariadb/server/commit/561b6c7e513abc4ceba263252b519bf715ce80f4","deprecated":false,"signature_version":"v1"},{"digest":{"line_hashes":["119521046618748345254444704918727070434","200452323826260590731762179699296029024","251509020612362925913253356211500341353","261751524541214367584170806104141027470","201306130400997636080714619460096506715","35155932094167429544231535939915658820"],"threshold":0.9},"id":"CVE-2022-31624-cd9394d7","signature_type":"Line","target":{"file":"sql/handler.h"},"source":"https://github.com/mariadb/server/commit/561b6c7e513abc4ceba263252b519bf715ce80f4","deprecated":false,"signature_version":"v1"},{"digest":{"length":2658,"function_hash":"336328390458211521927718962871514707351"},"id":"CVE-2022-31624-ed8021c5","signature_type":"Function","target":{"function":"sp_lex_keeper::reset_lex_and_exec_core","file":"sql/sp_head.cc"},"source":"https://github.com/mariadb/server/commit/561b6c7e513abc4ceba263252b519bf715ce80f4","deprecated":false,"signature_version":"v1"}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}