Bug 10082

Summary: samba 4.10.8 (including fix of CVE-2019-10197)
Product: [ROSA-based products] ROSA Fresh Reporter: Zombie Ryushu <zombie.ryushu>
Component: Net (ssh, samba, ssl, NM...)Assignee: ROSA Linux Bugs <bugs>
Status: VERIFIED FIXED QA Contact: ROSA Linux Bugs <bugs>
Severity: normal    
Priority: Normal CC: alzim, andrey.bondrov, denis.silakov, m.novosyolov, mc2374, v.potapov
Version: AllFlags: v.potapov: qa_verified+
andrey.bondrov: published+
Target Milestone: ---   
Hardware: All   
OS: Linux   
URL: https://www.samba.org/samba/history/samba-4.10.7.html
Whiteboard:
Platform: --- ROSA Vulnerability identifier: CVE-2019-10197
RPM Package: samba ISO-related:
Bad POT generating: Upstream:

Description Zombie Ryushu 2019-08-22 17:56:49 MSK
Changes since 4.10.6:
---------------------

o  Michael Adam <obnox@samba.org>
   * BUG 14010: Unable to create or rename file/directory inside shares
     configured with vfs_glusterfs_fuse module.

o  Andrew Bartlett <abartlet@samba.org>
   * BUG 13844: build: Allow build when '--disable-gnutls' is set.

o  Björn Baumbach <bb@sernet.de>
   * BUG 13973: samba-tool: Add 'import samba.drs_utils' to fsmo.py.

o  Tim Beale <timbeale@catalyst.net.nz>
   * BUG 14008: Fix 'Error 32 determining PSOs in system' message on old DB
     with FL upgrade.
   * BUG 14021: s4/libnet: Fix joining a Windows pre-2008R2 DC.
   * BUG 14046: join: Use a specific attribute order for the DsAddEntry
     nTDSDSA object.

o  Ralph Boehme <slow@samba.org>
   * BUG 14015: vfs_catia: Pass stat info to synthetic_smb_fname().

o  Alexander Bokovoy <ab@samba.org>
   * BUG 14091: lookup_name: Allow own domain lookup when flags == 0.

o  Gary Lockyer <gary@catalyst.net.nz>
   * BUG 13932: s4 librpc rpc pyrpc: Ensure tevent_context deleted last.

o  Stefan Metzmacher <metze@samba.org>
   * BUG 13915: DEBUGC and DEBUGADDC doesn't print into a class specific log
     file.
   * BUG 13949: Request to keep deprecated option "server schannel",
     VMWare Quickprep requires "auto".
   * BUG 13967: dbcheck: Fallback to the default tombstoneLifetime of 180 days.
   * BUG 13969: dnsProperty fails to decode values from older Windows versions.
   * BUG 13973: samba-tool: Use only one LDAP modify for dns partition fsmo
     role transfer.

o  Andreas Schneider <asn@samba.org>
   * BUG 13960: third_party: Update waf to version 2.0.17.

o  Garming Sam <garming@catalyst.net.nz>
   * BUG 14051: netcmd: Allow 'drs replicate --local' to create partitions.

o  Rafael David Tinoco <rafaeldtinoco@ubuntu.com>
   * BUG 14017: ctdb-config: Depend on /etc/ctdb/nodes file.
Comment 1 Zombie Ryushu 2019-09-03 19:37:54 MSK
Escalation.

=======
Details
=======

o  CVE-2019-10197:
   Under certain parameter configurations, when an SMB client accesses a network
   share and the user does not have permission to access the share root
   directory, it is possible for the user to escape from the share to see the
   complete '/' filesystem. Unix permission checks in the kernel are still
   enforced.


Changes since 4.10.7:
---------------------

o  Jeremy Allison <jra@samba.org>
   * BUG 14035: CVE-2019-10197: Permissions check deny can allow user to escape
     from the share.

o  Stefan Metzmacher <metze@samba.org>
   * BUG 14035: CVE-2019-10197: Permissions check deny can allow user to escape
     from the share.
Comment 2 Zombie Ryushu 2019-09-18 06:54:47 MSK
This update needs to be expedited. There is a database corruption issue.
Comment 3 Zombie Ryushu 2019-09-26 18:38:22 MSK
Updated samba packages fix security vulnerabilities:

A combination of parameters and permissions in smb.conf can allow user
to escape from the share path definition (CVE-2019-10197).

An authenticated user can crash the Samba AD DC's RPC server process via
a NULL pointer dereference (CVE-2019-12435)

An user with read access to the directory can cause a NULL pointer
dereference using the paged search control (CVE-2019-12436).

For other fixes in this update, see the referenced changelogs.
Comment 4 Zombie Ryushu 2019-09-26 18:40:50 MSK
https://advisories.mageia.org/MGASA-2019-0286.html
Comment 5 Mikhail Novosyolov 2019-09-28 09:04:45 MSK
******* QA ADVISORY *******

samba 4.10.6 -> 4.10.8

+ https://abf.io/build_lists/3098141
+ https://abf.io/build_lists/3098140


P.S. Thanks for reporting. Please don't use '[UPDATE REQUEST]' in bugs for me — I've filtered such emails into a separate folder, because, when email subject starts with "[UPDATE REQUEST]", I don't see full subject in the list of emails in Thunderbird and can't understand what it is about.
Comment 6 Vladimir Potapov 2019-10-03 18:42:01 MSK
The update is sent to expanded testing
****************************************
Comment 7 Vladimir Potapov 2019-10-08 06:27:24 MSK
samba-4.10.8-1
https://abf.io/build_lists/3098141
https://abf.io/build_lists/3098140
******************************** Advisory ***************************
samba 4.10.6 -> 4.10.8 with fix CVE-2019-10197, CVE-2019-12435, CVE-2019-12436.
*********************************************************************
QA Verified
Comment 8 Zombie Ryushu 2019-10-08 15:51:29 MSK
The update was successful, but I still have my database corruption issue.

Checking 313 objects
ERROR(<type 'exceptions.ValueError'>): uncaught exception - unable to parse dn string
  File "/usr/lib64/python2.7/site-packages/samba/netcmd/__init__.py", line 185, in _run
    return self.run(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/samba/netcmd/dbcheck.py", line 163, in run
    controls=controls, attrs=attrs)
  File "/usr/lib64/python2.7/site-packages/samba/dbchecker.py", line 257, in check_database
    error_count += self.check_object(object.dn, attrs=attrs)
  File "/usr/lib64/python2.7/site-packages/samba/dbchecker.py", line 2512, in check_object
    expected_dn = ldb.Dn(self.samdb, "RDN=RDN,%s" % (parent_dn))
Comment 9 Mikhail Novosyolov 2019-10-08 17:17:24 MSK
Can you please report it (https://bugzilla.rosalinux.ru/show_bug.cgi?id=10068) to upstream at https://bugzilla.samba.org/ ? I currently don't have time to investigate this fully due to working with other packages and tasks. Add me to CC in bug in samba's bugzilla.