Firefox · DOM
CVE-2026-2788
Logic Error in DOM
Overview
Medium
Severity
—
CVSS
No
Exploited ITW
Fixed
Fix Status
Changed Functions
| Function | Change | Notes |
|---|---|---|
ifdom/media/eme/clearkey/ClearKeyUtils.cpp |
modified |
Files Changed
dom/media/eme/clearkey/ClearKeyUtils.cpp
Patch
diff --git a/dom/media/eme/clearkey/ClearKeyUtils.cpp b/dom/media/eme/clearkey/ClearKeyUtils.cpp
index fb39433586d..d895d3e3721 100644
--- a/dom/media/eme/clearkey/ClearKeyUtils.cpp
+++ b/dom/media/eme/clearkey/ClearKeyUtils.cpp
@@ -188,8 +188,10 @@ bool ClearKeyUtils::DecryptCbcs(const vector<uint8_t>& aKey,
/* static */
bool ClearKeyUtils::DecryptAES(const vector<uint8_t>& aKey,
vector<uint8_t>& aData, vector<uint8_t>& aIV) {
- assert(aIV.size() == CENC_KEY_LEN);
- assert(aKey.size() == CENC_KEY_LEN);
+ if (aKey.size() != CENC_KEY_LEN || aIV.size() != CENC_KEY_LEN) {
+ CK_LOGE("Key and IV size should be 16!");
+ return false;
+ }
PK11SlotInfo* slot = PK11_GetInternalKeySlot();
if (!slot) {
Loading diff…
References
On This Page