Resource exhaustion in Knot Resolver - CVE-2022-40188
Published: July 16, 2023
Vulnerability identifier: #VU78292
CSH Severity: Medium
CVSS v4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-40188
CWE-ID: CWE-400
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.
The vulnerability exists due to application does not properly control consumption of internal resources caused by algorithmic complexity. A malicious authoritative server can return large NS sets or addresses and cause excessive CPU consumption.
Affected software
Knot Resolver
Fedora
Ubuntu
knot-resolver (Ubuntu package)
libkres6 (Ubuntu package)
libkres-dev (Ubuntu package)
knot-resolver
Fedora
Ubuntu
knot-resolver (Ubuntu package)
libkres6 (Ubuntu package)
libkres-dev (Ubuntu package)
knot-resolver
How to mitigate CVE-2022-40188
Install updates from vendor's website.
Knot Resolver - update to 5.5.3
knot-resolver (Ubuntu package) - addressed in versions Ubuntu Pro, 3.2.1-3ubuntu2.1, 5.5.1-5ubuntu0.22.10.1
libkres6 (Ubuntu package) - update to Ubuntu Pro
libkres-dev (Ubuntu package) - update to Ubuntu Pro
knot-resolver - addressed in versions 5.5.3-1.el7, 5.5.3-1.el8, 5.5.3-1.el9, 5.5.3-1.fc35, 5.5.3-1.fc36, 5.5.3-1.fc37
knot-resolver (Ubuntu package) - addressed in versions Ubuntu Pro, 3.2.1-3ubuntu2.1, 5.5.1-5ubuntu0.22.10.1
libkres6 (Ubuntu package) - update to Ubuntu Pro
libkres-dev (Ubuntu package) - update to Ubuntu Pro
knot-resolver - addressed in versions 5.5.3-1.el7, 5.5.3-1.el8, 5.5.3-1.el9, 5.5.3-1.fc35, 5.5.3-1.fc36, 5.5.3-1.fc37
External References
- https://gitlab.nic.cz/knot/knot-resolver/-/merge_requests/1343#note_262558
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S2VE5K3VDUHJOIA2IGT3G5R76IBADMNE/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HIMDNIUI7GTUEKIBBYYW7OCTJQFPDNXL/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XO6LIVQS62MI5GG4OVYB5RHVZMYNHAHG/
- https://lists.debian.org/debian-lts-announce/2022/10/msg00008.html