Bug 2527309 - CVE-2026-80212 rubygems: resolv gem: Denial of Service via uncontrolled memory growth from crafted DNS responses [fedora-all]
Summary: CVE-2026-80212 rubygems: resolv gem: Denial of Service via uncontrolled memor...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rubygems
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Vít Ondruch
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["8b57803b-72b9-4150-819e-8...
Depends On:
Blocks: CVE-2026-80212
TreeView+ depends on / blocked
 
Reported: 2026-09-02 09:57 UTC by Tomas Hoger
Modified: 2026-09-16 00:54 UTC (History)
3 users (show)

Fixed In Version: rubygems-4.0.20-1.fc46 rubygems-4.0.20-1.fc44
Clone Of:
Environment:
Last Closed: 2026-09-16 00:54:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tomas Hoger 2026-09-02 09:57:55 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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 1 Fedora Update System 2026-09-10 07:21:38 UTC
FEDORA-2026-c77b963cc9 (rubygems-4.0.20-1.fc46) has been submitted as an update to Fedora 46.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-c77b963cc9

Comment 2 Fedora Update System 2026-09-10 07:25:37 UTC
FEDORA-2026-c77b963cc9 (rubygems-4.0.20-1.fc46) has been pushed to the Fedora 46 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 Fedora Update System 2026-09-10 07:54:44 UTC
FEDORA-2026-9831a751e2 (rubygems-4.0.20-1.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-9831a751e2

Comment 4 Fedora Update System 2026-09-10 07:55:15 UTC
FEDORA-2026-2857104379 (rubygems-4.0.20-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-2857104379

Comment 5 Fedora Update System 2026-09-11 01:34:53 UTC
FEDORA-2026-9831a751e2 has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-9831a751e2`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-9831a751e2

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2026-09-11 02:27:37 UTC
FEDORA-2026-2857104379 has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-2857104379`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-2857104379

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2026-09-16 00:16:49 UTC
FEDORA-2026-9831a751e2 (rubygems-4.0.20-1.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2026-09-16 00:54:06 UTC
FEDORA-2026-2857104379 (rubygems-4.0.20-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.


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