Univention Bugzilla – Bug 36162
smbd constantly crashes when filename contains non-ascii character
Last modified: 2014-10-22 16:07:31 CEST
Rrported at #2014101321000221 Please see Samba Bug: https://bugzilla.samba.org/show_bug.cgi?id=10716
Created attachment 6159 [details] sambabug_10716.patch Upstream patch, applies cleanly when split into two parts.
Created attachment 6160 [details] 98_sambabug_10716.patch This is the patch as merged into upstream git.
Advisory: 2014-10-13-samba.yaml
can be reproduced with: -> cd /home/Administrator/ -> more a.c #include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char **argv) { char bad_file[] = {'f', 'i', 'l', 'e', '-', 0xE9, 0}; FILE *f; printf("Create %s\n", bad_file); f = fopen(bad_file, "a"); if (f == NULL) perror("fopen"); else fclose(f); return 0; } -> make a -> ./a Create file-� -> mount.cifs //10.200.7.50/Administrator \ -o user=Administrator,pass=univention /mnt/ -> cd /mnt -> ./a => PANIC (pid 31118): ndr_push_share_mode_lock failed OK - works with errata3.2-3 and UCS 4.0 OK - YAML
http://errata.univention.de/ucs/3.2/221.html
http://errata.univention.de/ucs/3.2/224.html