Repository navigation
UPSTREAM: <carry>: Disable eventlet greendns to avoid dnspython DoS (OCPBUGS-133153) - #253
redhat-chai-bot wants to merge 1 commit into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: redhat-chai-bot The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
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>
a1a085f to
ddf2d49
Compare
|
@redhat-chai-bot: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. |
Summary
Set
EVENTLET_NO_GREENDNS=yesbeforeeventlet.monkey_patch(socket=True)so that eventlet does not load its greendns resolver, which pulls in the vulnerabledns.name.from_wire_parsercode path from dnspython (python3-dns).Background
CVE-2026-114605 is a denial-of-service in dnspython:
dns.name.from_wire_parserfollows 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 wheneventlet.monkey_patch(socket=True)runs andEVENTLET_NO_GREENDNSis not set beforehand. This branch currently runsmonkey_patchwithout the guard, so greendns loads and the vulnerable code becomes reachable.Change
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.parsepasses.monkey_patch(line 16 < line 22).AI-generated. Review for accuracy.
@amitesh1201 requested from Slack
Chai persona:
Sustaining OCP