Peter Hutterer
8a1fa008b2
Xi: avoid integer truncation in length check of ProcXIChangeProperty
...
This fixes an OOB read and the resulting information disclosure.
Length calculation for the request was clipped to a 32-bit integer. With
the correct stuff->num_items value the expected request size was
truncated, passing the REQUEST_FIXED_SIZE check.
The server then proceeded with reading at least stuff->num_items bytes
(depending on stuff->format) from the request and stuffing whatever it
finds into the property. In the process it would also allocate at least
stuff->num_items bytes, i.e. 4GB.
The same bug exists in ProcChangeProperty and ProcXChangeDeviceProperty,
so let's fix that too.
CVE-2022-46344, ZDI-CAN 19405
This vulnerability was discovered by:
Jan-Niklas Sohn working with Trend Micro Zero Day Initiative
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
Acked-by: Olivier Fourdan <ofourdan@redhat.com >
(cherry picked from commit 8f454b793e )
2022-12-14 11:24:46 +10:00
..
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2021-04-13 14:28:13 +02:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-05-14 13:17:30 +01:00
2020-07-05 13:07:33 -07:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2022-07-01 15:15:15 +03:00
2020-03-30 21:48:11 +00:00
2021-05-30 13:26:37 +03:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2020-07-05 13:07:33 -07:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2014-03-27 14:09:43 +00:00
2017-04-26 15:25:27 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2020-03-30 21:48:11 +00:00
2012-03-21 13:54:42 -07:00
2017-06-19 11:58:56 +10:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2016-10-26 15:35:07 +10:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2019-02-14 09:10:58 +10:00
2013-05-07 09:41:19 +10:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2020-08-25 17:01:29 +02:00
2021-08-17 16:02:44 -04:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2022-12-14 11:24:39 +10:00
2012-03-21 13:54:42 -07:00
2022-12-14 11:24:46 +10:00
2012-03-21 13:54:42 -07:00
2021-05-30 13:46:59 +03:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2021-05-30 13:26:33 +03:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-03-01 10:16:20 -05:00
2012-03-21 13:54:42 -07:00
2017-06-07 14:49:04 +10:00
2012-03-21 13:54:42 -07:00