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