Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 947578 Details for
Bug 1151307
CVE-2014-8240 tigervnc: integer overflow flaw, leading to a heap-based buffer overflow in screen size handling
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
tigervnc-1.3.1-CVE-2014-8240.patch (proposed 1.3.1 patch)
tigervnc-1.3.1-CVE-2014-8240.patch (text/plain), 2.47 KB, created by
Tim Waugh
on 2014-10-16 11:41:25 UTC
(
hide
)
Description:
tigervnc-1.3.1-CVE-2014-8240.patch (proposed 1.3.1 patch)
Filename:
MIME Type:
Creator:
Tim Waugh
Created:
2014-10-16 11:41:25 UTC
Size:
2.47 KB
patch
obsolete
>diff -up tigervnc-1.3.1/unix/x0vncserver/Image.cxx.CVE-2014-8240 tigervnc-1.3.1/unix/x0vncserver/Image.cxx >--- tigervnc-1.3.1/unix/x0vncserver/Image.cxx.CVE-2014-8240 2008-03-19 16:14:48.000000000 +0000 >+++ tigervnc-1.3.1/unix/x0vncserver/Image.cxx 2014-10-16 12:23:08.013339234 +0100 >@@ -80,6 +80,14 @@ void Image::Init(int width, int height) > xim = XCreateImage(dpy, vis, DefaultDepth(dpy, DefaultScreen(dpy)), > ZPixmap, 0, 0, width, height, BitmapPad(dpy), 0); > >+ if (xim->bytes_per_line <= 0 || >+ xim->height <= 0 || >+ xim->height >= INT_MAX / xim->bytes_per_line) { >+ vlog.error("Invalid display size"); >+ XDestroyImage(xim); >+ exit(1); >+ } >+ > xim->data = (char *)malloc(xim->bytes_per_line * xim->height); > if (xim->data == NULL) { > vlog.error("malloc() failed"); >@@ -254,6 +262,17 @@ void ShmImage::Init(int width, int heigh > delete shminfo; > shminfo = NULL; > return; >+ } >+ >+ if (xim->bytes_per_line <= 0 || >+ xim->height <= 0 || >+ xim->height >= INT_MAX / xim->bytes_per_line) { >+ vlog.error("Invalid display size"); >+ XDestroyImage(xim); >+ xim = NULL; >+ delete shminfo; >+ shminfo = NULL; >+ return; > } > > shminfo->shmid = shmget(IPC_PRIVATE, >diff -up tigervnc-1.3.1/vncviewer/X11PixelBuffer.cxx.CVE-2014-8240 tigervnc-1.3.1/vncviewer/X11PixelBuffer.cxx >--- tigervnc-1.3.1/vncviewer/X11PixelBuffer.cxx.CVE-2014-8240 2011-08-23 13:04:46.000000000 +0100 >+++ tigervnc-1.3.1/vncviewer/X11PixelBuffer.cxx 2014-10-16 12:22:53.053261132 +0100 >@@ -105,6 +105,15 @@ PlatformPixelBuffer::PlatformPixelBuffer > ZPixmap, 0, 0, width, height, BitmapPad(fl_display), 0); > assert(xim); > >+ if (xim->bytes_per_line <= 0 || >+ xim->height <= 0 || >+ xim->height >= INT_MAX / xim->bytes_per_line) { >+ if (xim) >+ XDestroyImage(xim); >+ xim = NULL; >+ throw rfb::Exception("Invalid display size"); >+ } >+ > xim->data = (char*)malloc(xim->bytes_per_line * xim->height); > assert(xim->data); > } >@@ -169,6 +178,16 @@ int PlatformPixelBuffer::setupShm() > if (!xim) > goto free_shminfo; > >+ if (xim->bytes_per_line <= 0 || >+ xim->height <= 0 || >+ xim->height >= INT_MAX / xim->bytes_per_line) { >+ XDestroyImage(xim); >+ xim = NULL; >+ delete shminfo; >+ shminfo = NULL; >+ throw rfb::Exception("Invalid display size"); >+ } >+ > shminfo->shmid = shmget(IPC_PRIVATE, > xim->bytes_per_line * xim->height, > IPC_CREAT|0777);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1151307
: 947578