Skip to content

Support fuzzing grub's image file parsers

Daniel Axtens grub-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6configure.ac: detect if compiler supports -fsanitize=fuzzerconfigure.ac+32 -00 replies
2/6bitmap.h: set smaller image size limit when fuzzinginclude/grub/bitmap.h+4 -00 replies
3/6tests: create a fuzzer for the png image format.gitignore Makefile.util.def grub-core/tests/fuzz/imageXX.c +1 more+157 -00 replies
4/6tests: create a fuzzer for the jpeg image format.gitignore Makefile.util.def grub-core/tests/fuzz/jpeg.c+25 -00 replies
5/6tests: create a fuzzer for the tga image format.gitignore Makefile.util.def grub-core/tests/fuzz/tga.c+25 -00 replies
6/6docs: document fuzzer supportdocs/grub-dev.texi+20 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/6] Support fuzzing grub's image file parsers

This is a cleaned up version of the fuzzers that I used to find CVE-2021-3695, CVE-2021-3696 and CVE-2021-3697.

We're releasing this now because the techniques are not novel, the code is not hard to independently replicate, and it's hard to see what is gained by not releasing them. (I should add that the grub security working group has been supportive of this for some time - any and all responsibility for the delay in getting this posted rests with me.)

Obivously the techniques here are extensible and I'd be very happy to see people add more fuzzers to increase coverage based on this infrastructure.

Kind regards,
Daniel