]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[nbi] Avoid harmless integer overflows in image length checks 1783/head
authorMichael Brown <mcb30@ipxe.org>
Mon, 3 Aug 2026 11:24:08 +0000 (12:24 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 3 Aug 2026 11:24:08 +0000 (12:24 +0100)
commit979c86f41201615df673ca051983618833396e9f
treec2d461593864b31ca177d2990c8039957e84f9a7
parent3a7e42d8e3065fd0a751a0177521073429ec3db1
[nbi] Avoid harmless integer overflows in image length checks

Fix the checks against reading beyond the image length when executing
an NBI image.

This change has absolutely no security impact: an NBI image will
obtain control of the system in ring 0 anyway, and so a "malicious"
NBI image with malformed length fields cannot do anything that it
would not already be able to do simply by being executed.  However,
fixing these harmless integer overflows costs very little and reduces
unwanted noise from security reviewers.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/image/nbi.c