Details

[Home]

Issue of the Implementation # K0008

Brief

(Guest Additions) Possible memory leak in sf_follow_link

Detailed Description

There is a memory leak possible in sf_follow_link() function in vboxsf module (src/VBox/Additions/linux/sharedfolders/lnkops.c).

The page allocated there via get_zeroed_page(GFP_KERNEL) will never be freed if vboxReadLink() fails. This happens, for example, when the shared folder contains an NTFS symlink (a junction/reparse point, to be exact) to a directory and one tries to list the contents of that directory from the guest or just cd to it via the link.

Neither vboxReadLink() nor sf_follow_link() free that page, so it remains allocated and the pointer to it is lost when sf_follow_link() ends.

Component

VirtualBox 4.0.2

References

Problems found by KEDR

Accepted

VirtualBox bug tracker, ticket #8185

Status

Fixed in VirtualBox 4.0.4

[Home]