Articles / Debian: New git-core packag…

Debian: New git-core packages fix buffer overflow

Multiple vulnerabilities have been identified in git-core, the core of the git distributed revision control system. Improper path length limitations in git's diff and grep functions, in combination with maliciously crafted repositories or changes, could enable a stack buffer overflow and potentially the execution of arbitrary code. Updated packages are available from security.debian.org.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- ------------------------------------------------------------------------
Debian Security Advisory DSA-1637-1                  security@debian.org
http://www.debian.org/security/                           Devin Carraway
September 15, 2008                    http://www.debian.org/security/faq
- ------------------------------------------------------------------------

Package        : git-core
Vulnerability  : buffer overflow
Problem type   : local (remote)
Debian-specific: no
CVE Id(s)      : CVE-2008-3546
Debian Bug     : 494097

Multiple vulnerabilities have been identified in git-core, the core of
the git distributed revision control system.  Improper path length
limitations in git's diff and grep functions, in combination with
maliciously crafted repositories or changes, could enable a stack
buffer overflow and potentially the execution of arbitrary code.

The Common Vulnerabilities and Exposures project identifies this
vulnerabilitiy as CVE-2008-3546.

For the stable distribution (etch), this problem has been fixed in
version 1.4.4.4-2.1+etch1.

For the unstable distribution (sid), this problem has been fixed in
version 1.5.6.5-1.

We recommend that you upgrade your git-core packages.

Upgrade instructions
- --------------------

wget url
       will fetch the file for you
dpkg -i file.deb
       will install the referenced file.

If you are using the apt-get package manager, use the line for
sources.list as given below:

apt-get update
       will update the internal database
apt-get upgrade
       will install corrected packages

You may use an automated update by adding the resources from the
footer to the proper configuration.


Debian GNU/Linux 4.0 alias etch
- -------------------------------

Debian (stable)
- ---------------

Stable updates are available for alpha, amd64, arm, hppa, i386, ia64, mips, mipsel, powerpc, s390 and sparc.

Source archives:

 http://security.debian.org/pool/updates/main/g/git-core/git-core_1.4.4.4-2.1+etch1.dsc
   Size/MD5 checksum:      801 e1da32690d937c31112734e3a568a6b2
 http://security.debian.org/pool/updates/main/g/git-core/git-core_1.4.4.4.orig.tar.gz
   Size/MD5 checksum:  1054130 99bc7ea441226f792b6f796a838e7ef0
 http://security.debian.org/pool/updates/main/g/git-core/git-core_1.4.4.4-2.1+etch1.diff.gz
   Size/MD5 checksum:    80042 b10d0f2f899b73e92cc22fd0e7616f8a

Architecture independent packages:

 http://security.debian.org/pool/updates/main/g/git-core/git-arch_1.4.4.4-2.1+etch1_all.deb
   Size/MD5 checksum:    68534 bc1c4be53e445eb2a9a1cba42410f85e
 http://security.debian.org/pool/updates/main/g/git-core/git-cvs_1.4.4.4-2.1+etch1_all.deb
   Size/MD5 checksum:    93752 fbbef80ad27745f79072bce3e5ae3a96
 http://security.debian.org/pool/updates/main/g/git-core/git-email_1.4.4.4-2.1+etch1_all.deb
   Size/MD5 checksum:    62850 dfaff5a7df0025792768a536fae519af
 http://security.debian.org/pool/updates/main/g/git-core/gitweb_1.4.4.4-2.1+etch1_all.deb
   Size/MD5 checksum:    88008 b10f4275020e838c1fb1a1af6ccef056
 http://security.debian.org/pool/updates/main/g/git-core/git-daemon-run_1.4.4.4-2.1+etch1_all.deb
   Size/MD5 checksum:    55366 5b7be4b5951849b301d1faddf831dff8
 http://security.debian.org/pool/updates/main/g/git-core/git-doc_1.4.4.4-2.1+etch1_all.deb
   Size/MD5 checksum:   466200 0a21d338c7741147ff36242abaf3b402
 http://security.debian.org/pool/updates/main/g/git-core/git-svn_1.4.4.4-2.1+etch1_all.deb
   Size/MD5 checksum:   100590 990844afb17ba526bbffb49796497b6e
 http://security.debian.org/pool/updates/main/g/git-core/gitk_1.4.4.4-2.1+etch1_all.deb
   Size/MD5 checksum:    99352 a2d4c126758efa9fa9a549e8736f80a3

alpha architecture (DEC Alpha)

 http://security.debian.org/pool/updates/main/g/git-core/git-core_1.4.4.4-2.1+etch1_alpha.deb
   Size/MD5 checksum:  3092536 10a91198e5606dc6b1f6037803389d53

amd64 architecture (AMD x86_64 (AMD64))

 http://security.debian.org/pool/updates/main/g/git-core/git-core_1.4.4.4-2.1+etch1_amd64.deb
   Size/MD5 checksum:  2627502 3fad9097fef2d907e66a28c9cb3f9684

arm architecture (ARM)

 http://security.debian.org/pool/updates/main/g/git-core/git-core_1.4.4.4-2.1+etch1_arm.deb
   Size/MD5 checksum:  2317560 de4bd89d3a608df2b1216f86cf0b8b53

hppa architecture (HP PA RISC)

 http://security.debian.org/pool/updates/main/g/git-core/git-core_1.4.4.4-2.1+etch1_hppa.deb
   Size/MD5 checksum:  2692126 53c2bf7b21e779e94c34405201be7910

i386 architecture (Intel ia32)

 http://security.debian.org/pool/updates/main/g/git-core/git-core_1.4.4.4-2.1+etch1_i386.deb
   Size/MD5 checksum:  2330734 769253444bc1f266f706bc742bec86ee

ia64 architecture (Intel ia64)

 http://security.debian.org/pool/updates/main/g/git-core/git-core_1.4.4.4-2.1+etch1_ia64.deb
   Size/MD5 checksum:  3813238 65d7e5064d427e425173653300a6b5c6

mips architecture (MIPS (Big Endian))

 http://security.debian.org/pool/updates/main/g/git-core/git-core_1.4.4.4-2.1+etch1_mips.deb
   Size/MD5 checksum:  2784982 4cd7c71d0cb63880562ec56b9c30ba0f

mipsel architecture (MIPS (Little Endian))

 http://security.debian.org/pool/updates/main/g/git-core/git-core_1.4.4.4-2.1+etch1_mipsel.deb
   Size/MD5 checksum:  2799604 8cedf2b70c763b893500a04d42ffa82d

powerpc architecture (PowerPC)

 http://security.debian.org/pool/updates/main/g/git-core/git-core_1.4.4.4-2.1+etch1_powerpc.deb
   Size/MD5 checksum:  2636198 fe400a070ce9d89c60dc619334501d94

s390 architecture (IBM S/390)

 http://security.debian.org/pool/updates/main/g/git-core/git-core_1.4.4.4-2.1+etch1_s390.deb
   Size/MD5 checksum:  2620338 2c0192889678a8159a26c1f8c9d3a970

sparc architecture (Sun SPARC/UltraSPARC)

 http://security.debian.org/pool/updates/main/g/git-core/git-core_1.4.4.4-2.1+etch1_sparc.deb
   Size/MD5 checksum:  2278862 cd969645dfe4fb36e457dabc3a5c7516


 These files will probably be moved into the stable distribution on
 its next update.

- ---------------------------------------------------------------------------------
For apt-get: deb http://security.debian.org/ stable/updates main
For dpkg-ftp: ftp://security.debian.org/debian-security dists/stable/updates/main
Mailing list: debian-security-announce@lists.debian.org
Package info: `apt-cache show ' and http://packages.debian.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFIzg5eU5XKDemr/NIRAtskAKDb86DRKtjvC4xLal3kgdnQcL6GOQCfaKqO
8yxmorHwWyHkVLSsGB1WikQ=
=0rLf
-----END PGP SIGNATURE-----

Recent comments

22 Sep 2008 07:29 Avatar ed_avis

String length problems?
I remember someone submitted a patch to git to

use a safer string library instead of the C-style

NUL-terminated strings. It got shot down in flames

(mostly because it triggered a flamewar about C++,

which was not the patch author's fault).

Presumably, though, using a safe string library

instead of fixed-size buffers would have eliminated

this vulnerability.

Screenshot

Project Spotlight

Kigo Video Converter Ultimate for Mac

A tool for converting and editing videos.

Screenshot

Project Spotlight

Kid3

An efficient tagger for MP3, Ogg/Vorbis, and FLAC files.