1
0

029-CVE-2017-7494-v3-6.patch 897 B

1234567891011121314151617181920212223242526272829
  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. Bug: https://bugzilla.samba.org/show_bug.cgi?id=12780
  7. Signed-off-by: Volker Lendecke <vl@samba.org>
  8. Reviewed-by: Jeremy Allison <jra@samba.org>
  9. Reviewed-by: Stefan Metzmacher <metze@samba.org>
  10. ---
  11. source3/rpc_server/srv_pipe.c | 5 +++++
  12. 1 file changed, 5 insertions(+)
  13. --- a/source3/rpc_server/srv_pipe.c
  14. +++ b/source3/rpc_server/srv_pipe.c
  15. @@ -473,6 +473,11 @@ bool is_known_pipename(const char *cli_f
  16. pipename += 1;
  17. }
  18. + if (strchr(pipename, '/')) {
  19. + DEBUG(1, ("Refusing open on pipe %s\n", pipename));
  20. + return false;
  21. + }
  22. +
  23. if (lp_disable_spoolss() && strequal(pipename, "spoolss")) {
  24. DEBUG(10, ("refusing spoolss access\n"));
  25. return false;