LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-02-2023, 03:27 PM   #1
Olek
Member
 
Registered: Jul 2012
Location: Wroclaw Poland
Distribution: Slackware
Posts: 110

Rep: Reputation: 27
Samba update needed in Slackware 15.0 after KB5028166


I don't really know if this information should go to the thread "Requests for current-next (15.0-->15.1)" because it's urgent. To the point - after installing KB5028166 update, Windows systems cannot connect to the domain controller. Samba has made appropriate fixes in samba-4.16.11, samba-4.17.10 and samba-4.18.5. Meanwhile in Slackware 15.0 we still have samba-4.15.13. I think we need an urgent update of the samba package in Slackware 15.0, because for several weeks it has been possible to work only after uninstalling KB5028166 update and disabling windows update.

More info at:
https://bugzilla.samba.org/show_bug.cgi?id=15418
 
Old 08-02-2023, 04:40 PM   #2
henca
Senior Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 1,012

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
I can't say for sure how this is going to affect Slackware 15.0 which ships with Samba 4.15 which now is EOL. Often, when a version gets EOL Slackware no longer provides security updates of that software for stable versions. The release notes for Samba version 4.y.0 should be studied carefully when upgrading from version 4.x.0. If Samba 4.15 not would have been EOL an upgrade would be a no-brainer.

However, a request to update samba in Slackware current does absolutely seem appropriate.

Looking at the timeline of CVE-2022-38023 is kind of interesting:

8/8 2022 (almost a year ago): CVE-2022-38023 is allocated.
11/7 2023: KB5028166 is published which fixes CVE-2022-38023
12/7 2023: Bug report at https://bugzilla.samba.org/show_bug.cgi?id=15418
13/7 2023: First suggested patches for Samba, also confirmed working
19/7 2023: Samba version 4.18.15, 4.17.10 and 4.16.11 released

Those Windows systems have had this known security hole for more than 11 months.

regards Henrik
 
Old 08-02-2023, 06:53 PM   #3
Olek
Member
 
Registered: Jul 2012
Location: Wroclaw Poland
Distribution: Slackware
Posts: 110

Original Poster
Rep: Reputation: 27
Quote:
Originally Posted by henca View Post
However, a request to update samba in Slackware current does absolutely seem appropriate.
Using Slackware current for production use is risky.

Quote:
Originally Posted by henca View Post
Looking at the timeline of CVE-2022-38023 is kind of interesting:

8/8 2022 (almost a year ago): CVE-2022-38023 is allocated.
11/7 2023: KB5028166 is published which fixes CVE-2022-38023
12/7 2023: Bug report at https://bugzilla.samba.org/show_bug.cgi?id=15418
13/7 2023: First suggested patches for Samba, also confirmed working
19/7 2023: Samba version 4.18.15, 4.17.10 and 4.16.11 released

Those Windows systems have had this known security hole for more than 11 months.

regards Henrik

It's not about security.
It's about "secure channel faulty since Windows 10/11 update 07/2023".
You got up some beautyfull july day, and every network users can't log in to workstation, because of "trust relationship between this workstation and the primary domain failed".
No, You can't fix this by remove and add workstation to domain, because in W10 and W11 Microsoft changed SMB protocol in a way, which old Samba versions don't understands.
 
Old 08-03-2023, 05:28 AM   #4
henca
Senior Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 1,012

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Quote:
Originally Posted by Olek View Post
Using Slackware current for production use is risky.
Yes, but one day current will become something like 15.1 and it would be sad if 15.1 had an outdated samba which has some broken functionality for updated Windows systems.

Quote:
Originally Posted by Olek View Post
It's not about security.
Vulnerabilities are usually about security. However, the CVE-2022-38023 is not about a vulnerability in Samba but a vulnerability in Windows.

Quote:
Originally Posted by Olek View Post
It's about "secure channel faulty since Windows 10/11 update 07/2023".
You got up some beautyfull july day, and every network users can't log in to workstation, because of "trust relationship between this workstation and the primary domain failed".
No, You can't fix this by remove and add workstation to domain, because in W10 and W11 Microsoft changed SMB protocol in a way, which old Samba versions don't understands.
Yes, that is the drawback of depending upon a vendor which decides to make changes which contradict old specifications. It is also the drawback of depending upon a vendor of closed source software. There is no good way for you to fix this on your Windows computers. To make your mixed environment work you will need to adopt your samba servers to Windows new behavior.

For you, it is probably a good idea to upgrade to Samba version 4.16 after carefully reading about changes in https://www.samba.org/samba/history/samba-4.16.0.html

Others, who don't care about AD server functionality in samba, might get upset that this new Samba version breaks functionality they depend upon.

I don't have any influence about which packages gets updates in the /patches directory, but I doubt that there will be any patch package for Samba in Slackware 15.0. Possibly some newer samba package could be provided in the /testing directory.

If no such official package comes from Slackware you will be left to rolling your own working samba installation. Maybe you want to try to migrate to a newer maintained version of samba. Maybe you want to try to apply patches to the source of Samba 4.15. If so, you probably want these commit from github.com/samba-team/samba/

caf2188
585df7e
5d48ea2
6e87858

Those were the commits made on the 4.16 branch of samba and might require a limited amount of tinkering to work with samba version 4.15.

regards Henrik
 
1 members found this post helpful.
Old 08-03-2023, 07:32 AM   #5
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 464

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by henca View Post
I can't say for sure how this is going to affect Slackware 15.0 which ships with Samba 4.15 which now is EOL. Often, when a version gets EOL Slackware no longer provides security updates of that software for stable versions.

This is impacting my users as well. Slackware 15.0 is what only 1-1/2 years old?

IMO EOL packages have no business in any OS this young, especially a package critical to some environments as Samba is..
With obvious exceptions for packages no longer maintained which have no viable replacements etc
 
Old 08-03-2023, 12:55 PM   #6
henca
Senior Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 1,012

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Quote:
Originally Posted by bitfuzzy View Post
IMO EOL packages have no business in any OS this young, especially a package critical to some environments as Samba is.
Lets have a look at another timeline, Slackware 15.0 changelog vs Samba changelog:

Code:
Mon Aug 16 05:28:16 UTC 2021
Slackware 15.0 release candidate one.
Consider most things frozen and the focus now to be any remaining blocker bugs.

2021-09-20: Samba version 4.15.0 released

Mon Sep 20 18:49:19 UTC 2021
n/samba-4.15.0-x86_64-1.txz:  Upgraded.

Thu Oct 28 01:11:07 UTC 2021
n/samba-4.15.1-x86_64-1.txz:  Upgraded.

Wed Nov 10 20:32:37 UTC 2021
n/samba-4.15.2-x86_64-1.txz:  Upgraded.

Wed Dec  8 20:42:30 UTC 2021
n/samba-4.15.3-x86_64-1.txz:  Upgraded.

Wed Jan 12 22:04:33 UTC 2022
Good hello, and welcome to the third and final release candidate for Slackware
15.0. We're 99% frozen at this point and are mostly looking for regression or
other bug reports that might be able to be addressed before this goes stable.

Wed Jan 19 18:18:02 UTC 2022
n/samba-4.15.4-x86_64-1.txz:  Upgraded.

Tue Feb  1 04:37:04 UTC 2022
n/samba-4.15.5-x86_64-1.txz:  Upgraded.

Wed Feb  2 22:22:22 UTC 2022
Slackware 15.0 x86_64 stable is released!

2022-03-22: Samba version 4.16.0 released

Mon May  2 20:02:49 UTC 2022
patches/packages/samba-4.15.7-x86_64-1_slack15.0.txz:  Upgraded.

Wed Jul 27 19:17:38 UTC 2022
patches/packages/samba-4.15.9-x86_64-1_slack15.0.txz:  Upgraded.

Wed Oct 19 20:06:33 UTC 2022
patches/packages/samba-4.15.10-x86_64-1_slack15.0.txz:  Upgraded.

Tue Oct 25 18:38:58 UTC 2022
patches/packages/samba-4.15.11-x86_64-1_slack15.0.txz:  Upgraded.

Thu Nov 17 01:49:28 UTC 2022
patches/packages/samba-4.15.12-x86_64-1_slack15.0.txz:  Upgraded.

Sat Dec 17 21:14:11 UTC 2022
patches/packages/samba-4.15.13-x86_64-1_slack15.0.txz:  Upgraded. (CVE-2022-38023 reltated)

2023-03-08 Samba 4.15 is EOL, less than 1.5 years after initial release.
Yes, the current situation sucks, but Slackware could have done nothing any better than what has been done. Samba version 4.16.0 was released after Slackware 15.0 was released.

I agree that it is bad that something gets EOL after less than 1.5 years, but that is a discussion you should have with the Samba developers.

Upgrading samba to version 4.16 or a newer version might help you, but it might also break things for others.

So what are the options?
  1. Slackware publishes an up to date samba package in the /testing directory for Slackware 15.0
  2. Someone contributes and updated build script for Samba 4.15 which patches version 4.15.13 and a patched 4.15.13 package goes to the /patches directory
  3. A third party samba package for Slackware is published at some place like slackbuilds.org
  4. Every user suffering from this problem rolls his own solution

regards Henrik
 
Old 08-03-2023, 02:29 PM   #7
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,932

Rep: Reputation: 1566Reputation: 1566Reputation: 1566Reputation: 1566Reputation: 1566Reputation: 1566Reputation: 1566Reputation: 1566Reputation: 1566Reputation: 1566Reputation: 1566
In 14.2, samba went from 4.4.4 to finally 4.6.16.
Or in 14.0, from 3.6.8 to 4.2.X to 4.4.X and finally 4.6.16.
 
2 members found this post helpful.
Old 08-03-2023, 04:48 PM   #8
Olek
Member
 
Registered: Jul 2012
Location: Wroclaw Poland
Distribution: Slackware
Posts: 110

Original Poster
Rep: Reputation: 27
Quote:
Originally Posted by henca View Post
  1. Slackware publishes an up to date samba package in the /testing directory for Slackware 15.0
  2. Someone contributes and updated build script for Samba 4.15 which patches version 4.15.13 and a patched 4.15.13 package goes to the /patches directory
  3. A third party samba package for Slackware is published at some place like slackbuilds.org
  4. Every user suffering from this problem rolls his own solution
It looks like patching samba version 4.15.13 is possible.
In bugzilla there is an entry:
Quote:
Stefano B. 2023-07-18 07:25:08 UTC
(In reply to Stefan Metzmacher from comment #25)

I confirm that the patch by Metzmacher also works on Oracle Linux Server release 6.10 and Samba 4.8.1.
 
1 members found this post helpful.
Old 08-03-2023, 05:00 PM   #9
ChuangTzu
Senior Member
 
Registered: May 2015
Location: Where ever needed
Distribution: Slackware/Salix while testing others
Posts: 1,718

Rep: Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857
Email Pat or wait for him to see this thread, he is on LQ regularly. Your subject should get noticed. You could also post it here for current: https://www.linuxquestions.org/quest...-a-4175706801/

Also, keep in mind for proper perspective, this is NOT a samba issue, not a Linux issue and not a Slackware issue, IT IS A Windows issue caused by Windows/Microsoft.

Last edited by ChuangTzu; 08-03-2023 at 05:01 PM.
 
Old 08-03-2023, 05:09 PM   #10
henca
Senior Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 1,012

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Quote:
Originally Posted by Petri Kaukasoina View Post
In 14.2, samba went from 4.4.4 to finally 4.6.16.
Or in 14.0, from 3.6.8 to 4.2.X to 4.4.X and finally 4.6.16.
Then there is hope that 15.0 will get an updated samba package. Maybe the decision depends upon how backwards compatible the new versions are with old configurations.

regards Henrik
 
Old 08-03-2023, 05:14 PM   #11
henca
Senior Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 1,012

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Quote:
Originally Posted by Olek View Post
It looks like patching samba version 4.15.13 is possible.
If those patches work also with old Samba 4.8 they should work with 4.15. Now there is hope for different solutions for Slackware 15.0.

If it doesn't cause to much trouble to update to a still maintained version of Samba I would prefer such a solution. Even if 4.15.13 gets patched it is still an unmaintained version which hasn't gotten any security updates since December. Before that, there was about one security update every month.

regards Henrik
 
Old 08-04-2023, 03:05 PM   #12
henca
Senior Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 1,012

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
I tried to download the contents of
ftp.slackware.com:/pub/slackware/slackware64-current/source/n/samba to a temporary directory of a Slackware64 15.0 machine. Then I ran the samba.SlackBuild as root and it successfully built:

Code:
Slackware package /tmp/samba-4.18.5-x86_64-1.txz created.
I haven't tried to install it though as this Slackware 15.0 is not intended to be any samba server. I can't say if it might cause any trouble with existing smb.conf files.

However, this might be the first step on a "roll your own solution".

It is nice to see that older versions of Slackware did jump samba versions. On the other hand, both those Slackware 14.0 and 14.2 are also examples of currently maintained versions of Slackware which have stopped on a version of samba which has been EOL since 2018.

regards Henrik
 
Old 08-04-2023, 11:57 PM   #13
henca
Senior Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 1,012

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Today, from the ChangeLog.txt of Slackware 15.0:

Code:
patches/packages/samba-4.18.5-x86_64-1_slack15.0.txz:  Upgraded.
  PLEASE NOTE: We are taking the unusual step of moving to the latest Samba
  branch because Windows has made changes that break Samba 4.15.x. The last
  4.15.x will be retained in /pasture as a fallback. There may be some
  required configuration changes with this, but we've kept using MIT Kerberos
  to try to have the behavior change as little as possible. Upgrade carefully.
  This update fixes security issues:
  When winbind is used for NTLM authentication, a maliciously crafted request
  can trigger an out-of-bounds read in winbind and possibly crash it.
  SMB2 packet signing is not enforced if an admin configured
  "server signing = required" or for SMB2 connections to Domain Controllers
  where SMB2 packet signing is mandatory.
  An infinite loop bug in Samba's mdssvc RPC service for Spotlight can be
  triggered by an unauthenticated attacker by issuing a malformed RPC request.
  Missing type validation in Samba's mdssvc RPC service for Spotlight can be
  used by an unauthenticated attacker to trigger a process crash in a shared
  RPC mdssvc worker process.
  As part of the Spotlight protocol Samba discloses the server-side absolute
  path of shares and files and directories in search results.
  For more information, see:
    https://www.samba.org/samba/security/CVE-2022-2127.html
    https://www.samba.org/samba/security/CVE-2023-3347.html
    https://www.samba.org/samba/security/CVE-2023-34966.html
    https://www.samba.org/samba/security/CVE-2023-34967.html
    https://www.samba.org/samba/security/CVE-2023-34968.html
    https://www.cve.org/CVERecord?id=CVE-2022-2127
    https://www.cve.org/CVERecord?id=CVE-2023-3347
    https://www.cve.org/CVERecord?id=CVE-2023-34966
    https://www.cve.org/CVERecord?id=CVE-2023-34967
    https://www.cve.org/CVERecord?id=CVE-2023-34968
  (* Security fix *)
regards Henrik
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba: after update from Mint 18.3 to 19, Windows cannot access Samba shares A_UK_LinuxUser Linux - Networking 2 07-08-2018 08:31 PM
[SOLVED] Setup help needed. Can only print from Slackware client through samba. Not even that. bonixavier Slackware 13 06-22-2011 01:13 PM
[Samba] Samba as PDC stopped trusting my Win 7 clients after a server update martdj Linux - Networking 1 01-14-2011 10:30 AM
[SOLVED] GRUB2 after a minor update of GRUB2 /boot prefix no longer needed?? wikapuki Linux - Software 1 10-24-2010 02:39 PM
Why F5 is needed to refresh after uploading file to samba server UltraSoul Linux - Software 2 06-27-2009 09:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration