Skip to content

[libxml] Hashing of empty dict strings isn't deterministic - #5011

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

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

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 Hashing of empty dict strings isn't deterministic [libxml] Hashing of empty dict strings isn't deterministic Mar 5, 2025
nwellnhof and others added 2 commits March 14, 2025 00:00
When hashing empty strings which aren't null-terminated,
xmlDictComputeFastKey could produce inconsistent results. This could
lead to various logic or memory errors, including double frees.

For consistency the seed is also taken into account, but this shouldn't
have an impact on security.

Found by OSS-Fuzz.

Fixes youtube#510.

(cherry picked from commit 547edbf1cbdccd46b2e8ff322a456eaa5931c5df)
… by commit 7423065.

Issue: 399225618
Reviewed-on: youtube#5011
@dahlstrom-g
dahlstrom-g merged commit cfb7103 into youtube:25.lts.1+ Mar 14, 2025
@dahlstrom-g
dahlstrom-g deleted the CVE-2023-29469 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