diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-01-06 23:30:14 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-12-08 18:09:47 -0800 |
commit | bc8e20430b6f6378daf6ce4329029248a88af08b (patch) | |
tree | 738c0780099806ecda72ecbd9c851a0305306380 /xkb | |
parent | eeae42d60bf3d5663ea088581f6c28a82cd17829 (diff) |
dix: integer overflow in GetHosts() [CVE-2014-8092 2/4]
GetHosts() iterates over all the hosts it has in memory, and copies
them to a buffer. The buffer length is calculated by iterating over
all the hosts and adding up all of their combined length. There is a
potential integer overflow, if there are lots and lots of hosts (with
a combined length of > ~4 gig). This should be possible by repeatedly
calling ProcChangeHosts() on 64bit machines with enough memory.
This patch caps the list at 1mb, because multi-megabyte hostname
lists for X access control are insane.
Reported-by: Ilja Van Sprundel <ivansprundel@ioactive.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xkb')
0 files changed, 0 insertions, 0 deletions