Firefox · Core
CVE-2026-4689
Integer Overflow in Core
Overview
High
Severity
—
CVSS
No
Exploited ITW
Fixed
Fix Status
Changed Functions
| Function | Change | Notes |
|---|---|---|
ifxpcom/io/SlicedInputStream.cpp |
modified |
Files Changed
xpcom/io/SlicedInputStream.cpp
Patch
diff --git a/xpcom/io/SlicedInputStream.cpp b/xpcom/io/SlicedInputStream.cpp
index c64af8e9dd8..185990a08de 100644
--- a/xpcom/io/SlicedInputStream.cpp
+++ b/xpcom/io/SlicedInputStream.cpp
@@ -491,6 +491,14 @@ bool SlicedInputStream::Deserialize(
const SlicedInputStreamParams& params = aParams.get_SlicedInputStreamParams();
+ auto end = CheckedUint64(params.start()) + params.length();
+ if (!end.isValid()) {
+ return false;
+ }
+ if (params.curPos() > end.value()) {
+ return false;
+ }
+
nsCOMPtr<nsIInputStream> stream =
InputStreamHelper::DeserializeInputStream(params.stream());
if (!stream) {
Loading diff…
References
On This Page