Bug 436345 - Buffer overflow when SElinux enabled.
Summary: Buffer overflow when SElinux enabled.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: krb5
Version: 8
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 442314
TreeView+ depends on / blocked
 
Reported: 2008-03-06 17:24 UTC by Pawel Salek
Modified: 2008-04-14 09:49 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-03-23 11:52:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
One-line patch (373 bytes, patch)
2008-03-06 17:25 UTC, Pawel Salek
no flags Details | Diff

Description Pawel Salek 2008-03-06 17:24:14 UTC
Description of problem:
selinux-label patch adds code that does not compute buffer size correctly (a
typical off-by-one error).  This will at best corrupt heap whenever the code is
executed.

Version-Release number of selected component (if applicable):
krb5-workstation-1.6.2-11.fc8
krb5-1.6.1-17.el5 is affected as well.

How reproducible:
100%

Steps to Reproduce:
1. have selinux enabled.
2. try transferring a file from a local directory so that path does not start
with /.
3. watch heap being corrupted (MALLOC_CHECK_=2 helps to see it already at the
first time).

Additional info:
Patch will be attached.

Comment 1 Pawel Salek 2008-03-06 17:25:51 UTC
Created attachment 297075 [details]
One-line patch

Trivial fix.

Comment 2 Pawel Salek 2008-03-07 11:58:42 UTC
Bug present also in ftp program as distributed with krb5-1.6.2-13.fc8

Comment 3 Nalin Dahyabhai 2008-03-18 16:12:37 UTC
Going to include the fix in 1.6.2-14, leaving open until it's pushed as an update.

Comment 4 Fedora Update System 2008-03-18 18:50:45 UTC
krb5-1.6.2-14.fc8 has been submitted as an update for Fedora 8

Comment 5 Fedora Update System 2008-03-21 22:20:16 UTC
krb5-1.6.2-14.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Pawel Salek 2008-03-23 11:52:48 UTC
The bug appears to be gone in krb5-1.6.2-14.fc8


Note You need to log in before you can comment on or make changes to this bug.