VDB

CVE-2021-3697

CVE-2021-3697 PUBLISHED

Reported by redhat · Published July 6, 2022

A crafted JPEG image may lead the JPEG reader to underflow its data pointer, allowing user-controlled data to be written in heap. To a successful to be performed the attacker needs to perform some triage over the heap layout and craft an image with a malicious format and payload. This vulnerability can lead to data corruption and eventual code execution or secure boot circumvention. This flaw affects grub2 versions prior grub-2.12.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
grub2-tools-extraAmazon Linux1:2.06-61.amzn2023.0.3, 1:2.06-14.amzn2
grub2-pc-modulesAmazon Linux1:2.06-61.amzn2023.0.3, 1:2.06-14.amzn2
grub2-efi-x64-modulesAmazon Linux1:2.06-61.amzn2023.0.3, 1:2.06-14.amzn2
grub2-efi-x64-ec2Amazon Linux1:2.06-61.amzn2023.0.3, 1:2.06-14.amzn2
grub2-emu-modulesAmazon Linux1:2.06-61.amzn2023.0.3, 1:2.06-14.amzn2
grub2-efi-x64-cdbootAmazon Linux1:2.06-61.amzn2023.0.3, 1:2.06-14.amzn2
grub2-pcAmazon Linux1:2.06-61.amzn2023.0.3, 1:2.06-14.amzn2
grub2-commonAmazon Linux1:2.06-14.amzn2
grub2-efi-aa64-ec2Amazon Linux1:2.06-61.amzn2023.0.3
grubAlpine2.06-r8, 2.06-r3, 2.06-r13, 2.06-r12
grub2-efi-aa64-cdbootAmazon Linux1:2.06-61.amzn2023.0.3, 1:2.06-14.amzn2
grub2-emuAmazon Linux1:2.06-61.amzn2023.0.3, 1:2.06-14.amzn2

4 more packages have a fixed version. See every fix in Lookup.

Affected products

VendorProductVersions
n/agrub2grub-2.06
amazon:2grub2-tools-extra0
amazon:2023grub2-pc-modules0
amazon:2grub2-pc-modules0
amazon:2023grub2-efi-x64-modules0
amazon:2grub2-efi-x64-ec20
amazon:2grub2-emu-modules0
amazon:2023grub2-efi-x64-cdboot0
amazon:2023grub2-pc0
amazon:2grub2-common0
amazon:2023grub2-efi-aa64-ec20
amazon:2023grub2-emu-modules0
amazon:2grub2-efi-x64-modules0
amazon:2023grub2-efi-x64-ec20
alpinegrub0, 0, 0
amazon:2grub2-efi-aa64-cdboot0
amazon:2023grub2-emu0
amazon:2grub2-emu0
amazon:2grub2-pc0
amazon:2023grub2-efi-aa64-cdboot0

…and 19 more

Timeline

  • Jun 7, 2022 CVE Published
  • Jul 7, 2022 EPSS Score (30 in total, the first dated here)
  • Nov 21, 2024 CVE Updated
  • Feb 13, 2025 PoC Published (2 in total, the first dated here)
  • Mar 10, 2026 Security Advisory (25 in total, the first dated here)
  • Mar 17, 2026 Distribution Patch (22 in total, the first dated here)
  • Jul 27, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-3697
vulnetix vdb fixes CVE-2021-3697

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-3697/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

  • x_refsource_MISC
  • GLSA-202209-12 vendor-advisoryx_refsource_GENTOO
  • x_refsource_CONFIRM
Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›