From: Thorsten Blum <blum@kernel.org>
To: Ryan Prinz <rc4d5a@protonmail.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>,
"David S . Miller" <davem@davemloft.net>,
linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v5] crypto: atmel-ecc - fix missing ECDH public key validation
Date: Tue, 1 Dec 2026 12:31:16 +0100 [thread overview]
Message-ID: <aw6wBOW7dJPUa45S@kernel.org> (raw)
In-Reply-To: <20261130124327.200984-1-rc4d5a@protonmail.com>
On Mon, Nov 30, 2026 at 12:43:51PM +0000, Ryan Prinz wrote:
> atmel_ecdh_compute_shared_secret() passes the peer's ECDH public point
> to the ATECC508A/608A/608B secure element without software validation;
> only req->src_len is checked.
>
> Validate the point in software before it reaches the I2C command, the
> same check crypto_ecdh_shared_secret() performs for the generic
> "ecdh-nist-p256" implementation: call ecc_is_pubkey_valid_partial()
> and reject the request if it fails.
>
> Fixes: 11105693fa05 ("crypto: atmel-ecc - introduce Microchip / Atmel ECC driver")
> Signed-off-by: Ryan Prinz <rc4d5a@protonmail.com>
The software validation looks good to me.
Reviewed-by: Thorsten Blum <blum@kernel.org>
Herbert, since hardware validation of the public key remains unknown,
would you keep the Fixes: tag or treat this as hardening?
Thanks,
Thorsten
prev parent reply other threads:[~2026-12-01 11:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 12:43 [PATCH v5] crypto: atmel-ecc - fix missing ECDH public key validation Ryan Prinz
2026-12-01 11:31 ` Thorsten Blum [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aw6wBOW7dJPUa45S@kernel.org \
--to=blum@kernel.org \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rc4d5a@protonmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.