CVE-2021-45960

NameCVE-2021-45960
DescriptionIn Expat (aka libexpat) before 2.4.3, a left shift by 29 (or more) places in the storeAtts function in xmlparse.c can lead to realloc misbehavior (e.g., allocating too few bytes, or only freeing memory).
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-2904-1, DSA-5073-1
Debian Bugs1002994

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
expat (PTS)buster2.2.6-2+deb10u4fixed
buster (security)2.2.6-2+deb10u6fixed
bullseye (security), bullseye2.2.10-2+deb11u5fixed
bookworm2.5.0-1fixed
trixie2.5.0-2fixed
sid2.6.0-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
expatsourcestretch2.2.0-2+deb9u4DLA-2904-1
expatsourcebuster2.2.6-2+deb10u2DSA-5073-1
expatsourcebullseye2.2.10-2+deb11u1DSA-5073-1
expatsource(unstable)2.4.3-11002994

Notes

https://github.com/libexpat/libexpat/issues/531
https://github.com/libexpat/libexpat/pull/534
Fixed by: https://github.com/libexpat/libexpat/commit/0adcb34c49bee5b19bd29b16a578c510c23597ea (R_2_4_3)

Search for package or bug name: Reporting problems