Use-after-free in FilePicker

Bug #1441777 reported by Chris Coulson
258
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Oxide
Fix Released
High
Olivier Tilloy
1.6
Fix Released
High
Olivier Tilloy
oxide-qt (Ubuntu)
Fix Released
High
Unassigned

Bug Description

The oxide::FilePicker class contains a pointer to the RenderViewHost that the picker is associated with. It is also a WebContentsObserver and implements WebContentsObserver::RenderViewDeleted with the intention of nulling out the RenderViewHost pointer when it's deleted.

However, unless I've missed something, it doesn't look like it calls WebContentsObserver::Observe or pass the associated WebContents to the WebContentsObserver constructor in order to attach itself and receive notifications.

The consequence of this is that RenderViewHost can be deleted (eg, by a process swap on navigation), leaving FilePicker with a dangling pointer which results in a potentially exploitable use-after-free.

Changed in oxide:
importance: Undecided → High
status: New → Triaged
Olivier Tilloy (osomon)
Changed in oxide:
assignee: nobody → Olivier Tilloy (osomon)
Olivier Tilloy (osomon)
Changed in oxide:
status: Triaged → In Progress
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

This is CVE-2015-1321

Changed in oxide:
milestone: none → branch-1.7
Olivier Tilloy (osomon)
Changed in oxide:
status: In Progress → Fix Released
Changed in oxide-qt (Ubuntu):
status: New → Triaged
importance: Undecided → High
Olivier Tilloy (osomon)
Changed in oxide-qt (Ubuntu):
status: Triaged → Fix Released
information type: Private Security → Public Security
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.