Heap-based buffer overflow in GDAL - CVE-2021-45943
Published: September 28, 2022
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error within the PCIDSK::CPCIDSKFile::ReadFromFile() function in frmts/pcidsk/sdk/segment/cpcidskbinarysegment.cpp. A remote attacker can create a specially crafted file, trick the victim into opening it, trigger heap-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Debian Linux
Gentoo Linux
Fedora
Oracle Database Server
gdal (Debian package)
gdal
mingw-gdal
sci-libs/gdal
mingw-python3
How to mitigate CVE-2021-45943
gdal - addressed in versions 3.2.2-3.fc34, 3.3.3-1.fc35
mingw-gdal - addressed in versions 3.2.2-3.fc34, 3.3.3-3.fc35
sci-libs/gdal - update to 3.4.1
mingw-python3 - update to 3.10.4-1.fc35
External References
- https://github.com/OSGeo/gdal/pull/4944
- https://github.com/google/oss-fuzz-vulns/blob/main/vulns/gdal/OSV-2021-1651.yaml
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=41993
- https://github.com/OSGeo/gdal/commit/1ca6a3e5168c200763fa46d8aa7e698d0b757e7e
- https://lists.debian.org/debian-lts-announce/2022/01/msg00004.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JBPJGXY7IYY65NVJBLP3RONXE7ZBVCNU/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/P23E4DEHY5FJCR5VJ46I6TO32DT7Y3T4/
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://www.debian.org/security/2022/dsa-5239