diff mbox series

[kirkstone,5/8] git: upgrade 2.35.4 -> 2.35.5

Message ID 43badfadb92a1d6684801f81fa2ed9c8b5652bb6.1666825041.git.steve@sakoman.com
State Accepted, archived
Commit 43badfadb92a1d6684801f81fa2ed9c8b5652bb6
Headers show
Series [kirkstone,1/8] linux-yocto/5.10: update to v5.10.147 | expand

Commit Message

Steve Sakoman Oct. 27, 2022, 2:36 a.m. UTC
From: Tim Orling <ticotimo@gmail.com>

This release addresses the security issues CVE-2022-39253 and
CVE-2022-39260.

 * CVE-2022-39253:
   When relying on the `--local` clone optimization, Git dereferences
   symbolic links in the source repository before creating hardlinks
   (or copies) of the dereferenced link in the destination repository.
   This can lead to surprising behavior where arbitrary files are
   present in a repository's `$GIT_DIR` when cloning from a malicious
   repository.

   Git will no longer dereference symbolic links via the `--local`
   clone mechanism, and will instead refuse to clone repositories that
   have symbolic links present in the `$GIT_DIR/objects` directory.

   Additionally, the value of `protocol.file.allow` is changed to be
   "user" by default.

 * CVE-2022-39260:
   An overly-long command string given to `git shell` can result in
   overflow in `split_cmdline()`, leading to arbitrary heap writes and
   remote code execution when `git shell` is exposed and the directory
   `$HOME/git-shell-commands` exists.

   `git shell` is taught to refuse interactive commands that are
   longer than 4MiB in size. `split_cmdline()` is hardened to reject
   inputs larger than 2GiB.

Credit for finding CVE-2022-39253 goes to Cory Snider of Mirantis. The
fix was authored by Taylor Blau, with help from Johannes Schindelin.

Credit for finding CVE-2022-39260 goes to Kevin Backhouse of GitHub.
The fix was authored by Kevin Backhouse, Jeff King, and Taylor Blau.

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
 meta/recipes-devtools/git/{git_2.35.4.bb => git_2.35.5.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-devtools/git/{git_2.35.4.bb => git_2.35.5.bb} (98%)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/git/git_2.35.4.bb b/meta/recipes-devtools/git/git_2.35.5.bb
similarity index 98%
rename from meta/recipes-devtools/git/git_2.35.4.bb
rename to meta/recipes-devtools/git/git_2.35.5.bb
index 18f39875db..be4e3ca1d3 100644
--- a/meta/recipes-devtools/git/git_2.35.4.bb
+++ b/meta/recipes-devtools/git/git_2.35.5.bb
@@ -165,4 +165,4 @@  EXTRA_OECONF += "ac_cv_snprintf_returns_bogus=no \
                  "
 EXTRA_OEMAKE += "NO_GETTEXT=1"
 
-SRC_URI[tarball.sha256sum] = "4970108bdc227e2c3687899f8fc7501c54c839dcc42f4d999ac9e3e3f52df583"
+SRC_URI[tarball.sha256sum] = "2cca63fe7bebb5b4bf8efea7b46b12bb89c16ff9711b6b6d845928501d00d0a3"