Error reporting methods in SpiderMonkey could have triggered an Out of Memory Exception
Mozilla Firefox · Mozilla Firefox ESR · Mozilla Thunderbird
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Mozilla Firefox |
| No fix yet |
| Mozilla Firefox ESR |
| No fix yet |
| Mozilla Thunderbird |
| No fix yet |
Original description
When calling `JS::CheckRegExpSyntax` a Syntax Error could have been set which would end in calling `convertToRuntimeErrorAndClear`. A path in the function could attempt to allocate memory when none is available which would have caused a newly created Out of Memory exception to be mishandled as a Syntax Error. This vulnerability affects Firefox < 117, Firefox ESR < 115.2, and Thunderbird < 115.2.