Bug 980945
Summary: | buffer overflow in *toname() functions | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Zing <zing> | ||||
Component: | tree | Assignee: | Tim Waugh <twaugh> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 19 | CC: | twaugh | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | tree-1.6.0-9.fc19 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2013-07-12 03:18:38 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Thanks. I only changed the snprintf calls to use sizeof(buf). tree-1.6.0-8.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/tree-1.6.0-8.fc19 Package tree-1.6.0-8.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing tree-1.6.0-8.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-12329/tree-1.6.0-8.fc19 then log in and leave karma (feedback). Package tree-1.6.0-9.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing tree-1.6.0-9.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-12329/tree-1.6.0-9.fc19 then log in and leave karma (feedback). tree-1.6.0-9.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. |
Created attachment 768300 [details] fix buf overflow in *toname() Description of problem: uidtoname() and gidtoname() have possible buffer overflows. Version-Release number of selected component (if applicable): tree-1.6.0-7.fc19.x86_64 How reproducible: always Steps to Reproduce: 1. chgrp 111111 somefile.txt 2. tree -g . Actual results: *** buffer overflow detected ***: tree terminated Expected results: the tree listing Additional info: I'll attach a patch. A second or more set of eyeballs would be good. (I hit this while browsing the fedora iso... there's a squash file in there that has a huge gid.)