Skip to content

deps: float 949ff366 from openssl (ECDSA blinding) (6.x backport) - #21347

Closed
rvagg wants to merge 1 commit into
nodejs:v6.x-stagingfrom
rvagg:rvagg/openssl-949ff366-6.x
Closed

deps: float 949ff366 from openssl (ECDSA blinding) (6.x backport)#21347
rvagg wants to merge 1 commit into
nodejs:v6.x-stagingfrom
rvagg:rvagg/openssl-949ff366-6.x

Conversation

@rvagg

Copy link
Copy Markdown
Member

Same as #21345 but for 1.0.2 on 8.x.

Pending OpenSSL 1.0.2p release.

Ref: https://www.nccgroup.trust/us/our-research/technical-advisory-return-of-the-hidden-number-problem/
Ref: #21345
Upstream: openssl/openssl@949ff366

Original commit message:

Add blinding to an ECDSA signature
Keegan Ryan (NCC Group) has demonstrated a side channel attack on an
ECDSA signature operation. During signing the signer calculates:
s:= k^-1 * (m + r * priv_key) mod order
The addition operation above provides a sufficient signal for a
flush+reload attack to derive the private key given sufficient signature
operations.
As a mitigation (based on a suggestion from Keegan) we add blinding to
the operation so that:
s := k^-1 * blind^-1 (blind * m + blind * r * priv_key) mod order
Since this attack is a localhost side channel only no CVE is assigned.
Reviewed-by: Rich Salz <rsalz@openssl.org>

Pending OpenSSL 1.0.2p release.
Ref: https://www.nccgroup.trust/us/our-research/technical-advisory-return-of-the-hidden-number-problem/
Ref: nodejs#21345
Upstream: openssl/openssl@949ff366
Original commit message:
Add blinding to an ECDSA signature
Keegan Ryan (NCC Group) has demonstrated a side channel attack on an
ECDSA signature operation. During signing the signer calculates:
s:= k^-1 * (m + r * priv_key) mod order
The addition operation above provides a sufficient signal for a
flush+reload attack to derive the private key given sufficient signature
operations.
As a mitigation (based on a suggestion from Keegan) we add blinding to
the operation so that:
s := k^-1 * blind^-1 (blind * m + blind * r * priv_key) mod order
Since this attack is a localhost side channel only no CVE is assigned.
Reviewed-by: Rich Salz <rsalz@openssl.org>
@rvaggrvagg added openssl Issues and PRs related to the OpenSSL dependency. security Issues and PRs related to security. labels Jun 15, 2018
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-botnodejs-github-bot added openssl Issues and PRs related to the OpenSSL dependency. v6.x labels Jun 15, 2018

@shigekishigeki left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the linter error due to Makefile faults?

@refack

Copy link
Copy Markdown
Contributor

Is the linter error due to Makefile faults?

Due to changes in CI job config. It's being fixed.

@rvagg

Copy link
Copy Markdown
MemberAuthor

cc6827c

@rvaggrvagg closed this Jun 18, 2018
@rvagg
rvagg deleted the rvagg/openssl-949ff366-6.x branch June 18, 2018 04:17
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

opensslIssues and PRs related to the OpenSSL dependency.securityIssues and PRs related to security.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@rvagg@nodejs-github-bot@refack@bnoordhuis@jasnell@shigeki