Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924457 - <net-dns/unbound-1.19.1: "KeyTrap" DNS DoS vulnerability
Summary: <net-dns/unbound-1.19.1: "KeyTrap" DNS DoS vulnerability
Status: CONFIRMED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Security
URL: https://nlnetlabs.nl/projects/unbound...
Whiteboard: B3 [glsa? cleanup]
Keywords:
: 924517 (view as bug list)
Depends on: 924894
Blocks: CVE-2023-50387, CVE-2023-50868
  Show dependency tree
 
Reported: 2024-02-14 07:17 UTC by Hans de Graaff
Modified: 2024-03-03 08:11 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hans de Graaff gentoo-dev Security 2024-02-14 07:17:38 UTC
A DNSSEC validation vulnerability has been discovered in various DNSSEC validating software. The vulnerability has an assigned number of CVE-2023-50387 and is referred here as the KeyTrap vulnerability.

The KeyTrap vulnerability works by using a combination of Keys (also colliding Keys), Signatures and number of RRSETs on a malicious zone. Answers from that zone can force a DNSSEC validator down a very CPU intensive and time costly validation path.

It can force Unbound to spend an enormous time (comparative to regular traffic) validating a single specially crafted DNSSEC response while everything else is on hold for that thread. A trivially orchestrated attack could render all threads busy with such responses leading to denial of service.

From version 1.19.1 on, Unbound introduces suspension on DNSSEC response validations that seem to require more attempts than Unbound is willing to make per response validation run. Suspension means that Unbound will continue with other work before resuming a suspended validation offering CPU time between validation resumptions to other tasks. There is a backoff timer when suspending which is further influenced by the number of suspends already used and the amount of work currently in Unbound.
Comment 1 Hans de Graaff gentoo-dev Security 2024-02-14 10:35:27 UTC
*** Bug 924517 has been marked as a duplicate of this bug. ***
Comment 2 Marc Schiffbauer gentoo-dev 2024-02-14 16:57:21 UTC
1.19.1 is the the tree now