From: Tom Rini Date: Wed, 11 Jul 2018 08:42:17 -0400 Subject: [U-Boot] [U-Boot, v2] vboot: Add FIT_SIGNATURE_MAX_SIZE protection In-Reply-To: <20180609113805.8c709218af029b48d4e750be@gmail.com> References: <20180609113805.8c709218af029b48d4e750be@gmail.com> Message-ID: <20180711124217.GV27264@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Jun 09, 2018 at 11:38:05AM -0400, Teddy Reed wrote: > This adds a new config value FIT_SIGNATURE_MAX_SIZE, which controls the > max size of a FIT header's totalsize field. The field is checked before > signature checks are applied to protect from reading past the intended > FIT regions. > > This field is not part of the vboot signature so it should be sanity > checked. If the field is corrupted then the structure or string region > reads may have unintended behavior, such as reading from device memory. > A default value of 256MB is set and intended to support most max storage > sizes. > > Suggested-by: Simon Glass > Signed-off-by: Teddy Reed > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: