Skip to content

python2.7: Fix CVE-2026-4224#2

Open
deepin-ci-robot wants to merge 1 commit intomasterfrom
fix/CVE-2026-4224
Open

python2.7: Fix CVE-2026-4224#2
deepin-ci-robot wants to merge 1 commit intomasterfrom
fix/CVE-2026-4224

Conversation

@deepin-ci-robot
Copy link
Copy Markdown
Contributor

Security Update

  • Fix CVE-2026-4224: Fix C stack overflow in pyexpat's conv_content_model
  • Package: python2.7

Vulnerability Description

When an Expat parser with a registered ElementDeclHandler parses an
inline document type definition containing a deeply nested content model,
a C stack overflow occurs.

Changes

  • Added recursion depth checking in Modules/pyexpat.c
  • Uses Py_EnterRecursiveCall() and Py_LeaveRecursiveCall() to prevent stack overflow

Testing

  • Build verification recommended
  • Test with deeply nested DTD content models

Upstream

python/cpython@eb0e8be

Fix C stack overflow in pyexpat's conv_content_model when parsing
deeply nested content model in inline DTD with registered
ElementDeclHandler.

Upstream: python/cpython@eb0e8be
@github-actions
Copy link
Copy Markdown

TAG Bot

TAG: 2.7.18.1-1+deepindeepin1
EXISTED: no
DISTRIBUTION: unstable

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants