[Bug other/89394] libiberty :stack overflow in nm

2020-05-07 Thread trupti_pardeshi at persistent dot co.in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89394

--- Comment #11 from Trupti Pardeshi  
---
(In reply to Nick Clifton from comment #10)
> (In reply to Trupti Pardeshi from comment #9)
> > May I know, in which version of binutils this fix is available?
> 
> 2.35.  Which should be available in August, all being well.
> 
> Cheers
>   Nick
> 
> PS.  The fix is already in the mainline development code, so you can always
> clone the repository and build your own toolchain.

Thank you so much Nick for reply. We rely on binutils released version which
will have fixes against CVEs. So, needed to confirm.

Thanks you so much.

[Bug other/89394] libiberty :stack overflow in nm

2020-05-06 Thread nickc at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89394

--- Comment #10 from Nick Clifton  ---
(In reply to Trupti Pardeshi from comment #9)
> May I know, in which version of binutils this fix is available?

2.35.  Which should be available in August, all being well.

Cheers
  Nick

PS.  The fix is already in the mainline development code, so you can always
clone the repository and build your own toolchain.

[Bug other/89394] libiberty :stack overflow in nm

2020-05-06 Thread trupti_pardeshi at persistent dot co.in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89394

Trupti Pardeshi  changed:

   What|Removed |Added

 CC||trupti_pardeshi@persistent.
   ||co.in

--- Comment #9 from Trupti Pardeshi  
---
May I know, in which version of binutils this fix is available?

Any heads up will be appreciated.

Best Regards,

[Bug other/89394] libiberty :stack overflow in nm

2019-04-10 Thread nickc at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89394

Nick Clifton  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #8 from Nick Clifton  ---
The patch has now been committed.

[Bug other/89394] libiberty :stack overflow in nm

2019-04-10 Thread nickc at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89394

--- Comment #7 from Nick Clifton  ---
Author: nickc
Date: Wed Apr 10 14:44:47 2019
New Revision: 270258

URL: https://gcc.gnu.org/viewcvs?rev=270258=gcc=rev
Log:
Fix a stack exhaustion bug in libiberty's demangler when decoding a
pathalogically constructed mangled name.

PR 89394
* cp-demangle.c (cplus_demangle_fill_name): Reject negative
lengths.
(d_count_templates_scopes): Replace num_templates and num_scopes
parameters with a struct d_print_info pointer parameter.  Adjust
body of the function accordingly.  Add recursion counter and check
that the recursion limit is not reached.
(d_print_init): Pass dpi parameter to d_count_templates_scopes.
Reset recursion counter afterwards, unless the recursion limit was
reached.

Modified:
trunk/libiberty/ChangeLog
trunk/libiberty/cp-demangle.c

[Bug other/89394] libiberty :stack overflow in nm

2019-03-21 Thread nickc at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89394

Nick Clifton  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2019-03-21
 CC||nickc at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #6 from Nick Clifton  ---
I have proposed a patch to fix this bug:

  https://gcc.gnu.org/ml/gcc-patches/2019-03/msg01048.html

[Bug other/89394] libiberty :stack overflow in nm

2019-03-04 Thread wcventure at 126 dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89394

--- Comment #5 from Cheng Wen  ---
So many similar cases and repetitive CVEs.

This problem has been fixed before, but it has not been completely fixed.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85122
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85452
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87335
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87636
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87675
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87681

[Bug other/89394] libiberty :stack overflow in nm

2019-03-04 Thread wcventure at 126 dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89394

Cheng Wen  changed:

   What|Removed |Added

 CC||wcventure at 126 dot com

--- Comment #4 from Cheng Wen  ---
This issue is similar to CVE-2018-18700 & CVE-2018-18701

[Bug other/89394] libiberty :stack overflow in nm

2019-02-28 Thread spinpx at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89394

--- Comment #3 from spinpx  ---
CVE-2019-9071

[Bug other/89394] libiberty :stack overflow in nm

2019-02-19 Thread spinpx at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89394

--- Comment #2 from spinpx  ---
It can be reproduced in bintuils commit
c72e75a64030b0f6535a80481f37968ad55c333a (Feb 19 2019)

[Bug other/89394] libiberty :stack overflow in nm

2019-02-18 Thread spinpx at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89394

--- Comment #1 from Peng Chen  ---
the code is from binutils:
https://github.com/bminor/binutils-gdb/tree/master/libiberty
git commit: 388a192d73df7439bf375d8b8042bb53a6be9c60