Name | CVE-2021-45960 |
Description | In 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). |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-2904-1, DSA-5073-1 |
Debian Bugs | 1002994 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
expat (PTS) | bullseye | 2.2.10-2+deb11u5 | fixed |
| bullseye (security) | 2.2.10-2+deb11u7 | fixed |
| bookworm, bookworm (security) | 2.5.0-1+deb12u1 | fixed |
| sid, trixie | 2.7.1-1 | fixed |
libxmltok (PTS) | bookworm, bullseye | 1.2-4 | vulnerable |
The information below is based on the following data on fixed versions.
Notes
[bookworm] - libxmltok <ignored> (Minor issue, no runtime dependencies left)
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)