public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/18096] New: null deref in wordexp/parse_dollars/parse_arith
@ 2015-03-09 15:31 konstantin.s.serebryany at gmail dot com
  2015-03-09 16:24 ` [Bug libc/18096] " konstantin.s.serebryany at gmail dot com
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: konstantin.s.serebryany at gmail dot com @ 2015-03-09 15:31 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18096

            Bug ID: 18096
           Summary: null deref in wordexp/parse_dollars/parse_arith
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: konstantin.s.serebryany at gmail dot com
                CC: drepper.fsp at gmail dot com

#include <wordexp.h>
#include <string.h>
int main() {
  char *p = strdup("$[]");
  wordexp_t w;
  wordexp(p, &w, 0);
}

gcc we5.c && ./a.out 

    #0 0x7fe40ab0d3ae in parse_arith
/build/buildd/eglibc-2.19/posix/wordexp.c:774
    #1 0x7fe40ab0b123 in parse_dollars
/build/buildd/eglibc-2.19/posix/wordexp.c:2096
    #2 0x7fe40ab0dfeb in wordexp /build/buildd/eglibc-2.19/posix/wordexp.c:2348

2.19 and fresh trunk are affected.
Same fuzzer, see https://sourceware.org/glibc/wiki/FuzzingLibc

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-03-28 13:59 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-09 15:31 [Bug libc/18096] New: null deref in wordexp/parse_dollars/parse_arith konstantin.s.serebryany at gmail dot com
2015-03-09 16:24 ` [Bug libc/18096] " konstantin.s.serebryany at gmail dot com
2015-03-09 18:56 ` konstantin.s.serebryany at gmail dot com
2015-03-11  6:44 ` carlos at redhat dot com
2015-03-11  8:57 ` schwab@linux-m68k.org
2015-03-11 13:45 ` carlos at redhat dot com
2015-03-11 14:03 ` schwab@linux-m68k.org
2015-03-11 16:12 ` konstantin.s.serebryany at gmail dot com
2015-03-11 16:20 ` carlos at redhat dot com
2015-03-11 16:34 ` carlos at redhat dot com
2015-03-11 22:23 ` bugdal at aerifal dot cx
2015-03-19 15:09 ` fweimer at redhat dot com
2015-07-12  7:44 ` neleai at seznam dot cz
2015-07-21 10:10 ` fweimer at redhat dot com
2015-08-27 22:26 ` [Bug glob/18096] " jsm28 at gcc dot gnu.org
2023-03-28 13:59 ` adhemerval.zanella at linaro dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).