High severityCISA KEVNVD Advisory· Published Sep 28, 2023· Updated Oct 21, 2025
CVE-2023-5217
CVE-2023-5217
Description
Heap buffer overflow in vp8 encoding in libvpx in Google Chrome prior to 117.0.5938.132 and libvpx 1.13.1 allowed a remote attacker to potentially exploit heap corruption via a crafted HTML page. (Chromium security severity: High)
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
electronnpm | < 22.3.25 | 22.3.25 |
electronnpm | >= 24.0.0, < 24.8.5 | 24.8.5 |
electronnpm | >= 25.0.0, < 25.8.4 | 25.8.4 |
electronnpm | >= 26.0.0, < 26.2.4 | 26.2.4 |
electronnpm | >= 27.0.0-alpha.1, < 27.0.0-beta.8 | 27.0.0-beta.8 |
Affected products
2- Google/libvpxv5Range: 1.13.1
Patches
23fbd1dca6a4dVP8: disallow thread count changes
2 files changed · +5 −4
test/encode_api_test.cc+0 −4 modified@@ -370,10 +370,6 @@ TEST(EncodeAPI, ConfigResizeChangeThreadCount) { for (const auto *iface : kCodecIfaces) { SCOPED_TRACE(vpx_codec_iface_name(iface)); - if (!IsVP9(iface)) { - GTEST_SKIP() << "TODO(https://crbug.com/1486441) remove this condition " - "after VP8 is fixed."; - } for (int i = 0; i < (IsVP9(iface) ? 2 : 1); ++i) { vpx_codec_enc_cfg_t cfg = {}; struct Encoder {
vp8/encoder/onyx_if.c+5 −0 modified@@ -1447,6 +1447,11 @@ void vp8_change_config(VP8_COMP *cpi, VP8_CONFIG *oxcf) { last_h = cpi->oxcf.Height; prev_number_of_layers = cpi->oxcf.number_of_layers; + if (cpi->initial_width) { + // TODO(https://crbug.com/1486441): Allow changing thread counts; the + // allocation is done once in vp8_create_compressor(). + oxcf->multi_threaded = cpi->oxcf.multi_threaded; + } cpi->oxcf = *oxcf; switch (cpi->oxcf.Mode) {
af6dedd715f4encode_api_test: add ConfigResizeChangeThreadCount
1 file changed · +49 −1
test/encode_api_test.cc+49 −1 modified@@ -308,7 +308,6 @@ TEST(EncodeAPI, SetRoi) { void InitCodec(const vpx_codec_iface_t &iface, int width, int height, vpx_codec_ctx_t *enc, vpx_codec_enc_cfg_t *cfg) { - ASSERT_EQ(vpx_codec_enc_config_default(&iface, cfg, 0), VPX_CODEC_OK); cfg->g_w = width; cfg->g_h = height; cfg->g_lag_in_frames = 0; @@ -346,6 +345,7 @@ TEST(EncodeAPI, ConfigChangeThreadCount) { vpx_codec_ctx_t ctx = {}; } enc; + ASSERT_EQ(vpx_codec_enc_config_default(iface, &cfg, 0), VPX_CODEC_OK); EXPECT_NO_FATAL_FAILURE( InitCodec(*iface, kWidth, kHeight, &enc.ctx, &cfg)); if (IsVP9(iface)) { @@ -364,6 +364,54 @@ TEST(EncodeAPI, ConfigChangeThreadCount) { } } +TEST(EncodeAPI, ConfigResizeChangeThreadCount) { + constexpr int kInitWidth = 1024; + constexpr int kInitHeight = 1024; + + for (const auto *iface : kCodecIfaces) { + SCOPED_TRACE(vpx_codec_iface_name(iface)); + if (!IsVP9(iface)) { + GTEST_SKIP() << "TODO(https://crbug.com/1486441) remove this condition " + "after VP8 is fixed."; + } + for (int i = 0; i < (IsVP9(iface) ? 2 : 1); ++i) { + vpx_codec_enc_cfg_t cfg = {}; + struct Encoder { + ~Encoder() { EXPECT_EQ(vpx_codec_destroy(&ctx), VPX_CODEC_OK); } + vpx_codec_ctx_t ctx = {}; + } enc; + + ASSERT_EQ(vpx_codec_enc_config_default(iface, &cfg, 0), VPX_CODEC_OK); + // Start in threaded mode to ensure resolution and thread related + // allocations are updated correctly across changes in resolution and + // thread counts. See https://crbug.com/1486441. + cfg.g_threads = 4; + EXPECT_NO_FATAL_FAILURE( + InitCodec(*iface, kInitWidth, kInitHeight, &enc.ctx, &cfg)); + if (IsVP9(iface)) { + EXPECT_EQ(vpx_codec_control_(&enc.ctx, VP9E_SET_TILE_COLUMNS, 6), + VPX_CODEC_OK); + EXPECT_EQ(vpx_codec_control_(&enc.ctx, VP9E_SET_ROW_MT, i), + VPX_CODEC_OK); + } + + cfg.g_w = 1000; + cfg.g_h = 608; + EXPECT_EQ(vpx_codec_enc_config_set(&enc.ctx, &cfg), VPX_CODEC_OK) + << vpx_codec_error_detail(&enc.ctx); + + cfg.g_w = 16; + cfg.g_h = 720; + + for (const auto threads : { 1, 4, 8, 6, 2, 1 }) { + cfg.g_threads = threads; + EXPECT_NO_FATAL_FAILURE(EncodeWithConfig(cfg, &enc.ctx)) + << "iteration: " << i << " threads: " << threads; + } + } + } +} + #if CONFIG_VP9_ENCODER class EncodeApiGetTplStatsTest : public ::libvpx_test::EncoderTest,
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
73- github.com/advisories/GHSA-qqvq-6xgj-jw8gghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2023-5217ghsaADVISORY
- seclists.org/fulldisclosure/2023/Oct/12ghsaWEB
- seclists.org/fulldisclosure/2023/Oct/16ghsaWEB
- www.openwall.com/lists/oss-security/2023/09/28/5ghsaWEB
- www.openwall.com/lists/oss-security/2023/09/28/6ghsaWEB
- www.openwall.com/lists/oss-security/2023/09/29/1ghsaWEB
- www.openwall.com/lists/oss-security/2023/09/29/11ghsaWEB
- www.openwall.com/lists/oss-security/2023/09/29/12ghsaWEB
- www.openwall.com/lists/oss-security/2023/09/29/14ghsaWEB
- www.openwall.com/lists/oss-security/2023/09/29/2ghsaWEB
- www.openwall.com/lists/oss-security/2023/09/29/7ghsaWEB
- www.openwall.com/lists/oss-security/2023/09/29/9ghsaWEB
- www.openwall.com/lists/oss-security/2023/09/30/1ghsaWEB
- www.openwall.com/lists/oss-security/2023/09/30/2ghsaWEB
- www.openwall.com/lists/oss-security/2023/09/30/3ghsaWEB
- www.openwall.com/lists/oss-security/2023/09/30/4ghsaWEB
- www.openwall.com/lists/oss-security/2023/09/30/5ghsaWEB
- www.openwall.com/lists/oss-security/2023/10/01/1ghsaWEB
- www.openwall.com/lists/oss-security/2023/10/01/2ghsaWEB
- www.openwall.com/lists/oss-security/2023/10/01/5ghsaWEB
- www.openwall.com/lists/oss-security/2023/10/02/6ghsaWEB
- www.openwall.com/lists/oss-security/2023/10/03/11ghsaWEB
- arstechnica.com/security/2023/09/new-0-day-in-chrome-and-firefox-is-likely-to-plague-other-softwareghsaWEB
- bugzilla.redhat.com/show_bug.cgighsaWEB
- chromereleases.googleblog.com/2023/09/stable-channel-update-for-desktop_27.htmlghsaWEB
- crbug.com/1486441ghsaWEB
- github.com/electron/electron/pull/40022ghsaWEB
- github.com/electron/electron/pull/40023ghsaWEB
- github.com/electron/electron/pull/40024ghsaWEB
- github.com/electron/electron/pull/40025ghsaWEB
- github.com/electron/electron/pull/40026ghsaWEB
- github.com/electron/electron/releases/tag/v22.3.25ghsaWEB
- github.com/electron/electron/releases/tag/v24.8.5ghsaWEB
- github.com/electron/electron/releases/tag/v25.8.4ghsaWEB
- github.com/electron/electron/releases/tag/v26.2.4ghsaWEB
- github.com/electron/electron/releases/tag/v27.0.0-beta.8ghsaWEB
- github.com/webmproject/libvpx/commit/3fbd1dca6a4d2dad332a2110d646e4ffef36d590ghsaWEB
- github.com/webmproject/libvpx/commit/af6dedd715f4307669366944cca6e0417b290282ghsaWEB
- github.com/webmproject/libvpx/releases/tag/v1.13.1ghsaWEB
- lists.debian.org/debian-lts-announce/2023/09/msg00038.htmlghsaWEB
- lists.debian.org/debian-lts-announce/2023/10/msg00001.htmlghsaWEB
- lists.debian.org/debian-lts-announce/2023/10/msg00015.htmlghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4MFWDFJSSIFKWKNOCTQCFUNZWAXUCSS4ghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/55YVCZNAVY3Y5E4DWPWMX2SPKZ2E5SOVghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AY642Z6JZODQJE7Z62CFREVUHEGCXGPDghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BCVSHVX2RFBU3RMCUFSATVQEJUFD4Q63ghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CWEJYS5NC7KVFYU3OAMPKQDYN6JQGVK6ghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TE7F54W5O5RS4ZMAAC7YK3CZWQXIDSKBghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WTRUIS3564P7ZLM2S2IH4Y4KZ327LI4IghsaWEB
- pastebin.com/TdkC4pDvghsaWEB
- security-tracker.debian.org/tracker/CVE-2023-5217ghsaWEB
- security.gentoo.org/glsa/202310-04ghsaWEB
- security.gentoo.org/glsa/202401-34ghsaWEB
- stackdiary.com/google-discloses-a-webm-vp8-bug-tracked-as-cve-2023-5217ghsaWEB
- support.apple.com/kb/HT213961ghsaWEB
- support.apple.com/kb/HT213972ghsaWEB
- twitter.com/maddiestone/status/1707163313711497266ghsaWEB
- www.debian.org/security/2023/dsa-5508ghsaWEB
- www.debian.org/security/2023/dsa-5509ghsaWEB
- www.debian.org/security/2023/dsa-5510ghsaWEB
- www.mozilla.org/en-US/security/advisories/mfsa2023-44ghsaWEB
- www.openwall.com/lists/oss-security/2023/09/28/5ghsaWEB
- arstechnica.com/security/2023/09/new-0-day-in-chrome-and-firefox-is-likely-to-plague-other-software/mitre
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4MFWDFJSSIFKWKNOCTQCFUNZWAXUCSS4/mitre
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/55YVCZNAVY3Y5E4DWPWMX2SPKZ2E5SOV/mitre
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AY642Z6JZODQJE7Z62CFREVUHEGCXGPD/mitre
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BCVSHVX2RFBU3RMCUFSATVQEJUFD4Q63/mitre
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CWEJYS5NC7KVFYU3OAMPKQDYN6JQGVK6/mitre
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TE7F54W5O5RS4ZMAAC7YK3CZWQXIDSKB/mitre
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WTRUIS3564P7ZLM2S2IH4Y4KZ327LI4I/mitre
- stackdiary.com/google-discloses-a-webm-vp8-bug-tracked-as-cve-2023-5217/mitre
- www.mozilla.org/en-US/security/advisories/mfsa2023-44/mitre
News mentions
0No linked articles in our index yet.