Skip to content

all: Merge go-ethereum v1.16.9#765

Merged
sebastianst merged 3 commits intooptimismfrom
nonsense/geth-v1.16.9
Feb 17, 2026
Merged

all: Merge go-ethereum v1.16.9#765
sebastianst merged 3 commits intooptimismfrom
nonsense/geth-v1.16.9

Conversation

@nonsense
Copy link
Copy Markdown
Contributor

No description provided.

fengjian and others added 3 commits February 17, 2026 17:30
Fix ECIES invalid-curve handling in RLPx handshake (reject invalid
ephemeral pubkeys early)
- Add curve validation in crypto/ecies.GenerateShared to reject invalid
public keys before ECDH.
- Update RLPx PoC test to assert invalid curve points fail with
ErrInvalidPublicKey.
 
Motivation / Context
RLPx handshake uses ECIES decryption on unauthenticated network input.
Prior to this change, an invalid-curve ephemeral public key would
proceed into ECDH and only fail at MAC verification, returning
ErrInvalidMessage. This allows an oracle on decrypt success/failure and
leaves the code path vulnerable to invalid-curve/small-subgroup attacks.
The fix enforces IsOnCurve validation up front.
@nonsense nonsense requested a review from a team as a code owner February 17, 2026 16:31
Copy link
Copy Markdown
Contributor

@joshklop joshklop left a comment

Choose a reason for hiding this comment

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

Verified with

jj new optimism v1.16.9
jj diff --from @ --to nonsense/geth-v1.16.9

@sebastianst sebastianst merged commit 0c840df into optimism Feb 17, 2026
11 of 12 checks passed
@sebastianst sebastianst deleted the nonsense/geth-v1.16.9 branch February 17, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants