Bug 965620 (CVE-2016-2195) - VUL-0: CVE-2016-2195: botan: various flaws fixed in 1.11.27 and 1.10.11
Summary: VUL-0: CVE-2016-2195: botan: various flaws fixed in 1.11.27 and 1.10.11
Status: RESOLVED FIXED
Alias: CVE-2016-2195
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/161643/
Whiteboard: CVSSv2:RedHat:CVE-2016-2194:6.8:(AV:N...
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-08 13:26 UTC by Sebastian Krahmer
Modified: 2019-05-01 17:02 UTC (History)
4 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Krahmer 2016-02-08 13:26:52 UTC
Quoting from RH BZ:

"2016-02-01 (CVE-2016-2195): Heap overflow on invalid ECC point

The PointGFp constructor did not check that the affine coordinate arguments were less than the prime, but then in curve multiplication assumed that both arguments if multiplied would fit into an integer twice the size of the prime.

The bigint_mul and bigint_sqr functions received the size of the output buffer, but only used it to dispatch to a faster algorithm in cases where there was sufficient output space to call an unrolled multiplication function.

The result is a heap overflow accessible via ECC point decoding, which accepted untrusted inputs. This is likely exploitable for remote code execution.

On systems which use the mlock pool allocator, it would allow an attacker to overwrite memory held in secure_vector objects. After this point the write will hit the guard page at the end of the mmap’ed region so it probably could not be used for code execution directly, but would allow overwriting adjacent key material.

Found by Alex Gaynor fuzzing with AFL

Introduced in 1.9.18, fixed in 1.11.27 and 1.10.11"


References:
https://bugzilla.redhat.com/show_bug.cgi?id=1305439
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-2194
Comment 1 Bernhard Wiedemann 2017-04-12 16:02:00 UTC
This is an autogenerated message for OBS integration:
This bug (965620) was mentioned in
https://build.opensuse.org/request/show/487622 Factory / Botan
Comment 3 Daniel Molkentin 2017-04-24 09:43:31 UTC
SLE12 submitted, SLE 11 unaffected, back to security team for processing.
Comment 4 Swamp Workflow Management 2017-05-09 16:10:52 UTC
SUSE-SU-2017:1222-1: An update that fixes 9 vulnerabilities is now available.

Category: security (moderate)
Bug References: 1013209,1033605,965620,965621,968025,968026,968030,974521,977420
CVE References: CVE-2014-9742,CVE-2015-5726,CVE-2015-5727,CVE-2015-7827,CVE-2016-2194,CVE-2016-2195,CVE-2016-2849,CVE-2016-9132,CVE-2017-2801
Sources used:
SUSE Linux Enterprise Software Development Kit 12-SP2 (src):    Botan-1.10.9-3.1
SUSE Linux Enterprise Software Development Kit 12-SP1 (src):    Botan-1.10.9-3.1
Comment 5 Marcus Meissner 2017-06-20 11:38:42 UTC
released