Re: vulnerability use-after-free

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 13 May 2015, 慕冬亮 wrote:

> Use-after-free is a important vulnerability ! As far as we know , Linux kernel is mostly using C and there may exist this vulnerability! I think in the kernel there
> are much allocator and reallocator , how do the kernel manage these things?mudongliang
> 
> 
Most of the time "struct kobject" is used to count references to that object.
Also, there are functions _get() and _put() that increase/decrease reference
count. So if the reference count ever becomes equal to 0 we know that we can
free() it and no one references it anymore.

More reading on this in LDD3:
https://lwn.net/images/pdf/LDD3/ch14.pdf

Su pagarba / Regards,
Giedrius
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux