php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68720 use-after-free
Submitted: 2015-01-02 08:57 UTC Modified: 2015-01-03 05:34 UTC
From: bugreports at internot dot info Assigned:
Status: Not a bug Package: XMLRPC-EPI related
PHP Version: 5.4Git-2015-01-02 (Git) OS: Linux Ubuntu 14.04
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
43 - 20 = ?
Subscribe to this entry?

 
 [2015-01-02 08:57 UTC] bugreports at internot dot info
Description:
------------
Hi,

In /ext/xmlrpc/libxmlrpc/queue.c a use-after-free occurs:


542   free(iter);
[..]

547   if (q->cursor == (node*)iter) {


Thanks,


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-03 05:34 UTC] stas@php.net
-Status: Open +Status: Not a bug -Type: Security +Type: Bug
 [2015-01-03 05:34 UTC] stas@php.net
It's not really use after free, since iter is never dereferenced, it is just compared to another pointer. As far as I can see, there's nothing dangerous in comparing pointer to pointer, even if the memory under that pointer was deallocated.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 16:01:29 2024 UTC