forked from pedrib/PoC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xorg-1.12.4.txt
35 lines (28 loc) · 1.02 KB
/
xorg-1.12.4.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
>> Discovered by Pedro Ribeiro ([email protected]), Agile Information Security
=================================================================================
Disclosure: 08/10/2013 / Last updated: 12/10/2014
Vulnerability: Use After Free
CVE-2013-4396
Criticality: High
CWE link: http://cwe.mitre.org/data/definitions/416.html
Filename(line): xorg-server-1.12.4/dix/dixfonts.c(1483)
Code snippet:
At line 1431, assume malloc fails to allocate:
data = malloc(c->nChars * itemSize);
if (!data) {
free(c);
err = BadAlloc;
goto bail;
}
c is then dereferenced at bail. In fact, even if it misses the first condition,
it might hit the second.
bail:
if (err != Success && c->client != serverClient) {
SendErrorToClient(c->client, c->reqType, 0, 0, err);
}
if (ClientIsAsleep(client)) {
ClientWakeup(c->client);
================
Agile Information Security Limited
http://www.agileinfosec.co.uk/
>> Enabling secure digital business >>