Skip to content

UPSTREAM: <carry>: Disable eventlet greendns to avoid dnspython DoS (OCPBUGS-133153) - #253

Open
redhat-chai-bot wants to merge 1 commit into
openshift:release-4.17from
redhat-chai-bot:cve-2026-114605-4.17
Open

redhat-chai-bot wants to merge 1 commit into
openshift:release-4.17from
redhat-chai-bot:cve-2026-114605-4.17

Conversation

@redhat-chai-bot

Copy link
Copy Markdown

Summary

Set EVENTLET_NO_GREENDNS=yes before eventlet.monkey_patch(socket=True) so that eventlet does not load its greendns resolver, which pulls in the vulnerable dns.name.from_wire_parser code path from dnspython (python3-dns).

Background

CVE-2026-114605 is a denial-of-service in dnspython: dns.name.from_wire_parser follows attacker-controlled DNS compression pointer chains with no hop limit, causing excessive CPU consumption. It is fixed upstream in dnspython 2.9.0, but that release requires Python 3.11+, while this branch runs on Python 3.9 (python3-dns-2.3.0, a stock RHEL 9 AppStream package not managed here). No backported el9 RPM fix has shipped.

dnspython is only pulled into the ironic-python-agent image transitively, via python3-eventlet → python3-dns. The vulnerable parser is reachable only if eventlet's greendns resolver loads, which happens when eventlet.monkey_patch(socket=True) runs and EVENTLET_NO_GREENDNS is not set beforehand. This branch currently runs monkey_patch without the guard, so greendns loads and the vulnerable code becomes reachable.

Change

 import eventlet
+import os
+
+os.environ["EVENTLET_NO_GREENDNS"] = "yes"
 
 # NOTE(JayF) Without monkey_patching socket, API requests will hang with TLS
 eventlet.monkey_patch(all=False, socket=True)

This disables greendns, removing the only path by which the vulnerable dnspython parser is reached, without changing eventlet's socket monkey-patching behavior. The change matches the guard already present on release-4.19. IPA uses the standard-library resolver for its own DNS needs, so disabling greendns has no functional impact.

Validation

  • ast.parse passes.
  • Guard precedes monkey_patch (line 16 < line 22).
  • Trivial, PEP8-compliant edit; no unit test covers this module and no flake8/pre-commit config is present on the release branch.

AI-generated. Review for accuracy.

@amitesh1201 requested from Slack

Chai persona: Sustaining OCP

@openshift-ci

openshift-ci Bot commented Nov 23, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: redhat-chai-bot
Once this PR has been reviewed and has the lgtm label, please assign elfosardo for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

CVE-2026-114605 is a denial-of-service in dnspython. In
ironic-python-agent the vulnerable dnspython parser is only reachable
through eventlet's greendns resolver, which is loaded by
eventlet.monkey_patch(socket=True) unless EVENTLET_NO_GREENDNS=yes is
set in the environment beforehand. Set that variable before calling
monkey_patch() so greendns is never loaded, matching the fix already
present on the 4.19 branch.

Reference: OCPBUGS-133153

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@openshift-ci

openshift-ci Bot commented Nov 23, 2026

Copy link
Copy Markdown

@redhat-chai-bot: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant