{"id":"CLSA-2026-1788968222","summary":"Fix of 5 CVEs","details":"   * SECURITY UPDATE: Use-after-free because handler call depth tracking\n     was absent entirely, leaving XML_Parse, XML_ParseBuffer,\n     XML_GetBuffer, XML_ParserFree, XML_ParserReset and XML_ResumeParser\n     callable on the running parser from inside an application handler,\n     and the XML_TOK_DATA_CHARS handler calls in doCdataSection() left\n     untracked (libexpat before 2.8.2)\n     - debian/patches/CVE-2026-56131.patch: introduce the handler call\n       depth counter m_handlerCallDepth with the beforeHandler() /\n       afterHandler() / isCalledFromInsideHandler() helpers from upstream\n       PR #1246, wrap all 55 handler call sites in expat/lib/xmlparse.c,\n       and reject the six affected entry points with XML_STATUS_ERROR /\n       NULL when the counter is non-zero; XML_StopParser and\n       XML_ExternalEntityParserCreate are deliberately left unguarded, as\n       upstream intends.  Also carries upstream PR #1278, which wraps the\n       two doCdataSection XML_TOK_DATA_CHARS charDataHandler calls that\n       the original framework missed and through which the depth guard\n       was otherwise bypassable.  Of the 55 wrapped call sites 53 are\n       live; the other two sit inside expat's pre-existing\n       \"else if (0 && ...)\" disabled branches, which upstream 2.8.2 wraps\n       as well.  Carries upstream's regression test into\n       expat/tests/runtests.c.  Behaviour change inherited from upstream:\n       leaving a handler through a non-local exit, such as a C++\n       exception or longjmp(), skips afterHandler(), so the counter stays\n       non-zero and every guarded entry point refuses from then on,\n       XML_ParserFree() included.  Upstream accepts the resulting leak in\n       place of a use-after-free and provides no way to clear the counter\n     - CVE-2026-56131\n     - CVE-2026-50219\n     - CVE-2026-56412\n   * SECURITY UPDATE: Quadratic runtime when detecting duplicate default\n     attributes, allowing denial of service through a crafted DTD\n     (libexpat before 2.8.1)\n     - debian/patches/CVE-2026-45186.patch: add\n       ELEMENT_TYPE.defaultAttsNames and resolve default-attribute\n       collisions through a hash table lookup instead of a linear scan\n       over defaultAtts in defineAttribute(), with matching\n       hashTableInit()/hashTableDestroy() calls in storeAtts(),\n       getElementType(), dtdCopy(), dtdReset() and dtdDestroy() in\n       expat/lib/xmlparse.c.  The trade-off, upstream's as well, is one\n       hash table per element type: a constant extra amount of memory and\n       setup work per element type and per tag, linear in document size,\n       in exchange for removing the quadratic term\n     - CVE-2026-45186\n   * SECURITY UPDATE: Integer overflow when reallocating the tag name\n     conversion buffer (libexpat before 2.7.4)\n     - debian/patches/CVE-2026-25210.patch: reject a doubling that would\n       overflow before it happens (SIZE_MAX / 2 pre-check) and widen\n       doContent()'s bufSize from int to size_t in expat/lib/xmlparse.c.\n       Also carries the storeRawNames() half of upstream commit\n       25ec4f1b, which widens that function's bufSize and nameLen to\n       size_t.  Upstream released 25ec4f1b in 2.7.2, ahead of this fix in\n       2.7.4, and it is a prerequisite rather than cosmetics: once\n       tag-\u003ebuf is allowed past INT_MAX bytes, the (int) narrowing of\n       convLen in doContent() can store a negative tag-\u003ename.strLen, and\n       storeRawNames() would then compute a negative int bufSize, skip\n       its reallocation and memcpy() below the buffer.  Widened, the same\n       value becomes a huge size_t, the reallocation fails and the\n       function returns XML_FALSE, which is how upstream 2.7.4 behaves\n     - CVE-2026-25210\n   * SECURITY UPDATE: Integer overflow in doProlog related to\n     storeEntityValue and entity textLen (libexpat before 2.8.2)\n     - debian/patches/CVE-2026-56407.patch: cap the entity value pool\n       length against INT_MAX before assigning m_declEntity-\u003etextLen in\n       expat/lib/xmlparse.c.  The second hunk of upstream commit\n       30c2fc17 is omitted because it targets storeSelfEntityValue(),\n       which arrived in expat 2.6.0 and does not exist here\n     - CVE-2026-56407\n   * SECURITY UPDATE: Integer overflow in copyString (libexpat before\n     2.8.2)\n     - debian/patches/CVE-2026-56408.patch: reject\n       charsRequired \u003e SIZE_MAX / sizeof(XML_Char) before the allocation\n       in copyString() in expat/lib/xmlparse.c.  This is upstream parity\n       hardening rather than a live fix on 2.2.10: charsRequired is a\n       size_t holding the length of the application-supplied encoding\n       name rather than of document content, so tripping the guard would\n       need a string larger than the address space even in the\n       -DXML_UNICODE (buildw) library that debian/rules also builds,\n       where sizeof(XML_Char) is 2\n     - CVE-2026-56408","modified":"2026-11-27T16:43:53.009780086Z","published":"2026-09-09T15:37:16Z","upstream":["CVE-2026-25210","CVE-2026-45186","CVE-2026-50219","CVE-2026-56131","CVE-2026-56407","CVE-2026-56408","CVE-2026-56412"],"references":[{"type":"ADVISORY","url":"https://errata.tuxcare.com/els_os/debian11els/CLSA-2026-1788968222.html"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25210"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45186"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56131"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56407"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56408"}],"affected":[{"package":{"name":"expat","ecosystem":"TuxCare:Debian:11","purl":"pkg:deb/tuxcare/expat?distro=debian-11"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.10-2+deb11u7+tuxcare.els1"}]}],"database_specific":{"source":"https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/debian11els/CLSA-2026-1788968222.json"}},{"package":{"name":"libexpat1","ecosystem":"TuxCare:Debian:11","purl":"pkg:deb/tuxcare/libexpat1?distro=debian-11"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.10-2+deb11u7+tuxcare.els1"}]}],"database_specific":{"source":"https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/debian11els/CLSA-2026-1788968222.json"}},{"package":{"name":"libexpat1-dev","ecosystem":"TuxCare:Debian:11","purl":"pkg:deb/tuxcare/libexpat1-dev?distro=debian-11"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.10-2+deb11u7+tuxcare.els1"}]}],"database_specific":{"source":"https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/debian11els/CLSA-2026-1788968222.json"}}],"schema_version":"1.9.2"}