<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nx-libs/nx-X11/programs, branch pr/dix-cve-fixes</title>
<subtitle>NXv3 (redistributed) 
</subtitle>
<id>https://cgit.arctica-project.org/nx-libs/atom?h=pr%2Fdix-cve-fixes</id>
<link rel='self' href='https://cgit.arctica-project.org/nx-libs/atom?h=pr%2Fdix-cve-fixes'/>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/'/>
<updated>2015-05-31T02:03:55+00:00</updated>
<entry>
<title>dix: Allow zero-height PutImage requests (fix for X.Org's CVE-2015-3418).</title>
<updated>2015-05-31T02:03:55+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2015-05-01T11:09:24+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=2db01a9a28c4d1aa5483fe7004e1cf2c50e5f1ee'/>
<id>urn:sha1:2db01a9a28c4d1aa5483fe7004e1cf2c50e5f1ee</id>
<content type='text'>
 The length checking code validates PutImage height and byte width by
 making sure that byte-width &gt;= INT32_MAX / height. If height is zero,
 this generates a divide by zero exception. Allow zero height requests
 explicitly, bypassing the INT32_MAX check.

 Fix for regression introduced by fix for CVE-2014-8092.

 v2: backports to nx-libs 3.6.x (Mike Gabriel)
 v3: port to NXdispatch.c rather than dispatch.c (Mike DePaulo)

 Signed-off-by: Keith Packard &lt;keithp@keithp.com&gt;
</content>
</entry>
<entry>
<title>dix: integer overflow in ProcPutImage() [CVE-2014-8092 1/4]</title>
<updated>2015-05-31T01:59:45+00:00</updated>
<author>
<name>Alan Coopersmith</name>
<email>alan.coopersmith@oracle.com</email>
</author>
<published>2014-01-23T05:11:16+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=8623faa422c3659903bdb5d19eb8947579e6141f'/>
<id>urn:sha1:8623faa422c3659903bdb5d19eb8947579e6141f</id>
<content type='text'>
ProcPutImage() calculates a length field from a width, left pad and depth
specified by the client (if the specified format is XYPixmap).

The calculations for the total amount of memory the server needs for the
pixmap can overflow a 32-bit number, causing out-of-bounds memory writes
on 32-bit systems (since the length is stored in a long int variable).

v2: backport to nx-libs 3.6.x (Mike DePaulo)
v3: port to NXdispatch.c rather than dispatch.c (Mike DePaulo)

Reported-by: Ilja Van Sprundel &lt;ivansprundel@ioactive.com&gt;
Signed-off-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
Reviewed-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;

Conflicts:
	dix/dispatch.c
</content>
</entry>
<entry>
<title>Avoid use-after-free in dix/dixfonts.c: doImageText() [CVE-2013-4396] from xorg/Xserver http://lists.x.org/archives/xorg-announce/2013-October/002332.html</title>
<updated>2015-05-31T01:58:57+00:00</updated>
<author>
<name>Mike DePaulo</name>
<email>mikedep333@gmail.com</email>
</author>
<published>2015-02-09T01:01:27+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=c2298e0757106c03f2a9a95d5493102f33c3cfdb'/>
<id>urn:sha1:c2298e0757106c03f2a9a95d5493102f33c3cfdb</id>
<content type='text'>
Save a pointer to the passed in closure structure before copying it
and overwriting the *c pointer to point to our copy instead of the
original.  If we hit an error, once we free(c), reset c to point to
the original structure before jumping to the cleanup code that
references *c.

Since one of the errors being checked for is whether the server was
able to malloc(c-&gt;nChars * itemSize), the client can potentially pass
a number of characters chosen to cause the malloc to fail and the
error path to be taken, resulting in the read from freed memory.

Since the memory is accessed almost immediately afterwards, and the
X server is mostly single threaded, the odds of the free memory having
invalid contents are low with most malloc implementations when not using
memory debugging features, but some allocators will definitely overwrite
the memory there, leading to a likely crash.

v2: Apply to NXdixfonts.c rather than dixfonts.c (Mike DePaulo)
</content>
</entry>
<entry>
<title>Merge pull request #36 from ArcticaProject/pr/render-cve-fixes</title>
<updated>2015-05-26T08:31:46+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2015-05-26T08:31:46+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=e364fde72b064143a16d4f51ed34fa5e27f96004'/>
<id>urn:sha1:e364fde72b064143a16d4f51ed34fa5e27f96004</id>
<content type='text'>
XRender CVE fixes for nxagent (X.Org CVE-2014-8100)</content>
</entry>
<entry>
<title>render: unvalidated lengths in Render extn. swapped procs [CVE-2014-8100 2/2]</title>
<updated>2015-05-24T23:03:10+00:00</updated>
<author>
<name>Alan Coopersmith</name>
<email>alan.coopersmith@oracle.com</email>
</author>
<published>2014-01-27T03:51:29+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=a0c90ad34fa89e5358893701723bd2f96a4bd3b2'/>
<id>urn:sha1:a0c90ad34fa89e5358893701723bd2f96a4bd3b2</id>
<content type='text'>
v2: backport to nx-libs 3.6.x (Mike DePaulo)
v3: port to NXrender.c rather than render.c (Mike DePaulo)

Signed-off-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
Reviewed-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;

Conflicts:
	render/render.c
</content>
</entry>
<entry>
<title>render: check request size before reading it [CVE-2014-8100 1/2]</title>
<updated>2015-05-24T23:02:56+00:00</updated>
<author>
<name>Julien Cristau</name>
<email>jcristau@debian.org</email>
</author>
<published>2014-10-28T09:30:04+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=e469cff02d3093062ce9243185d55c516efdad0b'/>
<id>urn:sha1:e469cff02d3093062ce9243185d55c516efdad0b</id>
<content type='text'>
Otherwise we may be reading outside of the client request.

v2: backport to nx-libs 3.6.x (Mike DePaulo)
v3: port to NXrender.c rather than render.c (Mike DePaulo)

Signed-off-by: Julien Cristau &lt;jcristau@debian.org&gt;
Reviewed-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
Signed-off-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;

Conflicts:
	render/render.c
</content>
</entry>
<entry>
<title>hw/nxagent clean-up: Drop NXrandr.{c|h} client lib copy-of-code from nxagent hardware driver.</title>
<updated>2015-05-20T10:16:15+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2015-05-20T09:30:05+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=a6185abd93143524eaddd617ad2cc20a4bd198f0'/>
<id>urn:sha1:a6185abd93143524eaddd617ad2cc20a4bd198f0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>library clean-up: Don't build libNX_Xrandr anymore. Use system's libXrandr shared library.</title>
<updated>2015-05-20T10:16:15+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2015-05-01T13:57:02+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=e9dcab679cb686b25df921c2c233198cb9dcfbb8'/>
<id>urn:sha1:e9dcab679cb686b25df921c2c233198cb9dcfbb8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>library clean-up: Don't build libNX_Xdamage anymore. Use system's libXdamage shared library. (Fixes ArcticaProject/nx-libs#6, X2GoBTS#826).</title>
<updated>2015-05-01T13:46:01+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2015-04-27T14:08:06+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=06aa41671963dac9fa4bf84a8fc996a5360c94b0'/>
<id>urn:sha1:06aa41671963dac9fa4bf84a8fc996a5360c94b0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dix: Allow zero-height PutImage requests (fix for X.Org's CVE-2015-3418).</title>
<updated>2015-05-01T11:17:03+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2015-05-01T11:09:24+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=dba779d9f99ab2fc6bf05c78515dbdd82840cadd'/>
<id>urn:sha1:dba779d9f99ab2fc6bf05c78515dbdd82840cadd</id>
<content type='text'>
 The length checking code validates PutImage height and byte width by
 making sure that byte-width &gt;= INT32_MAX / height. If height is zero,
 this generates a divide by zero exception. Allow zero height requests
 explicitly, bypassing the INT32_MAX check.

 Fix for regression introduced by fix for CVE-2014-8092.

 v2: backports to nx-libs 3.6.x (Mike Gabriel)
 Signed-off-by: Keith Packard &lt;keithp@keithp.com&gt;
</content>
</entry>
</feed>
