CVE-2016-5259: Use After Free
Last updated 24 July 2024
Other sources
Security researcher Looben Yang discovered a use-after-free vulnerability when working with nested sync event loops in Service Workers. He discovered a mechanism where scripts can close their own worker, which will then trigger a synchronization XMLHttpRequest on this now closed and released worker. This results in a potentially exploitable crash when triggered.
External Reference:
https://www.mozilla.org/security/announce/2016/mfsa2016-73.html
Acknowledgements:
Name: the Mozilla project Upstream: Looben Yang
— Red Hat
Use-after-free vulnerability in the CanonicalizeXPCOMParticipant function in Mozilla Firefox before 48.0 and Firefox ESR 45.x before 45.3 allows remote attackers to execute arbitrary code via a script that closes its own Service Worker within a nested sync event loop.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/firefoxto a version that resolves this vulnerability.Fixed in 137.0.1-1 - Upgrade
Upgrade
debian/firefox-esrto a version that resolves this vulnerability.Fixed in 115.14.0esr-1~deb11u1Fixed in 128.9.0esr-1~deb11u1Fixed in 128.8.0esr-1~deb12u1Fixed in 128.9.0esr-1~deb12u1Fixed in 128.9.0esr-2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 48.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 45.3
Event History
Frequently Asked Questions
What is CVE-2016-5259?
CVE-2016-5259 is a use-after-free vulnerability in the CanonicalizeXPCOMParticipant function in Mozilla Firefox.
How does CVE-2016-5259 affect Mozilla Firefox?
CVE-2016-5259 allows remote attackers to execute arbitrary code via a script that closes its own Service Worker within a nested sync event loop.
What is the severity of CVE-2016-5259?
CVE-2016-5259 has a severity rating of 8.8 (High).
How can I fix CVE-2016-5259?
To fix CVE-2016-5259, you should update Mozilla Firefox to version 48.0 or later.
Where can I find more information about CVE-2016-5259?
You can find more information about CVE-2016-5259 on the CVE website (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-5259), the Mozilla security advisories (https://www.mozilla.org/en-US/security/advisories/mfsa2016-73/), and the Bugzilla entry (https://bugzilla.mozilla.org/show_bug.cgi?id=1282992).