Description
Incorrect returning of an error code in the index.c:read_entry() function leads to a double free in libgit2 before v0.26.2, which allows an attacker to cause a denial of service via a crafted repository index file.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libgit2 | 0.27.0+dfsg.1-0.6 | — |
| Debian 13 | libgit2 | 0.27.0+dfsg.1-0.6 | — |
| Debian 12 | libgit2 | 0.27.0+dfsg.1-0.6 | — |
| Debian 9 | libgit2 | 0.25.1+really0.24.6-1+deb9u1 | DLA-2936-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | libgit2 | 0.26.0+dfsg.1-1.1ubuntu0.2+esm2 | — |
| Ubuntu Pro 16.04 LTS | libgit2 | 0.24.1-2ubuntu0.2+esm3 | — |
| Ubuntu Pro 14.04 LTS | libgit2 | 0.19.0-2ubuntu0.4+esm2 | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP3 | libgit2 | 0.24.1-7.6.1 | SUSE-SU-2018:3440-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Manager Server 3.2 | libgit2 | 0.24.1-7.6.1 | SUSE-SU-2018:3440-1 |
| SUSE Manager Server 3.1 | libgit2 | 0.24.1-7.6.1 | SUSE-SU-2018:3440-1 |
Advisories 2
- DLA-2936-1 libgit2 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2018:3440-1 Security update for libgit2 SUSE / openSUSE Security Updates · Feb 4, 2026