-
- Downloads
Project 'benjaminl/shader-db' was moved to 'olivia/shader-db'. Please update any links and bookmarks that may still have the old path.
xkb: Fix buffer overflow in XkbVModMaskText()
The code in XkbVModMaskText() allocates a fixed sized buffer on the stack and copies the virtual mod name. There's actually two issues in the code that can lead to a buffer overflow. First, the bound check mixes pointers and integers using misplaced parenthesis, defeating the bound check. But even though, if the check fails, the data is still copied, so the stack overflow will occur regardless. Change the logic to skip the copy entirely if the bound check fails. CVE-2025-26595, ZDI-CAN-25545 This vulnerability was discovered by: Jan-Niklas Sohn working with Trend Micro Zero Day Initiative Signed-off-by:Olivier Fourdan <ofourdan@redhat.com> Reviewed-by:
Peter Hutterer <peter.hutterer@who-t.net> Part-of: <xorg/xserver!1828>
Loading
-
mentioned in commit alanc/libxkbfile@65977c33
-
mentioned in commit alanc/libxkbfile@f6592c6f
Please register or sign in to comment