Bug 1937867

Summary: samba printing dumps core
Product: Red Hat Enterprise Linux 7 Reporter: Heinrich Mislik <heinrich.mislik>
Component: sambaAssignee: Andreas Schneider <asn>
Status: CLOSED ERRATA QA Contact: sssd-qe <sssd-qe>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.9CC: asn, dkarpele, gdeschner, jarrpa, jreznik, mkosek, thalman, tscherf
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: samba-4.10.16-14.el7_9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-08 22:30:45 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:

Description Heinrich Mislik 2021-03-11 16:34:26 UTC
Description of problem:

Printing to samba leads to core dump of smbd.

Version-Release number of selected component (if applicable):

samba-4.10.16-9.el7_9.x86_64

Steps to Reproduce:

Configure a printer share containing 

invalid users = someuser

and try to print.

Actual results:

Coredump

Expected results:

File gets printed.


Additional info:

https://bugzilla.samba.org/show_bug.cgi?id=14572
https://bugzilla.samba.org/show_bug.cgi?id=14568

This happens, because first patch for

https://bugzilla.samba.org/show_bug.cgi?id=14467

is in error:

samba-4.10-redhat.patch Line 3032 has:

         size_t domain_len = strlen(domain);

This crashes, since domain can be NULL.

Cheers

Heinrich

Comment 11 errata-xmlrpc 2021-06-08 22:30:45 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 (Moderate: samba security and bug fix update), 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/RHSA-2021:2313