Inappropriate implementation in Media (CVE-2026-12450)
The reporter found that a security patch for an earlier Media bug used an inverted size comparison, checking that the input data size is greater than or equal to the span size instead of less than or equal to it. Because the check is wrong, a runtime assertion meant to guard the buffer could fail or pass incorrectly, so the original flaw may not be properly fixed.
- Fix shipped in 29 days
Steps to reproduce the problem
While backporting the patch for CVE-2026-7905 into our product, I found an issue in the patch at https://chromium-review.googlesource.com/c/chromium/src/+/7695435:
- DCHECK_GT(input.data_size(), 0u);
- DCHECK_GE(input.data_size(), input.data_->span().size());
+ // Safe to CHECK here since this is into Mojo not From mojo (and thus not
+ // untrusted input).
+ CHECK_GT(input.data_size(), 0u);
+ CHECK_GE(input.data_size(), input.data_->span().size());
Problem Description
For CHECK_GE(input.data_size(), input.data_->span().size());
This line asserts at runtime that the size of input's data (input.data_size()) is greater than or equal to the size of the memory span pointed to by input.data_. That should be a typo. The correct patch should be:
CHECK_LE(input.data_size(), input.data_->span().size());
Additional Comments
Zhixin Tu
Summary
Incorrect fix for CVE-2026-7905
Additional Data
Category: Security
Chrome Channel: Stable
Regression: N/A \
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the comparison operator in the new runtime check was inverted, so it validates the opposite size relationship from the one intended.
Impact
The incorrect check may fail to catch the out-of-bounds condition the original patch was meant to prevent, so the underlying Media vulnerability could remain exploitable.
What the attacker needed
Access to the Chromium source patch
The fix
The comparison should be changed to check that the data size is less than or equal to the span size, as the reporter suggests.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A patch is a code change meant to close a security hole. Here the change compares two sizes the wrong way round, so the safety check does not do what it was meant to do. The reporter is saying the fix itself is broken, which could leave the original problem open.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.