Skip to content

[libxml] Fix integer overflows in xmlBuf and xmlBuffer - #5009

Merged
dahlstrom-g merged 2 commits into
youtube:25.lts.1+from
dahlstrom-g:CVE-2022-29824
Mar 14, 2025
Merged

dahlstrom-g merged 2 commits into
youtube:25.lts.1+from
dahlstrom-g:CVE-2022-29824

Conversation

@dahlstrom-g

Copy link
Copy Markdown
Contributor

Issue: 399225618

@dahlstrom-g
dahlstrom-g requested a review from kaidokert March 4, 2025 15:00
@kaidokert kaidokert changed the title Fix integer overflows in xmlBuf and xmlBuffer [libxml] Fix integer overflows in xmlBuf and xmlBuffer Mar 5, 2025
nwellnhof and others added 2 commits March 14, 2025 00:00
In several places, the code handling string buffers didn't check for
integer overflow or used wrong types for buffer sizes. This could
result in out-of-bounds writes or other memory errors when working on
large, multi-gigabyte buffers.

Thanks to Felix Wilhelm for the report.

(cherry picked from commit 2554a2408e09f13652049e5ffb0d26196b02ebab)
… by commit 7ecc912.

Issue: 399225618
Reviewed-on: youtube#5009
@dahlstrom-g
dahlstrom-g merged commit 6685a1c into youtube:25.lts.1+ Mar 14, 2025
@dahlstrom-g
dahlstrom-g deleted the CVE-2022-29824 branch March 14, 2025 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants