CVE Vulnerabilities

CVE-2022-3094

Use After Free

Published: Jan 26, 2023 | Modified: Apr 01, 2025
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
6.5 MODERATE
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

Sending a flood of dynamic DNS updates may cause named to allocate large amounts of memory. This, in turn, may cause named to exit due to a lack of free memory. We are not aware of any cases where this has been exploited.

Memory is allocated prior to the checking of access permissions (ACLs) and is retained during the processing of a dynamic update from a client whose access credentials are accepted. Memory allocated to clients that are not permitted to send updates is released immediately upon rejection. The scope of this vulnerability is limited therefore to trusted clients who are permitted to make dynamic zone changes.

If a dynamic update is REFUSED, memory will be released again very quickly. Therefore it is only likely to be possible to degrade or stop named by sending a flood of unaccepted dynamic updates comparable in magnitude to a query flood intended to achieve the same detrimental outcome.

BIND 9.11 and earlier branches are also affected, but through exhaustion of internal resources rather than memory constraints. This may reduce performance but should not be a significant problem for most servers. Therefore we dont intend to address this for BIND versions prior to BIND 9.16. This issue affects BIND 9 versions 9.16.0 through 9.16.36, 9.18.0 through 9.18.10, 9.19.0 through 9.19.8, and 9.16.8-S1 through 9.16.36-S1.

Weakness

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

NameVendorStart VersionEnd Version
BindIsc9.16.0 (including)9.16.37 (excluding)
BindIsc9.18.0 (including)9.18.11 (excluding)
BindIsc9.19.0 (including)9.19.9 (excluding)
BindIsc9.16.8-s1 (including)9.16.8-s1 (including)
BindIsc9.16.11-s1 (including)9.16.11-s1 (including)
BindIsc9.16.13-s1 (including)9.16.13-s1 (including)
BindIsc9.16.14-s1 (including)9.16.14-s1 (including)
BindIsc9.16.21-s1 (including)9.16.21-s1 (including)
BindIsc9.16.32-s1 (including)9.16.32-s1 (including)
BindIsc9.16.36-s1 (including)9.16.36-s1 (including)
Red Hat Enterprise Linux 8RedHatbind9.16-32:9.16.23-0.14.el8*
Red Hat Enterprise Linux 8RedHatbind-32:9.11.36-11.el8_9*
Red Hat Enterprise Linux 8RedHatbind-32:9.11.36-11.el8_9*
Red Hat Enterprise Linux 8.6 Extended Update SupportRedHatbind-32:9.11.36-3.el8_6.7*
Red Hat Enterprise Linux 8.6 Extended Update SupportRedHatdhcp-12:4.3.6-47.el8_6.2*
Red Hat Enterprise Linux 8.8 Extended Update SupportRedHatbind-32:9.11.36-8.el8_8.3*
Red Hat Enterprise Linux 9RedHatbind-32:9.16.23-11.el9*
Bind9Ubuntudevel*
Bind9Ubuntuesm-infra/focal*
Bind9Ubuntufocal*
Bind9Ubuntujammy*
Bind9Ubuntukinetic*
Bind9Ubuntulunar*
Bind9Ubuntutrusty*
Bind9Ubuntuupstream*
Bind9Ubuntuxenial*

Potential Mitigations

References