[Bug 680169] New: smbclient segfaults when a cyrillic netbios name is configured
https://bugzilla.novell.com/show_bug.cgi?id=680169
https://bugzilla.novell.com/show_bug.cgi?id=680169#c0
Summary: smbclient segfaults when a cyrillic netbios name is
configured
Classification: openSUSE
Product: openSUSE 11.4
Version: Final
Platform: Other
OS/Version: Other
Status: NEW
Severity: Minor
Priority: P5 - None
Component: Samba
AssignedTo: ddiss@novell.com
ReportedBy: ddiss@novell.com
QAContact: samba-maintainers@SuSE.de
CC: samba-maintainers@SuSE.de
Found By: ---
Blocker: ---
Ran into this while looking at bug 641450. This is also present in master.
/etc/samba/smb.conf:
..
[global]
netbios name = нФЏБа
..
Core was generated by `/opt/samba/bin/smbclient -N -L 10.10.101.248'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007f76fc7e05ab in memcpy () from /lib64/libc.so.6
(gdb) bt
#0 0x00007f76fc7e05ab in memcpy () from /lib64/libc.so.6
#1 0x0000000000525f9a in msrpc_gen (mem_ctx=0xe7dea0, blob=0x7fff849524b0,
format=0xa6ee32 "CddAA") at ../libcli/auth/msrpc_parse.c:156
#2 0x000000000051024b in ntlmssp_client_initial (ntlmssp_state=0xe7dea0,
out_mem_ctx=0xe7dea0, reply=..., next_request=0x7fff849524b0)
at libsmb/ntlmssp.c:391
#3 0x000000000050febc in ntlmssp_update (ntlmssp_state=0xe7dea0, input=...,
out=0x7fff849524b0) at libsmb/ntlmssp.c:268
#4 0x00000000004caf00 in cli_session_setup_ntlmssp_send (mem_ctx=0xe7f350,
ev=0xe7f350, cli=0xe5d5b0,
user=0xe7e8b0 'E'
https://bugzilla.novell.com/show_bug.cgi?id=680169
https://bugzilla.novell.com/show_bug.cgi?id=680169#c1
--- Comment #1 from David Disseldorp
https://bugzilla.novell.com/show_bug.cgi?id=680169
https://bugzilla.novell.com/show_bug.cgi?id=680169#c2
--- Comment #2 from David Disseldorp
https://bugzilla.novell.com/show_bug.cgi?id=680169
https://bugzilla.novell.com/show_bug.cgi?id=680169#c3
--- Comment #3 from David Disseldorp
The following change avoids the smbclient segfault by ensuring strings are marshalled as unicode:
This change is incorrect. Strings in the initial ntlmssp NEGOTIATE_MESSAGE must not be marshalled as unicode, as specified in [MS-NLMP] 2.2: All character string fields in NEGOTIATE_MESSAGE contain characters in the OEM character set. As specified in section 2.2.2.5, the client and server negotiate if they both support Unicode characters — in which case, all character string fields in the CHALLENGE_MESSAGE and AUTHENTICATE_MESSAGE contain UNICODE_STRING unless otherwise specified. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com