From: "Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)" <dkelaiya@cisco.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [wrynose][PATCH 3/3] expat: fix CVE-2026-118370
Date: Tue, 24 Nov 2026 09:17:25 -0800 [thread overview]
Message-ID: <1226682.1795540645373229347@lists.openembedded.org> (raw)
In-Reply-To: <DN2M45VC2WEV.2SB302BX0OSBO@smile.fr>
[-- Attachment #1: Type: text/plain, Size: 4793 bytes --]
Hi Yoann, Joao,
Thanks for the clarification. I've sent a v2 with the _p3 patch dropped:
https://lists.openembedded.org/g/openembedded-core/message/251050
Regards,
Darsh
On Mon, Nov 23, 2026 at 06:38 PM, Yoann Congal wrote:
>
> 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
[-- Attachment #2: Type: text/html, Size: 5986 bytes --]
next prev parent reply other threads:[~2026-11-24 17:17 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
2026-11-24 17:17 ` Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco) [this message]
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=1226682.1795540645373229347@lists.openembedded.org \
--to=dkelaiya@cisco.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox