Debian Patches

Status for libgit2/1.1.0+dfsg.1-4+deb11u2

Patch Description Author Forwarded Bugs Origin Last update
disable-online-tests.patch Skip tests that needs an active internet connection no
enable-repro-builds.patch Enable reproducible builds by default. Utkarsh Gupta <utkarsh@debian.org> no
CVE-2023-22742.patch CVE-2023-22742 - fails to verify SSH keys by default CVE-Description: libgit2 is a cross-platform, linkable library
implementation of Git. When using an SSH remote with the optional libssh2
backend, libgit2 does not perform certificate checking by default. Prior
versions of libgit2 require the caller to set the `certificate_check` field of
libgit2's `git_remote_callbacks` structure - if a certificate check callback is
not set, libgit2 does not perform any certificate checking. This means that by
default - without configuring a certificate check callback, clients will not
perform validation on the server SSH keys and may be subject to a
man-in-the-middle attack.
This is a backport of the upstream fix to the Debian bullseye version.
invalid debian https://github.com/libgit2/libgit2/pull/6449 2023-02-21
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.
=?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org> no debian upstream, https://github.com/libgit2/libgit2/commit/eb4c1716cd92bf56f2770653a915d5fc01eab8f3 2024-02-08

All known versions for source package 'libgit2'

Links