A flaw was found in libgit2 before version 0.27.3. It has been discovered that an unexpected sign extension in git_delta_apply function in delta.c file may lead to an integer overflow which in turn leads to an out of bound read, allowing to read before the base object. An attacker may use this flaw to leak memory addresses or cause a Denial of Service.
The product performs an operation on a number that causes it to be sign extended when it is transformed into a larger data type. When the original number is negative, this can produce unexpected values that lead to resultant weaknesses.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Libgit2 | Libgit2 | * | 0.27.3 (excluding) |
Libgit2 | Ubuntu | artful | * |
Libgit2 | Ubuntu | bionic | * |
Libgit2 | Ubuntu | trusty | * |
Libgit2 | Ubuntu | upstream | * |
Libgit2 | Ubuntu | xenial | * |