Skip to content

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

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

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

Conversation

@rvagg

@rvaggrvagg commented Jun 15, 2018

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. v8.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.

CI of plinux was failed due to Jenkins error.
CI is again in https://ci.nodejs.org/job/node-test-pull-request/15483/.

@rvagg

Copy link
Copy Markdown
MemberAuthor

61063f3

@rvaggrvagg closed this Jun 18, 2018
@rvagg
rvagg deleted the rvagg/openssl-949ff366-8.x branch June 18, 2018 04:09
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.

5 participants

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