Debian Patches

Status for libgit2/1.5.1+ds-1+deb12u2

Patch Description Author Forwarded Bugs Origin Last update
disable-online-tests.patch disable-online-tests
Skip tests that needs an active internet connection
Utkarsh Gupta <utkarsh@debian.org> no 2022-08-28
fix-unit-tests.patch Fix unit tests Timo Röhling <roehling@debian.org> no 2022-08-28
handle-bashism.patch Use bash for shell script with bashisms Timo Röhling <roehling@debian.org> no 2022-08-28
disable-flaky-stat-tests.patch Ignore test failures because of stat() Timo Röhling <roehling@debian.org> no 2022-08-31
backports/CVE-2024-24575.patch revparse: fix parsing bug for trailing @
When parsing a revspec that ends with a trailing `@`, explicitly stop
parsing. Introduce a sentinel variable to explicitly stop parsing.

Prior to this, we would set `spec` to `HEAD`, but were looping on the
value of `spec[pos]`, so we would continue walking the (new) `spec`
at offset `pos`, looking for a NUL. This is obviously an out-of-bounds
read.

Credit to Michael Rodler (@f0rki) and Amazon AWS Security.
Timo Röhling <roehling@debian.org> no debian upstream, https://github.com/libgit2/libgit2/commit/c9d31b711e8906cf248566f43142f20b03e20cbf 2024-02-08
backports/CVE-2024-24577.patch index: correct index has_dir_name check
`has_dir_name` is used to check for directory/file collisions,
and attempts to determine whether the index contains a file with
a directory name that is a proper subset of the new index entry
that we're trying to add.

To determine directory name, the function would walk the path string
backwards to identify a `/`, stopping at the end of the string. However,
the function assumed that the strings did not start with a `/`. If the
paths contain only a single `/` at the beginning of the string, then the
function would continue the loop, erroneously, when they should have
stopped at the first character.

Correct the order of the tests to terminate properly.

Credit to Michael Rodler (@f0rki) and Amazon AWS Security.
Edward Thomson <ethomson@edwardthomson.com> no debian upstream, https://github.com/libgit2/libgit2/commit/eb4c1716cd92bf56f2770653a915d5fc01eab8f3 2023-12-16
backports/CVE-2026-5917.patch CVE-2026-5917: Escape repo path in gen_proto()
Takes inspiration from 346f28b89d6aae0c3ea0b9f0b0bc0f0afa177fab
Stephen Gallagher <sgallagh@redhat.com> no https://github.com/libgit2/libgit2/commit/b2105b8e60798cb28086d4c648b1cb4854eadccb 2026-08-13
backports/CVE-2026-53584.patch submodule: check paths for escaping
Ensure that we do not try to load a submodule who has a filesystem path
that points outside of our repository.

This prevents a crafted repository with a submodule whose path contains
traversal components (e.g. "../") can cause the library to create
directories outside the repository's working tree.
Edward Thomson <ethomson@edwardthomson.com> no https://github.com/libgit2/libgit2/commit/ec7371da9f359cd8293e9108e7a0b1c1b61b67c4 2026-05-22
backports/CVE-2026-53585.patch settings: introduce GIT_OPT_SET_PACK_MAX_OBJECT_SIZE
Prevent overly large sized objects in packfiles. Reject objects that are
larger than 2 GiB by default.
Edward Thomson <ethomson@edwardthomson.com> no https://github.com/libgit2/libgit2/commit/0cdfdd5fa8f8514c82413025e1e0808866cf7c30 2026-06-01
backports/CVE-2026-53586.patch http: give auth callback current host
When calling an authentication callback for the http transport, give
the URL of the current host that we're talking to, not the host that we
were initially given. This is important during a redirect, so that
callers know who they're actually providing a username/password to.
Edward Thomson <ethomson@edwardthomson.com> no https://github.com/libgit2/libgit2/commit/af2b29ad0a74d5bac9751376879ddaf848136d3b 2026-06-01

All known versions for source package 'libgit2'

Links