mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dan Carpenter <dan@pereq.eu>
To: Andrew Morton <akpm@linux-foundation.org>,
	 Herbert Xu <herbert@gondor.apana.org.au>,
	 Nicolai Stange <nicstange@gmail.com>,
	Mimi Zohar <zohar@us.ibm.com>,
	 Dmitry Kasatkin <dmitry.kasatkin@intel.com>
Cc: "Karthik Bhargavan" <karthik@pereq.eu>,
	"Clément Blaudeau" <clement@cryspen.com>,
	linux-kernel@vger.kernel.org, "Dan Carpenter" <dan@pereq.eu>,
	stable@vger.kernel.org
Subject: [PATCH 0/3] lib/digsig: fix some bugs in digsig
Date: Wed, 02 Dec 2026 15:20:27 +0300	[thread overview]
Message-ID: <20261202-digsig_send-v1-0-2797f094dac3@pereq.eu> (raw)

Pereq is doing formal verification work.  These are some bugs we found.

* Dereferencing an error pointer on the error path
* Not implementing the RFC correctly
* Allowing garbage bytes after a signature

Fixing the last two bugs is just about correctness and they don't
actually affect real life.

Signed-off-by: Dan Carpenter <dan@pereq.eu>
---
Dan Carpenter (3):
      lib/digsig: Fix error pointer dereference in digsig_verify_rsa()
      lib/digsig: Reject a signature larger than the modulus
      lib/digsig: Reject garbage bytes after the signature

 lib/digsig.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
base-commit: a9c48428cbd8d96b26f92631d0db6f8519c5fcc5
change-id: 20261202-digsig_send-1d579b20c1d2

Best regards,
--  
Dan Carpenter <dan@pereq.eu>


             reply	other threads:[~2026-12-02 12:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 12:20 Dan Carpenter [this message]
2026-12-02 12:20 ` [PATCH 1/3] lib/digsig: Fix error pointer dereference in digsig_verify_rsa() Dan Carpenter
2026-12-02 12:20 ` [PATCH 2/3] lib/digsig: Reject a signature larger than the modulus Dan Carpenter
2026-12-02 12:20 ` [PATCH 3/3] lib/digsig: Reject garbage bytes after the signature Dan Carpenter

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=20261202-digsig_send-v1-0-2797f094dac3@pereq.eu \
    --to=dan@pereq.eu \
    --cc=akpm@linux-foundation.org \
    --cc=clement@cryspen.com \
    --cc=dmitry.kasatkin@intel.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=karthik@pereq.eu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nicstange@gmail.com \
    --cc=stable@vger.kernel.org \
    --cc=zohar@us.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®