mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] lib/digsig: fix some bugs in digsig
@ 2026-12-02 12:20 Dan Carpenter
  2026-12-02 12:20 ` [PATCH 1/3] lib/digsig: Fix error pointer dereference in digsig_verify_rsa() Dan Carpenter
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Dan Carpenter @ 2026-12-02 12:20 UTC (permalink / raw)
  To: Andrew Morton, Herbert Xu, Nicolai Stange, Mimi Zohar, Dmitry Kasatkin
  Cc: Karthik Bhargavan, Clément Blaudeau, linux-kernel,
	Dan Carpenter, stable

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>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-12-02 12:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-02 12:20 [PATCH 0/3] lib/digsig: fix some bugs in digsig Dan Carpenter
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

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®