CVE-2021-34813
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 olm_pk_decrypt has a stack-based buffer overflow. Remote code execution might be possible for some nonstandard build configurations.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | olm | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | olm | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | olm | Fix pending | 3.1.3+dfsg-2ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2021-34813 |
| Ubuntu 18.04 | olm | Not affected vulnerable_code_not_present | ||
| Debian 14 | olm | Fixed | 3.2.3~dfsg-3 | DEBIAN-CVE-2021-34813 |
| Debian 13 | olm | Fixed | 3.2.3~dfsg-3 | DEBIAN-CVE-2021-34813 |
| Debian 12 | olm | Fixed | 3.2.3~dfsg-3 | DEBIAN-CVE-2021-34813 |
References
- https://matrix.org/blog/2021/06/14/adventures-in-fuzzing-libolm
- https://gitlab.matrix.org/matrix-org/olm/-/releases/3.2.3
- https://gitlab.matrix.org/matrix-org/olm/-/commit/ccc0d122ee1b4d5e5ca4ec1432086be17d5f901b
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.