Matrix libolm before 3.2.3 allows a malicious Matrix homeserver to crash a client (while it is attempting to retrieve an Olm encrypted room key backup from the homeserver) because olmpkdecrypt has a stack-based buffer overflow. Remote code execution might be possible for some nonstandard build configurations.
[
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"67187540684594846929930087958775330407",
"252238880134199690140829526927907039125",
"112731075044979816756838691158599276159",
"266670586885842653055159594457029441809",
"122863437526258609946485188487153639683",
"2322259021207589375720402312402339042",
"170628078302948138487804364359809229940",
"280008696207157238904539322325357556224",
"306982545767147644230375218821142457083",
"160271540659833010369177823877678495362",
"308281618806135522932869827565222393041",
"149136064223153088998885318011358564622",
"31400777264479745020044360703052328467",
"249163031161303586159027329025144146965",
"64992816398013141508940414006691902376",
"278982838318123888358918597633323949366",
"95614447084228899863388343554603907601",
"50985141910277076522136908930418998284",
"52922677131880317037314411531219288696",
"304011125082188447210728078135368394569",
"108512209535030714841988259827627401272",
"13058810865725070382559229120526879264",
"99818199449007817973156829142645460775"
]
},
"source": "https://gitlab.matrix.org/matrix-org/olm@ccc0d122ee1b4d5e5ca4ec1432086be17d5f901b",
"deprecated": false,
"target": {
"file": "src/pk.cpp"
},
"id": "CVE-2021-34813-240bb04f",
"signature_version": "v1",
"signature_type": "Line"
},
{
"digest": {
"function_hash": "147075573380992072531349232456661044906",
"length": 1070.0
},
"source": "https://gitlab.matrix.org/matrix-org/olm@ccc0d122ee1b4d5e5ca4ec1432086be17d5f901b",
"deprecated": false,
"target": {
"file": "src/pk.cpp",
"function": "olm_pk_decrypt"
},
"id": "CVE-2021-34813-9e3b972a",
"signature_version": "v1",
"signature_type": "Function"
}
]