]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
libgit2: upgrade 1.5.0 -> 1.5.1
authorAlexander Kanavin <alex.kanavin@gmail.com>
Wed, 8 Feb 2023 07:21:42 +0000 (08:21 +0100)
committerSteve Sakoman <steve@sakoman.com>
Sat, 18 Feb 2023 16:41:49 +0000 (06:41 -1000)
commit63cb8eb147088ae171ffa2b6005410742e50e4e6
treef816f4e6b66122db72ce16a6ebf89499cc5963d5
parent9f01e75b2d249a5885b313bcb4ba76df750b0d56
libgit2: upgrade 1.5.0 -> 1.5.1

Fixes:

libgit2, when compiled using the optional, included libssh2 backend, fails to verify SSH keys by default.

Description:

When using an SSH remote with the optional, included 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.
Beginning in libgit2 v1.4.5 and v1.5.1, libgit2 will now perform host key checking by default. Users can still override the default behavior using the certificate_check function.
The libgit2 security team would like to thank the Julia and Rust security teams for responsibly disclosing this vulnerability and assisting with fixing the vulnerability.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f59486310cf33c586671a16cf52862c19c3c4c31)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-support/libgit2/libgit2_1.5.1.bb [moved from meta/recipes-support/libgit2/libgit2_1.5.0.bb with 78% similarity]