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

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

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


Revision 1.2 - (show annotations) (download)
Wed Aug 9 04:48:45 2023 UTC (14 months, 3 weeks ago) by jpp
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Initial import

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