Skip to content

Fix CVE-2018-18440 and CVE-2018-18439

Tom Rini u-boot 4 versions – New

Get series with b4
b4 am 20190114225455.GU5463@bill-the-cat

Versions newest first · linked by author and title

  1. v10 Latest10 patches 0 repliesNew
  2. v5 posting 3/30 of 9 patches 0 repliesSuperseded
  3. v5 posting 2/30 of 9 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v5 posting 1/30 of 9 patches0 repliesSuperseded

Patches in v10 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10test: add test for lib/lmb.c+0 -00 replies
2/10lmb: fix allocation at end of address range+0 -00 replies
3/10lib: lmb: reserving overlapping regions should fail+0 -00 replies
4/10fdt: parse "reserved-memory" for memory reservation+0 -02 replies
5/10lib: lmb: extend lmb for checks at load time+0 -01 reply
5/10lib: lmb: extend lmb for checks at load time+0 -00 replies
6/10fs: prevent overwriting reserved memory+0 -00 replies
7/10bootm: use new common function lmb_init_and_reserve+0 -00 replies
8/10lmb: remove unused extern declaration+0 -00 replies
9/10tftp: prevent overwriting reserved memory+0 -00 replies
9/10tftp: prevent overwriting reserved memory+0 -01 reply
10/10arm: bootm: fix sp detection at end of address range+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v10 yet.

Read the v10 thread

Cover letter [U-Boot] [PATCH v10 00/10] Fix CVE-2018-18440 and CVE-2018-18439
Quoted 9 lines · Simon Goldschmidt

This series fixes CVE-2018-18440 ("insufficient boundary checks in filesystem image load") by adding restrictions to the 'load' command and fixes CVE-2018-18439 ("insufficient boundary checks in network image boot") by adding restrictions to the tftp code. The functions from lmb.c are used to setup regions of allowed and reserved memory. Then, the file size to load is checked against these addresses and loading the file is aborted if it would overwrite reserved memory.

Quoted 3 lines

The memory reservation code is reused from bootm/image. Changes in v10:
- added acked-by and reviewed-by tags

Note that patchwork collects these automatically and we don't need to re-post things just for tags. Was anything else changed? Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190114/2f1d24e0/attachment.sig>