The Patching Friars' AlmanacA calendar of CVE saints

Patron of December 4

GarlicRustHoly card for garlicrust, generated with AI (Claude, Anthropic) for the Lunario dei Frati Patchatori.CC BY-NC-SA 4.0 0x4b GarlicRust ALLIUM LOQUAX
🤖 Image and text generated with AI

⬇ Download holy card: ·

Embed on your site

Saint GarlicRust, the Clove That Bleeds Memory

Patron of anonymous networks, onion and garlic routing, and length fields checked too late.

Life

On 4 December 2017 Eyal Itkin disclosed a flaw found through Monero's bug bounty programme: the C++ I2P routers, i2pd and Kovri, used the length field of garlic routing cloves before validating it. Any node on the network could thus make a router hand back chunks of its memory, session keys included, Heartbleed-style and without crashing anything.

Prayer

O Saint GarlicRust, who draws secrets rather than aroma from garlic, let our parsers check lengths before they use them. Amen.

How to celebrate

Celebrated by upgrading i2pd to 2.17 and eating garlic bread, which at least keeps the vampires away.

Garlic keeps off vampires, not memory readers.

Technical record

Disclosed on
December 4 2017
CVE
CVE-2017-17066

The (1) i2pd before 2.17 and (2) kovri pre-alpha implementations of the I2P routing protocol do not properly handle Garlic DeliveryTypeTunnel packets, which allows remote attackers to obtain sensitive information from process memory via crafted packets that trigger a buffer over-read, as demonstrated by reading sensitive router memory, aka the GarlicRust bug.

Sources: eyalitkin.wordpress.com · hackerone.com

📅 Add to your calendar

SaintsGoogle CalendarApple, Outlook (.ics)

Observances (feasts, scourges and miracles)Google CalendarApple, Outlook (.ics)

In Google Calendar you can also paste the URL in Settings → Add calendar → From URL. The first sync can take a few hours.