Public bug reported:

We have an app that attempts to check for TLS connections on ports by
attempting to establish a TLS handshake. We recently noticed that
connecting to x11vnc on ubuntu 16.04 was causing x11vnc to crash.

I'm running on a fresh VM install of 16.04 LTS and x11vnc
0.9.13-1.2build1

Steps to reproduce:
1. `sudo apt-get install x11vnc -y`
2. `x11vnc -usepw` (Just throw in a garbage password)
3. In separate terminal: `openssl s_client -connect 127.0.0.1:5900`

I realize that I'm not starting x11vnc with the -ssl or -stunnel flag,
but a segfault when making a TLS connection doesn't seem desirable to
me.

GDB's output looks like this:

01/11/2016 13:14:30 Got connection from client 127.0.0.1
01/11/2016 13:14:30   other clients:
01/11/2016 13:14:30 Got TLS/SSL WebSockets connection

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff4aac0ab in ?? () from /usr/lib/x86_64-linux-gnu/libgnutls.so.30
(gdb) bt
#0  0x00007ffff4aac0ab in ?? () from /usr/lib/x86_64-linux-gnu/libgnutls.so.30
#1  0x00007ffff4aa1b39 in gnutls_certificate_set_x509_key_file2 ()
   from /usr/lib/x86_64-linux-gnu/libgnutls.so.30
#2  0x00007ffff7b8ddc2 in rfbssl_init_global ()
   from /usr/lib/x86_64-linux-gnu/libvncserver.so.1
#3  0x00007ffff7b8de7c in rfbssl_init ()
   from /usr/lib/x86_64-linux-gnu/libvncserver.so.1
#4  0x00007ffff7b8d1ba in webSocketsCheck ()
   from /usr/lib/x86_64-linux-gnu/libvncserver.so.1
#5  0x00007ffff7b83e0b in ?? ()
   from /usr/lib/x86_64-linux-gnu/libvncserver.so.1
#6  0x00007ffff7b8bdb3 in rfbProcessNewConnection ()
   from /usr/lib/x86_64-linux-gnu/libvncserver.so.1
#7  0x00007ffff7b8c218 in rfbCheckFds ()
   from /usr/lib/x86_64-linux-gnu/libvncserver.so.1
#8  0x00007ffff7b82f3c in rfbProcessEvents ()
   from /usr/lib/x86_64-linux-gnu/libvncserver.so.1
#9  0x00000000004a3af1 in ?? ()
#10 0x0000000000465a4a in ?? ()
#11 0x0000000000410e31 in ?? ()
#12 0x00007ffff5711830 in __libc_start_main (main=0x40de60, argc=2, 
    argv=0x7fffffffdfa8, init=<optimized out>, fini=<optimized out>, 
    rtld_fini=<optimized out>, stack_end=0x7fffffffdf98)
---Type <return> to continue, or q <return> to quit---
    at ../csu/libc-start.c:291
#13 0x000000000041b579 in ?? ()

** Affects: x11vnc (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1638652

Title:
  x11vnc segfault when making SSL connection

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/x11vnc/+bug/1638652/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to