Files
xserver/Xext
Peter Hutterer 842ca3ccef Xext: free the screen saver resource when replacing it
This fixes a use-after-free bug:

When a client first calls ScreenSaverSetAttributes(), a struct
ScreenSaverAttrRec is allocated and added to the client's
resources.

When the same client calls ScreenSaverSetAttributes() again, a new
struct ScreenSaverAttrRec is allocated, replacing the old struct. The
old struct was freed but not removed from the clients resources.

Later, when the client is destroyed the resource system invokes
ScreenSaverFreeAttr and attempts to clean up the already freed struct.

Fix this by letting the resource system free the old attrs instead.

CVE-2022-46343, ZDI-CAN 19404

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>
2022-12-14 11:02:40 +10:00
..
2021-08-08 12:43:01 +00:00
2015-07-08 16:40:58 -04:00
2020-07-05 13:07:33 -07:00
2014-11-12 10:25:00 +10:00
2020-07-05 13:07:33 -07:00
2016-09-28 15:25:07 -04:00
2014-01-12 10:24:11 -08:00
2020-07-05 13:07:33 -07:00
2012-03-21 13:54:42 -07:00
2017-10-10 23:33:34 +02:00
2014-11-12 10:25:00 +10:00
2014-01-12 10:24:11 -08:00