{"id":"CVE-2021-44732","aliases":["ALPINE-CVE-2021-44732","DEBIAN-CVE-2021-44732","DLA-3249-1","DLA-4236-1","EUVD-2021-31547","GHSA-7g56-f7p4-fmcq","JLSEC-2025-214","MGASA-2022-0017","UBUNTU-CVE-2021-44732","USN-8123-1"],"status":"published","title":"Mbed TLS before 3.0.1 has a double free in certain out-of-memory conditions, as demonstrated by...","description":"Mbed TLS before 3.0.1 has a double free in certain out-of-memory conditions, as demonstrated by an mbedtls_ssl_set_session() failure.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.0277,"percentile":0.86506,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-415"],"published":"2021-12-20T00:00:00Z","modified":"2026-11-03T06:32:41Z","fixes":[{"ecosystem":"Alpine:v3.12","package":"mbedtls","fixed_in":["2.16.12-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.13","package":"mbedtls","fixed_in":["2.16.12-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.14","package":"mbedtls","fixed_in":["2.16.12-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.15","package":"mbedtls","fixed_in":["2.16.12-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"mbedtls","fixed_in":["2.16.12-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"mbedtls","fixed_in":["2.16.12-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"mbedtls","fixed_in":["2.16.12-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"mbedtls","fixed_in":["2.16.12-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"mbedtls","fixed_in":["2.16.12-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"mbedtls","fixed_in":["2.16.12-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"mbedtls","fixed_in":["2.16.12-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"mbedtls","fixed_in":["2.16.12-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"mbedtls","fixed_in":["2.16.12-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"mbedtls2","fixed_in":["2.16.12-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"mbedtls2","fixed_in":["2.16.12-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"mbedtls2","fixed_in":["2.16.12-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"mbedtls2","fixed_in":["2.16.12-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"mbedtls2","fixed_in":["2.16.12-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"mbedtls3","fixed_in":["2.16.12-r0"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"mbedtls","fixed_in":["2.28.0-0.3"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"mbedtls","fixed_in":["2.28.0-0.3"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"mbedtls","fixed_in":["2.28.0-0.3"],"sources":["osv"]},{"ecosystem":"Julia","package":"MbedTLS_jll","fixed_in":["2.28.0+0"],"sources":["osv"]},{"ecosystem":"Mageia:8","package":"mbedtls","fixed_in":["2.16.12-1.mga8"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"mbedtls","fixed_in":["2.8.0-1ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"mbedtls","fixed_in":["2.16.4-1ubuntu2+esm1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.12","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.12-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.13","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.12-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.14","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.12-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.15","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.12-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.12-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.12-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.12-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.12-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.12-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.12-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.12-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.12-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.12-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"mbedtls2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.12-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"mbedtls2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.12-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"mbedtls2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.12-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"mbedtls2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.12-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"mbedtls2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.12-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"mbedtls3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.12-r0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.28.0-0.3"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.28.0-0.3"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.28.0-0.3"}]}]},{"source":"osv","ecosystem":"Debian:10","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.9-0~deb10u1"}]}],"versions":["2.16.0-1","2.16.2-1","2.16.3-1","2.16.4-1","2.16.5-1"],"bundled":18},{"source":"osv","ecosystem":"Debian:11","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.9-0.1+deb11u1"}]}],"versions":["2.16.9-0.1"],"bundled":5},{"source":"osv","ecosystem":"Julia","package":"MbedTLS_jll","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.28.0+0"}]}]},{"source":"osv","ecosystem":"Mageia:8","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.12-1.mga8"}]}]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.2-1","2.2.0-1","2.2.1-1","2.2.1-2","2.2.1-2ubuntu0.1","2.2.1-2ubuntu0.2","2.2.1-2ubuntu0.3"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.0-1ubuntu0.1~esm1"}]}],"versions":["2.5.1-1ubuntu1","2.6.0-1","2.7.0-2","2.8.0-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.4-1ubuntu2+esm1"}]}],"versions":["2.16.2-1","2.16.3-1","2.16.4-1ubuntu2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.0-1ubuntu0.1~esm1"}]}],"versions":["2.5.1-1ubuntu1","2.6.0-1","2.7.0-2","2.8.0-1"],"bundled":7},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.4-1ubuntu2+esm1"}]}],"versions":["2.16.2-1","2.16.3-1","2.16.4-1ubuntu2"],"bundled":7},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.28.0-1ubuntu0.1~esm1"}]}],"versions":["2.16.9-0.1ubuntu1","2.16.11-0.1ubuntu1","2.16.11-0.3","2.28.0-1","2.28.0-1build1"],"bundled":7},{"source":"osv","ecosystem":"Ubuntu:Pro:24.04:LTS","package":"mbedtls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.28.8-1ubuntu0.1~esm1"}]}],"versions":["2.28.3-1","2.28.6-1ubuntu1","2.28.7-1ubuntu1","2.28.7-1.1ubuntu1","2.28.8-1"],"bundled":7}],"products":[{"vendor":"arm","product":"mbed_tls"},{"vendor":"debian","product":"debian_linux"},{"vendor":"trustedfirmware","product":"mbed_tls"}],"references":[{"url":"https://github.com/ARMmbed/mbedtls/releases","tags":["x_transferred","Release Notes","advisory","web","report"]},{"url":"https://tls.mbed.org/tech-updates/security-advisories/mbedtls-security-advisory-2021-12","tags":["x_transferred","Exploit","Mitigation","Third Party Advisory","evidence","web","advisory","report"]},{"url":"https://bugs.gentoo.org/829660","tags":["x_transferred","Issue Tracking","Mailing List","Third Party Advisory","report","web"]},{"url":"https://github.com/ARMmbed/mbedtls/releases/tag/v2.16.12","tags":["x_transferred","Release Notes","advisory","web","report"]},{"url":"https://github.com/ARMmbed/mbedtls/releases/tag/v2.28.0","tags":["x_transferred","Release Notes","advisory","web","report"]},{"url":"https://github.com/ARMmbed/mbedtls/releases/tag/v3.1.0","tags":["x_transferred","Release Notes","advisory","web","report"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/12/msg00036.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/06/msg00034.html","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-44732"},{"url":"https://github.com/advisories/GHSA-7g56-f7p4-fmcq"},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-44732","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-44732","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2022-0017.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=29866","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-44732","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-44732","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-8123-1","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-23775","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2025-27810","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2025-47917","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2025-48965","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2025-52496","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2025-52497","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-44732","description":"Mbed TLS before 3.0.1 has a double free in certain out-of-memory conditions, as demonstrated by an mbedtls_ssl_set_session() failure.","status":"published","published":"2021-12-20T00:00:00Z","modified":"2025-11-03T19:26:32.887Z","updated_at":"2026-11-02T14:33:01.166399Z"}],"euvd":[{"id":"EUVD-2021-31547","description":"Mbed TLS before 3.0.1 has a double free in certain out-of-memory conditions, as demonstrated by an mbedtls_ssl_set_session() failure.","status":"published","published":"2021-12-20T00:00:00Z","modified":"2025-11-03T19:26:32Z","updated_at":"2026-11-02T19:49:34.152725Z"}],"ghsa":[{"id":"GHSA-7g56-f7p4-fmcq","title":"Mbed TLS before 3.0.1 has a double free in certain out-of-memory conditions, as demonstrated by...","description":"Mbed TLS before 3.0.1 has a double free in certain out-of-memory conditions, as demonstrated by an mbedtls_ssl_set_session() failure.","status":"published","published":"2021-12-21T00:00:50Z","modified":"2025-11-03T21:30:37Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-415"],"updated_at":"2026-11-02T15:04:18.176646Z"}],"nvd":[{"id":"CVE-2021-44732","description":"Mbed TLS before 3.0.1 has a double free in certain out-of-memory conditions, as demonstrated by an mbedtls_ssl_set_session() failure.","status":"published","published":"2021-12-20T08:15:06.62Z","modified":"2026-06-17T04:12:46.6Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-415"],"updated_at":"2026-11-02T14:07:02.566991Z"}],"osv":[{"id":"ALPINE-CVE-2021-44732","description":"Mbed TLS before 3.0.1 has a double free in certain out-of-memory conditions, as demonstrated by an mbedtls_ssl_set_session() failure.","status":"published","published":"2021-12-20T08:15:06.62Z","modified":"2026-11-03T06:32:41.751207743Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-03T07:17:02.90744Z"},{"id":"CVE-2021-44732","description":"Mbed TLS before 3.0.1 has a double free in certain out-of-memory conditions, as demonstrated by an mbedtls_ssl_set_session() failure.","status":"published","published":"2021-12-20T08:15:06.62Z","modified":"2026-10-24T10:51:25.86569406Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:21.877444Z"},{"id":"DEBIAN-CVE-2021-44732","description":"Mbed TLS before 3.0.1 has a double free in certain out-of-memory conditions, as demonstrated by an mbedtls_ssl_set_session() failure.","status":"published","published":"2021-12-20T08:15:06.62Z","modified":"2026-10-23T18:04:50.074471996Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:35.799676Z"},{"id":"JLSEC-2025-214","title":"Mbed TLS before 3.0.1 has a double free in certain out-of-memory conditions, as demonstrated by an...","description":"Mbed TLS before 3.0.1 has a double free in certain out-of-memory conditions, as demonstrated by an `mbedtls_ssl_set_session()` failure.","status":"published","published":"2025-11-21T15:59:04.054Z","modified":"2026-07-23T22:30:19.664012552Z","cvss":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:47:17.805107Z"},{"id":"UBUNTU-CVE-2021-44732","description":"Mbed TLS before 3.0.1 has a double free in certain out-of-memory conditions, as demonstrated by an mbedtls_ssl_set_session() failure.","status":"published","published":"2021-12-20T08:15:00Z","modified":"2026-04-22T13:03:07.069984Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:29.220315Z"},{"id":"DLA-3249-1","title":"mbedtls - security update","status":"published","published":"2022-12-26T00:00:00Z","modified":"2026-03-09T01:22:32.743764Z","updated_at":"2026-11-02T15:46:11.734021Z"},{"id":"DLA-4236-1","title":"mbedtls - security update","status":"published","published":"2025-06-30T00:00:00Z","modified":"2026-03-09T02:10:22.793566Z","updated_at":"2026-11-02T15:46:12.7027Z"},{"id":"MGASA-2022-0017","title":"Updated mbedtls packages fix security vulnerability","description":"This update provides Mbed TLS 2.16.12, with a number of bug fixes and a\nsecurity fix.\nMbed TLS has a double free in certain out-of-memory conditions, as\ndemonstrated by an mbedtls_ssl_set_session() failure. (CVE-2021-44732)\n","status":"published","published":"2022-01-15T08:09:56Z","modified":"2026-04-16T04:40:34.17407298Z","updated_at":"2026-11-02T15:49:41.849028Z"},{"id":"USN-8123-1","title":"mbedtls vulnerabilities","description":"It was discovered that Mbed TLS incorrectly handled memory allocation\nfailures. A remote attacker could possibly use this issue to crash\nthe program. This issue only affected Ubuntu 18.04 LTS and Ubuntu\n20.04 LTS. (CVE-2021-44732)\n\nJonathan Winzig discovered that Mbed TLS incorrectly handled crafted\ninputs. A remote attacker could possibly use this issue to crash the\nprogram, resulting in a denial of service. This issue only affected\nUbuntu 18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 22.04 LTS. (CVE-2024-23775)\n\nIt was discovered that Mbed TLS incorrectly handled the TLS\nhandshake. A remote attacker could possibly use this issue to\nbreak the security guarantees of the TLS handshake.\n(CVE-2025-27810)\n\nLinh Le and Ngan Nguyen discovered that Mbed TLS incorrectly\ndocumented the behavior of a function. Application code relying\non the documented behavior might be affected. A remote attacker\ncould possibly use this issue to execute arbitrary code.\n(CVE-2025-47917)\n\nLinh Le and Ngan Nguyen discovered that Mbed TLS incorrectly handled\ncrafted input. A remote attacker could possibly use this issue to\ncrash the program, resulting in a denial of service. (CVE-2025-48965)\n\nIt was discovered that Mbed TLS incorrectly handled a race condition.\nAn attacker could possibly use this issue to extract AES keys.\n(CVE-2025-52496)\n\nLinh Le and Ngan Nguyen discovered that Mbed TLS incorrectly handled\ncertain invalid input. A remote attacker could possibly use this\nissue to crash the program, resulting in a denial of service.\n(CVE-2025-52497)","status":"published","published":"2026-03-25T16:22:11Z","modified":"2026-04-27T18:44:30.29713Z","updated_at":"2026-11-02T16:58:22.951676Z"}]}}
