Bug 2525066 (CVE-2026-80212) - CVE-2026-80212 resolv: resolv gem: Denial of Service via uncontrolled memory growth from crafted DNS responses
Summary: CVE-2026-80212 resolv: resolv gem: Denial of Service via uncontrolled memory ...
Keywords:
Status: NEW
Alias: CVE-2026-80212
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2527308 2527309
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-27 16:57 UTC by OSIDB Bzimport
Modified: 2026-09-28 10:48 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:72285 0 None None None 2026-09-28 04:46:20 UTC
Red Hat Product Errata RHSA-2026:72286 0 None None None 2026-09-28 05:57:08 UTC
Red Hat Product Errata RHSA-2026:72427 0 None None None 2026-09-28 10:48:32 UTC

Description OSIDB Bzimport 2026-08-27 16:57:00 UTC
An issue was discovered in the resolv gem before 0.7.2 for Ruby. Resolv::DNS::Resource.get_class, Resolv::DNS::Resource::Generic.create, and Resolv::DNS::SvcParam::Generic.create generate a new class for each unknown DNS resource record (type, class) pair, or each unknown SvcParamKey, encountered while decoding a response. Each generated class was permanently registered both as a constant on Resource (or SvcParam::Generic) and as an entry in a class-lookup hash (ClassHash), and thus the class remained reachable through that constant after the response was discarded. Type and class are each 16-bit values, and thus an attacker controlling DNS responses (a spoofed response, or a malicious or hijacked upstream DNS server) has roughly 2^32 distinct (type, class) pairs to choose from. A single response of a few hundred kilobytes carrying tens of thousands of distinct unknown types permanently grows process memory by tens of megabytes; repeated responses accumulate without bound and are never reclaimed by garbage collection, because the constant keeps each class alive. Any code path that calls Resolv::DNS::Message.decode on attacker-influenced DNS responses is affected. resolv is a default gem, and thus this is reachable from a plain Ruby installation without any additional dependency.

Comment 2 Jon Orris 2026-09-28 04:46:19 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:72285 https://access.redhat.com/errata/RHSA-2026:72285

Comment 3 Jon Orris 2026-09-28 05:57:07 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:72286 https://access.redhat.com/errata/RHSA-2026:72286

Comment 4 Jon Orris 2026-09-28 10:48:31 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:72427 https://access.redhat.com/errata/RHSA-2026:72427


Note You need to log in before you can comment on or make changes to this bug.