Summary: | net-ftp/netkit-tftp-0.17-r7 has a buffer overflow | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Robin Kauffman <robink> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 357083 | ||
Bug Blocks: | |||
Attachments: |
emerge --info for emily (AMD64 system, 10.0 profile, GCC 4.7.1, glibc 2.16.0)
=net-ftp/netkit-tftp-0.17-r7 backtrace (with debugging symbols) |
Description
Robin Kauffman
2012-07-07 18:38:25 UTC
emerge --info won't fit in a comment, here's the top part: Portage 2.2.0_alpha84 (default/linux/amd64/10.0, gcc-4.7.1, unavailable, 3.4.0-g4c992ac x86_64) ================================================================= System uname: Linux-3.4.0-g4c992ac-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5600+-with-gentoo-2.0.3 Timestamp of tree: Sat, 07 Jul 2012 08:15:01 +0000 distcc 3.1 x86_64-pc-linux-gnu [disabled] ccache version 2.4 [enabled] app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3::progress dev-lang/python: 2.4.6, 2.5.4-r4, 2.6.7-r2, 2.7.2-r3, 3.1.4-r3, 3.2.2, 3.3_pre20110410::python dev-util/ccache: 2.4-r7 dev-util/cmake: 2.8.6-r4 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.0.3 sys-apps/openrc: 0.9.9.3 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r3, 1.10.3, 1.11.4 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.3.6-r1, 4.4.6-r1, 4.5.3-r2, 4.6.3, 4.7.1 sys-devel/gcc-config: 1.6 sys-devel/libtool: 1.3.5, 2.4-r1 sys-devel/make: 3.82-r1 sys-libs/glibc: 2.16.0 (In reply to comment #1) > emerge --info won't fit in a comment, here's the top part: Attach as a file, then. I can reproduce, but there is no warning about it either, fun! I'm having trouble getting to the full backtrace on my tinderbox, if you can get a full backtrace according to http://www.gentoo.org/proj/en/qa/backtraces.xml it would be helpful. Okay I was able to reproduce it multiple times, with GCC 4.6 and glibc-2.15 as well, so it's definitely not tied to those two systems. Fixed with a patch... but I think I'll last rite this anyway... any reason you're not using tftp-hpa? tftp-hpa doesn't talk to my RouterStation Pro's bootloader (I'm not talking U-Boot, I'm talking the bootloader that lets you load the actual bootloader to be used, along with a kernel and initrd/rootfs). It is irreplaceable (you are not allowed to overwrite it, with good reason, it is the only way to recover a bricked OS deployment, and if you brick *it*, well...) and were it rewritable the image is not publicly available (someone would have to write one, or sneak it out of Ubiquiti's software development storage pool). *So*, netkit-tftp (when it works) is my preferred tftp client for talking to devices, because it seems to understand all the quirks of closed-source and free software TFTP servers alike, and never fails to (eventually) get a file pushed. I can try tftp-hpa again, but it never seemed able to push a file to the Ubiquiti BIOS' bootloader, which is what I'm trying to do *right now*. Created attachment 317592 [details]
=net-ftp/netkit-tftp-0.17-r7 backtrace (with debugging symbols)
Also, I know you fixed this, but here's my backtrace attached as a file.
Lastly, I just checked sources.gentoo.org (gentoo-x86/net-ftp/netkit-tftp/), and the mtime for netkit-tftp-0.17-r7.ebuild is still 15 months ago. Would you be willing to attach your patch or push it to either the tree or an overlay I could pull it from? Thank you very much, and I'm sorry for all the trouble :-)
Oops, failed to hit reload. Sorry, I see it and will pull/install it. If you don't hear from me it works and this bug can remain closed. that patch is incorrect. simple fix: rm include/arpa/tftp.h should be all set now in the tree; thanks for the report! Commit message: Fix fortify errors for real http://sources.gentoo.org/net-ftp/netkit-tftp/netkit-tftp-0.17-r8.ebuild?r1=1.1&r2=1.2 |