On Tue, 06 Oct 2026 16:39:17 +0530, Prasad Kummari wrote:

> Fix two memory issues in rsa_gen_key_prop():
> - Correct n[]/rr[] sizing to prevent out-of-bounds writes.
> - Reject all-zero modulus to prevent out-of-bounds reads.
> 
> Changes in v2:
>  - Patch 1: use DIV_ROUND_UP() instead of open-coded rounding for the
>    n[]/rr[] allocation sizes.
>  - Patch 2: new, addressing the num_bits == 0 case.
> 
> [...]

Applied to u-boot/main, thanks!

[1/2] rsa: fix undersized modulus buffers in rsa_gen_key_prop()
      commit: 0745fe3426e5c22e2a81257985982a129a891800
[2/2] rsa: reject zero-bit modulus in rsa_gen_key_prop()
      commit: d29cc201be9bfba3db5b18a71abb0b7052eaedb5
-- 
Tom


Reply via email to