Heap corruption in VBoxSVC.exe leading to crash (possible double free) (#18002)

Discussions related to using VirtualBox on Windows hosts.
Post Reply
idrassi
Posts: 3
Joined: 22. Sep 2018, 11:48
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: FreeBSD, Linux, Windows, Haiku

Heap corruption in VBoxSVC.exe leading to crash (possible double free) (#18002)

Post by idrassi »


ModEdit; related ticket: #18002: Heap corruption in VBoxSVC.exe leading to a crash (possibly due to double free)
i have encountered a crash of latest VBoxSVC.exe 5.2.18.24319 on a Windows 10 host while running two VMs in parallel (one Windows VM and one Linux VM). The crash happend while I was accessing internet resources from Linux VM.

I have collected a crash dump (minimal) which indicates that the crash is caused by a heap corruption in VBoxSVC.exe while calling free function from msvcr100.dll .So, this looks like a double-free issue in VBoxSVC.exe.

Usually such issue can be considered a security one since it wan be exploited so I don't know if I should post the crash dump to the public bug tracker or I should instead send it to Oracle security email address.

Thank you in advance for your advice.
Last edited by socratis on 22. Sep 2018, 17:36, edited 1 time in total.
Reason: Added ticket related information.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Heap corruption in VBoxSVC.exe leading to crash (possible double free)

Post by socratis »

It seems that you know your way around. ;)
Here however are the user forums, the first line of defense. I would go to the bug tracker and open a new ticket. The developers would then advice you what's the best course of action.

BTW, is this thing reproducible?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
idrassi
Posts: 3
Joined: 22. Sep 2018, 11:48
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: FreeBSD, Linux, Windows, Haiku

Re: Heap corruption in VBoxSVC.exe leading to crash (possible double free)

Post by idrassi »

Thank you for the suggestion. I will open a ticket on the bug tracker.

I could not find a way to reproduce this crash. I use VirtualBox quiet often and this is the first time I see this. Usually, I run 3 or 4 VMs at the same time but VBoxSVC never crashed but this time just with 2 VMs and no extensive CPU load (just internet browsing) and it crashed. I just hope it was not some kind of exploit!
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Heap corruption in VBoxSVC.exe leading to crash (possible double free)

Post by socratis »

idrassi wrote:I could not find a way to reproduce this crash
Then I wouldn't bother with a ticket. A one off crash, that can't be reproduced at will, is going to be hard to track down and fix, no?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
idrassi
Posts: 3
Joined: 22. Sep 2018, 11:48
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: FreeBSD, Linux, Windows, Haiku

Re: Heap corruption in VBoxSVC.exe leading to crash (possible double free)

Post by idrassi »

I think the developers will be able to locate the cause of the crash thanks to the crash dump I created.
Normally, If one has access to the debug symbols of the official VirtualBox build, then he can identify the functions and/or methods involved in freeing this specific memory location and from there he would analyze the code execution path to identify the weaknesses in the code that allowed this memory to be corrupted or double freed. At least, this is how I would have done it.

Anyway, I created a ticket in the bug tracker and I will see if there will be any response.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Heap corruption in VBoxSVC.exe leading to crash (possible double free) (#18002)

Post by socratis »

That's fine, I know just enough to be dangerous in any event... ;)
I linked the ticket and the discussion.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply