mbox series

[wrynose,0/2] expat: backport two CVE fixes (25-11-2026)

Message ID 20261125063309.3652971-1-dkelaiya@cisco.com
Headers show
Series expat: backport two CVE fixes (25-11-2026) | expand

Message

From: Darsh Kelaiya <dkelaiya@cisco.com>

Backport two additional Expat security fixes to 2.8.3 on Wrynose.
Apply these patches after my earlier three-patch series [1], with
the v2 replacement for patch 3/3, CVE-2026-118370 [2]. The recipe
updates follow v2's removal of the separate tokenizer-count patch.

CVE-2026-115506 adds early entity-expansion checks, together with the
required string and hash helpers, their corrections and regression
tests. Include upstream's follow-up handling for CDATA sections,
comments and processing instructions.

Convert the projected XML_Char-unit count to bytes with checked
multiplication, correcting the upstream preflight's UTF-16 undercount.
Include a bounded regression requiring rejection before any character
data reaches the application.

CVE-2026-124317 checks that a complete multibyte sequence is available
before invoking an application's unknown-encoding conversion callback.
Its regression test uses the XML_Char helpers introduced by the first
patch, so apply the patches in order.

[1] https://patchwork.yoctoproject.org/project/oe-core/list/?series=52975
[2] https://patchwork.yoctoproject.org/project/oe-core/patch/20261124171628.1617804-1-dkelaiya%40cisco.com/

Darsh Kelaiya (2):
  expat: fix CVE-2026-115506
  expat: fix CVE-2026-124317

 .../expat/expat/CVE-2026-115506-dependent_p1.patch |  33 +
 .../expat/expat/CVE-2026-115506-dependent_p2.patch | 297 ++++++++
 .../expat/expat/CVE-2026-115506-dependent_p3.patch |  61 ++
 .../expat/expat/CVE-2026-115506-dependent_p4.patch |  95 +++
 .../expat/expat/CVE-2026-115506-dependent_p5.patch | 240 ++++++
 .../expat/expat/CVE-2026-115506-dependent_p6.patch |  57 ++
 .../expat/expat/CVE-2026-115506-dependent_p7.patch | 106 +++
 .../expat/expat/CVE-2026-115506-dependent_p8.patch |  60 ++
 .../expat/expat/CVE-2026-115506_p1.patch           | 815 +++++++++++++++++++++
 .../expat/expat/CVE-2026-115506_p2.patch           | 255 +++++++
 .../expat/expat/CVE-2026-115506_p3.patch           | 701 ++++++++++++++++++
 .../expat/expat/CVE-2026-124317_p1.patch           |  54 ++
 .../expat/expat/CVE-2026-124317_p2.patch           | 106 +++
 meta/recipes-core/expat/expat_2.8.3.bb             |  13 +
 14 files changed, 2893 insertions(+)
 create mode 100644 meta/recipes-core/expat/expat/CVE-2026-115506-dependent_p1.patch
 create mode 100644 meta/recipes-core/expat/expat/CVE-2026-115506-dependent_p2.patch
 create mode 100644 meta/recipes-core/expat/expat/CVE-2026-115506-dependent_p3.patch
 create mode 100644 meta/recipes-core/expat/expat/CVE-2026-115506-dependent_p4.patch
 create mode 100644 meta/recipes-core/expat/expat/CVE-2026-115506-dependent_p5.patch
 create mode 100644 meta/recipes-core/expat/expat/CVE-2026-115506-dependent_p6.patch
 create mode 100644 meta/recipes-core/expat/expat/CVE-2026-115506-dependent_p7.patch
 create mode 100644 meta/recipes-core/expat/expat/CVE-2026-115506-dependent_p8.patch
 create mode 100644 meta/recipes-core/expat/expat/CVE-2026-115506_p1.patch
 create mode 100644 meta/recipes-core/expat/expat/CVE-2026-115506_p2.patch
 create mode 100644 meta/recipes-core/expat/expat/CVE-2026-115506_p3.patch
 create mode 100644 meta/recipes-core/expat/expat/CVE-2026-124317_p1.patch
 create mode 100644 meta/recipes-core/expat/expat/CVE-2026-124317_p2.patch