Use-after-free in uriparser - CVE-2021-46141
Published: January 27, 2022
Vulnerability details
The vulnerability allows a remote attacker to crash the application.
The vulnerability exists due to a use-after-free error when parsing URI in uriFreeUriMembers and uriMakeOwner in uriparser. A remote attacker can trick the victim to open a specially crafted URI, trigger a use-after-free error and crash the application that us using the affected library.
Affected software
uriparser (Debian package)
liburiparser-dev (Ubuntu package)
liburiparser1 (Ubuntu package)
uriparser
uriparser-devel
uriparser-debugsource
uriparser-debuginfo
uriparser-help
mingw-uriparser
Fedora
Ubuntu
openEuler
How to mitigate CVE-2021-46141
uriparser (Debian package) - addressed in versions 0.9.1-1+deb10u1, 0.9.4+dfsg-1+deb11u1
liburiparser-dev (Ubuntu package) - update to 0.8.4-1+deb9u2ubuntu0.1
liburiparser1 (Ubuntu package) - update to 0.8.4-1+deb9u2ubuntu0.1
uriparser - update to 0.9.6-1
uriparser-devel - update to 0.9.6-1
uriparser-debugsource - update to 0.9.6-1
uriparser-debuginfo - update to 0.9.6-1
uriparser-help - update to 0.9.6-1
mingw-uriparser - addressed in versions 0.9.6-1.fc34, 0.9.6-1.fc35
uriparser - addressed in versions 0.9.6-1.fc34, 0.9.6-1.fc35, 0.9.7-1.el8
External References
- https://github.com/uriparser/uriparser/issues/121
- https://github.com/uriparser/uriparser/pull/124
- https://blog.hartwork.org/posts/uriparser-096-with-security-fixes-released/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MO6T7WA27H7K3WI2AXUAGPWBGK4HM65D/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YGIJTDNEMU2V4H3JJBQVKBRHU5GBQKG2/
- https://lists.debian.org/debian-lts-announce/2022/01/msg00029.html
- https://www.debian.org/security/2022/dsa-5063