From: "Yoann Congal" <yoann.congal@smile.fr>
To: "Joao Marcos Costa" <joaomarcos.costa@bootlin.com>,
<dkelaiya@cisco.com>, <openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core][wrynose][PATCH 3/3] expat: fix CVE-2026-118370
Date: Mon, 23 Nov 2026 14:08:24 +0100 [thread overview]
Message-ID: <DN2M45VC2WEV.2SB302BX0OSBO@smile.fr> (raw)
In-Reply-To: <26a1abae-94e5-4a17-ae9b-127a4ad0b924@bootlin.com>
On Mon Nov 23, 2026 at 1:48 PM CET, Joao Marcos Costa wrote:
> Hello, all
>
> On 11/23/26 12:41 PM, Yoann Congal wrote:
>> On Thu Nov 5, 2026 at 10:17 AM CET, Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco) via openembedded-core wrote:
>>> From: Darsh Kelaiya <dkelaiya@cisco.com>
>>>
>>> Backport the upstream prefix and attribute-index fixes [1,2]
>>> identified by the release announcement [3]. Use size_t for storeAtts
>>> bookkeeping and reject values that cannot be represented by the
>>> existing public int attribute-count interfaces.
>>>
>>> Include the related tokenizer-count correction [4] so XmlGetAttributes
>>> and getAtts do not overflow a signed count or narrow the available
>>> attribute capacity before the storeAtts checks. This closes the same
>>> large-attribute data path; it corrects a pre-existing issue rather than
>>> a regression introduced by the first two fixes. Preserve Expat 2.8.3's
>>> PTRCALL annotations on the tokenizer callback and implementation.
>>>
>>> Validated with the full native unit suite, inline undefined-behavior
>>> traps and an arithmetic boundary model. A multi-gigabyte attribute
>>> payload and BitBake were not run.
>>>
>>> [1] https://github.com/libexpat/libexpat/commit/621cb2c78b253ee023a86bc91d6ddb048481c04c
>>> [2] https://github.com/libexpat/libexpat/commit/1bac53c4fc460a03cd9860f39501c7979f6750ae
>>> [3] https://www.openwall.com/lists/oss-security/2026/11/02/6
>>> [4] https://github.com/libexpat/libexpat/commit/c67cbc6185d1b494f521f2f46280d5982f50f2cf
>>>
>>> Signed-off-by: Darsh Kelaiya <dkelaiya@cisco.com>
> (...)
>
> While I'm not familiar with expat's sources, I get the point of
> backporting this extra commit to make sure that getAtts and setAtts will
> "agree" upon using the same size_t type.
>
> I don't see, however, any clear statements (e.g., from libexpat
> maintainers, NVD, Debian's security tracker, Debian's bug tracker) that
> this 3rd patch is directly related to PR#1450 or to CVE-2026-118370.
>
>>
>> Hello,
>>
>> If I'm not mistaken, this _p3 never was submitted for master &
>> blacksail. Specifically, it was not part of João's patch:
>> https://patchwork.yoctoproject.org/project/oe-core/patch/20261118103042.1825679-2-joaomarcos.costa@bootlin.com/
>> Note that I've taken this patch in my review branch.
>>
>> Please submit this _p3 for master/blacksail so I can take this one here.
>>
>> João (CC'd), do we need this for blacksail?
>>
>> Thanks,
>
> @Yoan: as per my comment above, I'm not sure p3 is actually mandatory,
> and the PR#1463 [1] introducing doesn't mention this CVE or PR#1450 in
> any way. There's only a 'enhancement' tag (whatever that means), as
> opposed to 'bug' and 'security' at PR#1450.
>
> To summarize my POV: not mandatory, but nice to have.
>
> That said, will we apply this same reasoning for all the other CVE fix
> backports, or stick with the directly-related patches only?
>
> Please let me know in case that wasn't clear (or helpful!) enough.
>
> [1] https://github.com/libexpat/libexpat/pull/1463
I don't think we want (or can) chase down every related fix like this.
So, let's generaly stick to what is referenced by our trusted CVE info
sources.
That said, if we happen to stumble on a fix, I'm not against backporting
it but the justification bar will be higher (like every non-CVE bugfix).
In this case, I don't think :
> Include the related tokenizer-count correction [4] so XmlGetAttributes
> and getAtts do not overflow a signed count or narrow the available
> attribute capacity before the storeAtts checks. This closes the same
> large-attribute data path; it corrects a pre-existing issue rather than
> a regression introduced by the first two fixes. Preserve Expat 2.8.3's
> PTRCALL annotations on the tokenizer callback and implementation.
>
> [4] https://github.com/libexpat/libexpat/commit/c67cbc6185d1b494f521f2f46280d5982f50f2cf
... is enough for that. For exemple, what kind of input triggers the
issue? Why/how does the patch fixes it? Without CVE data to help, I
have to rely on this info to judge a patch.
One quick way to unlock this patch would be to resubmit it without this
_p3 and , then, add this p3 separately if needed.
Regards,
--
Yoann Congal
Smile ECS
next prev parent reply other threads:[~2026-11-23 13:08 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-05 9:17 [OE-core][wrynose][PATCH 1/3] expat: fix CVE-2026-113351 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-05 9:17 ` [OE-core][wrynose][PATCH 2/3] expat: fix CVE-2026-117610 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-23 13:36 ` Yoann Congal
2026-11-24 17:20 ` [wrynose][PATCH " Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-05 9:17 ` [OE-core][wrynose][PATCH 3/3] expat: fix CVE-2026-118370 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-23 11:41 ` Yoann Congal
2026-11-23 12:48 ` Joao Marcos Costa
2026-11-23 13:08 ` Yoann Congal [this message]
2026-11-24 17:17 ` [wrynose][PATCH " Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-14 13:40 ` [OE-core][wrynose][PATCH 1/3] expat: fix CVE-2026-113351 Yoann Congal
2026-11-17 12:44 ` [wrynose][PATCH " Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-20 23:47 ` [OE-core][wrynose][PATCH " Yoann Congal
2026-11-24 18:19 ` [wrynose][PATCH " Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DN2M45VC2WEV.2SB302BX0OSBO@smile.fr \
--to=yoann.congal@smile.fr \
--cc=dkelaiya@cisco.com \
--cc=joaomarcos.costa@bootlin.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.