Summary: | <dev-libs/libtommath-0.42.0: weakness in mp_prime_next_prime() | ||||||
---|---|---|---|---|---|---|---|
Product: | Gentoo Security | Reporter: | Mark Karpeles <mark> | ||||
Component: | Vulnerabilities | Assignee: | Gentoo Security <security> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | normal | CC: | jer, maintainer-needed | ||||
Priority: | High | ||||||
Version: | unspecified | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | B4 [noglsa] | ||||||
Package list: | Runtime testing required: | --- | |||||
Attachments: |
|
Description
Mark Karpeles
2010-07-15 12:08:18 UTC
Created attachment 238887 [details, diff]
Fix for mp_prime_next_prime() bug when checking generated prime
Update: mp_prime_next_prime() is used in net-misc/dropbear-0.52-r1 File dropbear-0.52/libtommath/bn_mp_prime_next_prime.c has been confirmed with the same bug. I will contact upstream for dropbear to notify about this bug and let them fix their bundled libtommath version. mp_prime_next_prime() called at: ./dropbear-0.52/gendss.c:83 (t=18) ./dropbear-0.52/genrsa.c:110 (t=8) The dropbear issue has been moved to bug 328409 Upstream has released libtommath-0.42.0 which fixes this issue. http://www.libtom.org/?page=download&newsitems=5&whatfile=ltm Download from: http://www.libtom.org/files/ltm-0.42.0.tar.bz2 http://www.libtom.org/files/ltm-0.42.0.tar.bz2.sig Note that upstream site which was down since ~2008 is now back. I added libtommath-0.42.0 to CVS which fixes the issue. (In reply to comment #5) > I added libtommath-0.42.0 to CVS which fixes the issue. Great, thank you, Tim. Arches, please test and mark stable: =dev-libs/libtommath-0.42.0 Target keywords : "amd64 arm hppa ppc ppc64 x86" amd64 ok. Anyway for be picky, in src_test, when a binary for test are generated, "-O?" is not respected. e.g. cc -march=native -O2 -g0 -I./ -Wall -W -Wshadow -Wsign-compare -O3 -funroll-loops -fomit-frame-pointer demo/demo.o libtommath.a -o test But it does not block obviously ;) x86 stable amd64: ok Stable for HPPA. arm stable amd64 done. Thanks Agostino and Ian ppc/ppc64 stable, last arch done Thanks, everyone. GLSA Vote: no. no too, and closing. |