RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1248519 - python-smbc: auth_fn hardening
Summary: python-smbc: auth_fn hardening
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: python-smbc
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Charalampos Stratakis
QA Contact: Mirek Długosz
URL:
Whiteboard:
Depends On:
Blocks: 1223392 1465891
TreeView+ depends on / blocked
 
Reported: 2015-07-30 12:53 UTC by Florian Weimer
Modified: 2018-04-10 15:54 UTC (History)
10 users (show)

Fixed In Version: python-smbc-1.0.13-8.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 15:54:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0873 0 None None None 2018-04-10 15:54:45 UTC

Description Florian Weimer 2015-07-30 12:53:03 UTC
This code in context.c does not cause the output strings to be NUL-terminated if they exceed the specified length:

  strncpy (workgroup, use_workgroup, wgmaxlen);
  strncpy (username, use_username, unmaxlen);
  strncpy (password, use_password, pwmaxlen);

This could lead to crashes inside libsmbclient.

Upstream bug: https://fedorahosted.org/pysmbc/ticket/6

Comment 3 Charalampos Stratakis 2017-04-24 13:19:03 UTC
Upstream has changed to https://github.com/hamano/pysmbc

Bug fix:
https://github.com/hamano/pysmbc/commit/94a8572b78f9734e0f37e5ffc8a61926101a3d77

Comment 4 Petr Viktorin (pviktori) 2017-10-05 14:02:28 UTC
Engineering-wise, applying the fix is not a problem.

Comment 7 Charalampos Stratakis 2017-10-24 14:47:24 UTC
Florian would you happen to have some sort of reproducer so QE can verify the fix?

Since fedorahosted is retired now, the original bug report is lost.

Comment 8 Florian Weimer 2017-10-24 17:49:35 UTC
(In reply to Charalampos Stratakis from comment #7)
> Florian would you happen to have some sort of reproducer so QE can verify
> the fix?
> 
> Since fedorahosted is retired now, the original bug report is lost.

The relevant commit is now at:

https://github.com/hamano/pysmbc/commit/94a8572b78f9734e0f37e5ffc8a61926101a3d77

The fedorahosted ticket did not contain additional information.  I think it is sufficient if you verify that the patch has been applied.

Comment 13 errata-xmlrpc 2018-04-10 15:54:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0873


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