Commit graph

45 commits

Author SHA1 Message Date
wiz
3c6fde3907 Fix CVE-2013-4396.
From a4d9bf1259ad28f54b6d59a480b2009cc89ca623 Mon Sep 17 00:00:00 2001
From: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Mon, 16 Sep 2013 21:47:16 -0700
Subject: [PATCH] Avoid use-after-free in dix/dixfonts.c: doImageText()

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->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.

Reported-by: Pedro Ribeiro <pedrib@gmail.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>


Bump PKGREVISION.
2013-10-08 20:33:54 +00:00
joerg
cc7e6b2be2 Restore part of patch-sa to get correct syntax for in/out. 2013-05-21 18:38:03 +00:00
obache
fd023b38f0 treat DragonFly same as newer FreeBSD.
PR pkg/47822.
2013-05-18 08:29:04 +00:00
richard
1e5deeebc4 xorg-server 1.12.4 is a maintenance release of the X.org X server. There
are only a handful of changes in this dot release, and with the pending
release of 1.13 next month, it's likely that this may be the final scheduled
release from the 1.12 branch; we will likely put out additional releases
from this branch, but they will no longer follow the standard 6-week
development cycle.

This version is identical to the previous release candidate except for
version numbers.

== Known Issues ==

Currently open bugs the 1.12 Tracker:
    https://bugs.freedesktop.org/show_bug.cgi?id=xserver-1.12
23938: keys occasionally get stuck with xorg-server 1.6.99.901
    http://bugs.freedesktop.org/23938
31501: crash accessing font info with xfs in fontpath
    http://bugs.freedesktop.org/31501
39094: WaitFor does not handle EIO (causes 100% cpu load)
    http://bugs.freedesktop.org/39094
39383: X server crashes when restarting KDE from Alt+F2
    http://bugs.freedesktop.org/39383
39949: RandR panning & scaling don't work
    http://bugs.freedesktop.org/39949
43988: crtc->desiredMode.name can point to freed memory.
    http://bugs.freedesktop.org/43988
44038: some 3D wine apps no longer work (bisected)
    http://bugs.freedesktop.org/44038
45445: Key press crashes the xserver when kdm is running
    http://bugs.freedesktop.org/45445
49170: crash when starting or after some time of using psi
    http://bugs.freedesktop.org/49170
50641: xorg-server-1.12.0 - When SELinux is enabled the xserver fails
    http://bugs.freedesktop.org/50641

== New Issues ==

If you encounter an issue that you think should block a future 1.12
release,
please follow the instructions listed in the wiki to raise this to our
attention.

http://www.x.org/wiki/Server112Branch

== Changes since 1.12.3 ==

Aaron Plattner (1):
      randr: Fix REQUEST vs. REQUEST_SIZE_MATCH mismatch

Adam Jackson (3):
      ephyr: Fix up some bizarre formatting
      randr: Fix up yet another corner case in preferred mode selection
      sync: Fix logic error from b55bf248581dc66321b24b29f199f6dc8d02db1b

Alan Coopersmith (10):
      OtherClientGone: Remove unreachable return statement
      Fix some overly indented/poorly line wrapped comments in dix/events.c
      Remove obsolete tab stop comments from hw/xfree86/parser/*.c
      ProcRRGetScreenInfo: swap configTimestamp as well
      xf86dga2.c & xf86vmode.c: Move REQUEST_SIZE_MATCH checks before using stuff
      Use calloc to zero fill buffers being allocated for replies & events
      Set padding bytes to 0 in WriteToClient
      Initialize padding bits to 0 in ErrorConnMax()
      Fix up formatting of initializers for arrays of structs
      Make indentation of dix/tables.c much more consistent and readable

Daniel Stone (5):
      DRI2: Remove prototype for DRI2DestroyDrawable
      Don't make failure to -nolisten fatal
      Xorg: Link XKB DDX library after core server libs
      Xinerama: Fix ExtensionInit prototype
      AllocDevicePair: Ensure XKB privates are initialised

Dave Airlie (2):
      xf86: cursor code got mangled by indenting
      kinput: allocate enough space for null character.

Jaroslav Šmíd (1):
      Bug 51375: Xorg doesn't set status for RRGetOutputInfo

Jeremy Huddleston (3):
      XQuartz: Silence an unused-variable warning
      XQuartz: Fix incorrect PseudoramiXExtensionInit prototype
      XQuartz: Call xp_window_bring_all_to_front if available in libXplugin

Jeremy Huddleston Sequoia (7):
      XQuartz: Fix xp_window_bring_all_to_front linking on OS versions with older libXplugin
      configure.ac: Version bump to 1.12.3.901 (1.12.4 RC1)
      XQuartz: console_redirect: Set the correct location for reading into the buffer
      XQuartz: console_redirect: Properly zero-out the tail of the array on realloc()
      configure.ac: Version bump to 1.12.3.902 (1.12.4 RC2)
      XQuartz: Bump version to 2.7.3
      configure.ac: Version bump to 1.12.4

Jon TURNEY (1):
      hw/xquartz: Various fixes for pseudoramiX.c

Julien Cristau (1):
      Bump video ABI version to 12.1

Keith Packard (4):
      randr: Clean up compiler warnings about unused and shadowing variables
      randr: Catch two more potential unset rrScrPriv uses
      Add 'install-headers' target in the top-level Makefile
      Only free Render filter names on last screen close

Michal Srb (1):
      Look for ModuleData only in appropriate library

Michel Dänzer (2):
      dri2: Add DRI2CreateDrawable2.
      glx: Free DRI2 drawable reference to destroyed GLX drawable.

Peter Hutterer (4):
      xkb: use local variable instead of casting arg
      dix: fix dereference before null check
      list.h: don't crash when removing an element from a NULL list
      dix: make sure the mask is set for emulated scroll events (#52508)

Ricardo Salveti de Araujo (1):
      randr: first check pScrPriv before using the pointer at RRFirstOutput

Simon Schubert (1):
      fb: reorder Bresenham error correction to avoid overshoot.

Vic Lee (1):
      ephyr: Resize screen automatically when parent window is resized

git tag: xorg-server-1.12.4
2013-05-16 05:38:31 +00:00
is
b1085e570b Fix CVE-2011-4028: File disclosure vulnerability.
use O_NOFOLLOW to open the existing lock file, so symbolic links
aren't followed, thus avoid revealing if it point to an existing
file. Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>

Fix CVE-2011-4029: File permission change vulnerability.
Use fchmod() to change permissions of the lock file instead of
chmod(), thus avoid the race that can be exploited to set a symbolic
link to any file or directory in the system. Signed-off-by: Matthieu
Herrb <matthieu.herrb@laas.fr> Reviewed-by: Alan Coopersmith
<alan.coopersmith@oracle.com>
2012-12-15 09:26:07 +00:00
joerg
3172745630 Just use AT&T assembler syntax all the time. 2012-05-04 16:40:01 +00:00
fhajny
eb06311f87 Fix build on SunOS, allow x86_64 as an SunOS platform (if set so in pkgsrc).
Bump PKGREVISION.
2012-03-13 14:13:52 +00:00
is
ccaf2dbf6a Fix broken occurences of the CPP macro mod(a,b) using a without parentheses
in an arithmetic expression, leading to surprising results when used later
with arithmetic expressions of the same precedence as parameter a.
This is very old X11 code, copy and pasted to several places over the years.
Fixed in 1.9something (which is in mit/external). OK by wiz@.
This seems to be the root cause of CVE-2010-1166.
2011-12-30 09:33:04 +00:00
wiz
fc6e4a7369 Fix build on DragonFly, from Antonio Huete Jimenez in PR 44015. 2010-10-31 23:43:08 +00:00
tnn
713b6b038f - Add patch from xsrc to make the server deal w/ PCI domains the way
the new libpciaccess expects
- bump libpciaccess version requirement to current
- bump PKGREVISON
- Addresses PR pkg/43493
2010-06-27 10:43:01 +00:00
tnn
56775183d5 Assorted fixes for fallout from X.org header rototill.
Bump revision.
2010-04-09 09:08:13 +00:00
jakllsch
b95310626b Upstream has done a black root window on startup for a while, no point in
doing it twice, and in a way that prevents `xsetroot -default` from working.
2009-10-29 19:12:03 +00:00
sno
014e8fa95a fix to build on FreeBSD7-STABE/amd64 2009-09-20 12:04:01 +00:00
hasso
976364249f Update to 1.6.3.
Changes in 1.6.3 since 1.6.2.901:

Adam Jackson (1):
      selinux: Only activate if policy says to be an object manager

Alan Coopersmith (2):
      Don't printf NULL pointers on HAL connection error
      Remove hardcoded gcc -Wall option from configure.ac

Ben Skeggs (1):
      quirk: use first detailed timing as preferred for PEA prod 9003 (rh#492359)

Keith Packard (1):
      Bump release number to 1.6.3

Rémi Cardona (1):
      config: add HAL error checks


Changes in 1.6.2.901 since 1.6.2:

Adam Jackson (1):
      xdmcp: Don't crash on X -query with more than 255 IP addresses. (#20675)

Alan Coopersmith (1):
      Fix build of drivers with 1.6.2 when not using --install-libxf86config

Benjamin Defnet (2):
      hw/xf86/modes: Set crtc mode/rotation/transform before calling set_mode_major
      randr: fix operation order so that rotation+transform works

Dave Airlie (1):
      xfree86: move didLock assignment down to where the function pointer is valid.

Julien Cristau (1):
      randr: fix server crash in RRGetScreenInfo

Keith Packard (2):
      Replace dixLookupResource by dixLookupResourceBy{Type,Class}
      Bump to version 1.6.2.901 (1.6.3 RC1)

Kim Woelders (1):
      Fix key repeat problem.

Matthias Hopf (1):
      randr: Nuke broken set_origin shortcut

Michel Dänzer (1):
      EXA: Only pass CT_YXBANDED to RECTS_TO_REGION() if that is really true.

Robert Noland (1):
      One = is more than adequate here.  Make is sh safe.

Rémi Cardona (1):
      configure: libXinerama isn't needed anymore
2009-08-01 11:06:23 +00:00
drochner
1df1fda841 add a patch from upstream to fix an assertion error with pixman-0.15.16
(see fdo bug #22642)
bump PKGREVISION
2009-07-21 11:15:53 +00:00
drochner
6609e229a4 zero out a local variable, fixes random behaviour in case a DRI hw module
cannot be loaded and the server falls back to software rendering, from
Rafal Boni per mail to tech-x11
bump PKGREVISION
2009-06-24 17:25:35 +00:00
wiz
d9d6dba9d0 Update to 1.6.1.901, first 1.6.2 prerelease.
Lots of changes since last pkgsrc version 1.4.x.
Based on patches provided by Hasso Tepper on pkgsrc-users.
Enable dri by default.

NOTE: You must install new versions of all dependencies, old ones
won't work!
2009-06-07 11:23:46 +00:00
drochner
cb580f0836 inspired by a change in trunk/xsrc:
pull in a patch from upstream which fixes wakeup storms in idletime
counter, reducing the system load significantly if a recent
gnome-screensaver in run
bump PKGREVISION
2009-03-26 20:02:45 +00:00
apb
7e4ea6b182 Modular-xorg-server-1.4.2nb5.
Apply the following patches from NetBSD xsrc/external/mit/xorg-server/dist;
thanks to joerg for providing a list of changes to apply.

2009-02-19 20:02  macallan

	* hw/xfree86/xaa/: xaaFillRect.c (1.2), xaaInitAccel.c (1.2),
	xaalocal.h (1.2):

	Actually use scanline image writes to upload images if available

2009-02-09 09:49  plunky

	* hw/xfree86/os-support/bsd/bsd_mouse.c (1.5):

	add horizontal mouse-wheel functionality to USB and WSMOUSE drivers

2009-02-02 03:06  christos

	* hw/xfree86/os-support/: bsd/bsd_mouse.c (1.4), xf86OSmouse.h
	(1.2):

	add a SetupMouse proc to condition the fd. Convert NetBSD's
	SetupAuto to SetupMouse.

2009-01-19 00:54  christos

	* hw/xfree86/os-support/bsd/bsd_mouse.c (1.3):

	fix ioctl.

2009-01-13 18:43  christos

	* hw/xfree86/os-support/bsd/bsd_mouse.c (1.2):

	Set the mouse event protocol version. (untested, but head will be
	broken unless I add this).
2009-03-14 11:00:21 +00:00
tnn
1d4350e30d add RCS id 2009-01-19 17:53:15 +00:00
wiz
1b0ed7eb62 Bump PKGREVISION, add patch from xsrc:
revision 1.2
date: 2008/11/23 21:58:25;  author: mrg;  state: Exp;  lines: +1 -0
patch from jmcneill@:

add a log message to notify what VT is in use.  helps gdm/consolekit.
2009-01-04 20:02:12 +00:00
ahoka
716761c1c1 According to Section 12.4 of the XKB Protocol Spec, if a key only has a single
group but the keyboard has multiple groups defined, the core description of
the key is a duplication of the single group across all symbols. i.e.
G1L1 G1L2 G1L1 G1L2 G1L3 G1L4 G1L3 G1L4

The previous code generated G1L1 G1L2 G1L3 G1L4 G1L3 G1L4, leading to
"invented" groups when the process is reversed.

Note that this creates wrong key types on reconstruction from core to xkb,
i.e. any single-group key with a key type that is not one of the canonical
four (Sec 12.2.3), will get the assigned type on group 1, and a canonical type
for the other gruops.

X.Org Bug 14373 <http://bugs.freedesktop.org/show_bug.cgi?id=14373>

Patch taken from the bugtracker entry.
2008-12-21 10:23:23 +00:00
joerg
a14de86ebc Add one small patch and drop the autoconf dependency. 2008-09-23 11:23:56 +00:00
bjs
93b676b5b8 Welcome to modular-xorg-server-1.4.2.
This long-overdue update brings many improvements:
  - Many improvements to EXA
  - Input Hotplugging via HAL or dbus (not enabled yet)
  - Support for RandR 1.2.  Users using a dual-head configuration are
    encouraged to see <http://www.x.org/wiki/Projects/XRandR> for more
    information.
  - The server now uses the same version of Mesa we have in pkgsrc;
    this likely will result in more reliable OpenGL/DRI operation.

I realize that this server is still not the latest release (1.5.0);
upgrading to that version will require an involved mesa update,
libpciaccess, etc.  I hope that by the next quarter, that work will be done.

Please file a problem report and/or contact us via the usual means
(mailing lists, etc.) should you encounter any issues.
2008-09-18 20:56:01 +00:00
tonnerre
27a7a5a3c8 modular-xorg-server patch-an has a broken path. 2008-07-13 20:41:46 +00:00
tonnerre
f1a9cd0035 Add some patches for vulnerabilities in different X.Org server extensions
(composite, render, record, etc).
2008-07-13 12:37:29 +00:00
joerg
6df846638a modular-xorg-server-1.3.0.0nb9:
Fix CVE-2008-1377, CVE-2008-1379, CVE-2008-2360, CVE-2008-2361 and
CVE-2008-2362 based on upstream patches.
2008-06-20 13:34:40 +00:00
joerg
853d51d929 modular-xorg-server-1.3.0nb5:
Fix a number of buffer-overflows, privacy-leaks and memory corruptions.
2008-02-25 15:39:16 +00:00
tnn
67b5e7f558 Back out my previous change as it was fixed in renderproto instead.
Also fixes pkg/37844, botched checksum for the dri option.
Thanks to Ryo HAYASAKA for noticing.
2008-01-23 03:19:33 +00:00
tnn
52fc18f05f hack around some fallout from the recent renderproto update.
render.h expects DIX to be a valid type, so include X.h to get it.
1.4 doesn't have this problem so consider it a stopgap solution.
2008-01-16 05:50:56 +00:00
joerg
f18a69e2ef When restoring the working version, it is better to actually use the old
copy and not one with random junk in it that doesn't match the checksum.
2007-11-01 14:43:47 +00:00
shannonjr
126c7ce006 Unfinished package 2007-10-29 16:04:53 +00:00
joerg
94827abc3f Restore fragment of patch-ab that got lost during the cross-compile
changes. This should fix the NetBSD and DragonFly issues. Bump revision.
2007-08-24 16:43:28 +00:00
joerg
595265ae32 Fix basic NetBSD SPARC support. This currently disables Sbus until
someone more involved in the platform take a look or I find the time to
merge the xsrc changes.
2007-08-16 20:10:15 +00:00
joerg
24243c1b88 Disable the SGML entity check. We never use it and it breaks
cross-compiliation. A less aggressive change has been made to
xorg-util-macros before.
2007-08-15 14:51:55 +00:00
joerg
895678fe23 Add modeline2c.awk, which replaces modeline2c.pl from Xorg.
This allows us to drop the Perl dependency.
2007-08-14 21:34:36 +00:00
joerg
03e53cf8d9 Update to modular xorg-server 1.3.0:
- RandR 1.2 support in the server (drivers must support it as well)
- many bug fixes, improvements for AIGLX and EXA etc pp
2007-08-05 23:30:19 +00:00
drochner
629af004e9 fix a possible memory corruption due to integer overflow in
ProcXCMiscGetXIDList()
(CVE-2007-1003)
bump PKGREVISION
2007-04-03 20:25:44 +00:00
drochner
f5d0e6a3c8 fix glx option for amd64, and make it build without private patches
to *proto pkgs, from Blair Sadewitz
2007-03-02 11:51:49 +00:00
drochner
7caa76450d -don't use the Xrandr version from randrproto for RRQueryVersion but
hardwire it to 1.1, otherwise we announce more than we can support
-add a "glx" option to build the "glx" extension -- this is work in
 progress (might need sone CFLAGS, see pkgsrc-wip)
-bump PKGREVISION
2007-02-26 17:51:16 +00:00
joerg
a93f35c867 Add initial DragonFly support. Not tested yet. 2007-02-05 23:08:36 +00:00
joerg
a0b501ba24 Remove patch-ac. Curse the developers who thought about expanding
SYS_LIBS in configure and not the actual Makefiles.
2007-01-26 17:38:31 +00:00
joerg
e9188ded8a Update to the modualar Xorg server to 1.2.0. Too many bugfixes and
other improvements to list here. Hard to find the details as the
accumulated ChangeLog is gone.
2007-01-24 13:34:40 +00:00
joerg
9bd3d342fb Fix build with libdrm-2.3.0. 2007-01-14 11:06:02 +00:00
joerg
3a96d69a40 Import modular-xorg-server-1.1.1 based on xorg-server from pkgsrc-wip.
The X.org X11 Server from the modularized source tree of
X.org X11.

Note that this most likely does not work on anything but NetBSD/i386
right now.
2006-11-14 16:59:30 +00:00