Out-of-bounds read in libgit2 - CVE-2018-15501
Published: August 25, 2018 / Updated: August 28, 2018
Vulnerability details
The vulnerability allows a remote attacker to cause DoS condition on the target system.
The vulnerability exists due to out-of-bounds read in ng_pkt in transports/smart_pkt.c in libgit2. A remote attacker can send a specially crafted smart-protocol "ng" packet that lacks a '' byte and cause the service to crash.
Affected software
libgit2-0.27 (Alpine package)
libgit2-1.0 (Alpine package)
libgit2 (Ubuntu package)
libgit2
Fedora
Ubuntu
Opensuse
How to mitigate CVE-2018-15501
libgit2-1.0 (Alpine package) - update to 1.0.1-r1
libgit2 (Ubuntu package) - addressed in versions 0.19.0-2ubuntu0.4+esm2, 0.24.1-2ubuntu0.2+esm3, 0.26.0+dfsg.1-1.1ubuntu0.2+esm2, 0.28.4+dfsg.1-2ubuntu0.1+esm1, 1.1.0+dfsg.1-4.1ubuntu0.1+esm1, 1.7.2+ds-1ubuntu3.1, 1.9.1+ds-1ubuntu1.1
libgit2 - update to 0.26.7-1.el7