Skip to content
DoS Write-up Advanced

Linux IPv6 "Route of Death" 0day

A flaw in the Linux kernel's handling of IPv6 RPL source routing headers allows a remote attacker to cause a kernel panic by sending a crafted packet that expands the address vector beyond the available buffer space.

Max VA Follow

Published on interruptlabs.co.uk

Sometimes I feel like exploring random areas of code. It's a pretty good way to find a new bug pattern.

Max VA (@maxpl0it), on interruptlabs.co.uk

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The kernel fails to account for the possible expansion of the RPL source routing address vector when re-compressing it, leading to an skb_push call that exceeds the buffer's headroom and triggers a panic.

Impact

A remote attacker could cause a denial of service by crashing the kernel, but only if RPL source routing is enabled on the target.

What the attacker needed

RPL source routing enabled on target; Ability to send crafted IPv6 packets

The fix

The bug was reported and a patch was released, but the patch did not solve the underlying problem, so another patch is still expected.

How it was found

  1. Enable RPL source routing on the target (check via sysctl).
  2. Craft an IPv6 packet with a Routing header of type 3 (RPL) containing a compressed address vector with CmprI=15 and CmprE=0, and segments_left=1.
  3. Send the packet to the target's IPv6 address.
  4. The kernel decompresses the vector, swaps addresses, and attempts to recompress, causing an expansion.
  5. The subsequent skb_push exceeds available headroom, triggering skb_under_panic and a kernel panic.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

The Linux kernel processes network packets in memory buffers. A bug in how it handles a special IPv6 routing header can make it try to add more data to the front of a buffer than there is room for, which crashes the whole system. An attacker who can send network packets can trigger this crash remotely.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More from Linux Kernel Organization

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.