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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bugreports at internot dot info
New email:
PHP Version: OS:

 

 [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-2021 The PHP Group
All rights reserved.
Last updated: Mon Nov 29 21:03:45 2021 UTC