/[smeserver]/rpms/samba/sme10/CVE-2017-7494.patch
ViewVC logotype

Annotation of /rpms/samba/sme10/CVE-2017-7494.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Fri May 26 19:16:27 2017 UTC (7 years ago) by unnilennium
Branch: MAIN
CVS Tags: samba-4_6_2-12_el7_4, samba-4_4_4-12_6_el7_sme, samba-4_4_4-14_6_el7_sme, samba--, samba-4_6_2-12_3_el7_sme, samba-4_6_2-12_4_el7_sme, samba-4_6_2-12_2_el7_sme
* Fri May 26 2017 Jean-Philipe Pialasse <tests@pialasse.com> 4.4.4-14.6.sme
- import to SME the two last upstream releases [SME: 10326]
- resolves: #1450784 - Security fix for CVE-2017-7494
- resolves: #1437816 - Fix krb5 memory cache in libads sasl code
- resolves: #1437741 - Fix CVE-2016-2125, CVE-2016-2126 and CVE-2017-2619

1 unnilennium 1.1 From d2bc9f3afe23ee04d237ae9f4511fbe59a27ff54 Mon Sep 17 00:00:00 2001
2     From: Volker Lendecke <vl@samba.org>
3     Date: Mon, 8 May 2017 21:40:40 +0200
4     Subject: [PATCH] CVE-2017-7494: rpc_server3: Refuse to open pipe names with /
5     inside
6    
7     Bug: https://bugzilla.samba.org/show_bug.cgi?id=12780
8    
9     Signed-off-by: Volker Lendecke <vl@samba.org>
10     Reviewed-by: Jeremy Allison <jra@samba.org>
11     Reviewed-by: Stefan Metzmacher <metze@samba.org>
12     ---
13     source3/rpc_server/srv_pipe.c | 5 +++++
14     1 file changed, 5 insertions(+)
15    
16     diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c
17     index 0633b5f..c3f0cd8 100644
18     --- a/source3/rpc_server/srv_pipe.c
19     +++ b/source3/rpc_server/srv_pipe.c
20     @@ -475,6 +475,11 @@ bool is_known_pipename(const char *pipename, struct ndr_syntax_id *syntax)
21     {
22     NTSTATUS status;
23    
24     + if (strchr(pipename, '/')) {
25     + DEBUG(1, ("Refusing open on pipe %s\n", pipename));
26     + return false;
27     + }
28     +
29     if (lp_disable_spoolss() && strequal(pipename, "spoolss")) {
30     DEBUG(10, ("refusing spoolss access\n"));
31     return false;
32     --
33     1.9.1
34    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed