A stack-based buffer overflow flaw was found in the X.Org X server and Xwayland. The X server has multiple stack buffers sized XkbMaxShiftLevel * XkbNumKbdGroups but CheckKeyTypes() does not verify or clamp non-canonical key types to XkbMaxShiftLevel. A client can change key types to excessive shift levels and trigger stack overflows. This is caused by an incomplete fix of CVE-2025-26597. This may be used to crash the server, or for privilege escalation if the X server runs as root.
A stack-based buffer overflow vulnerability exists in X.Org X server and Xwayland where CheckKeyTypes() fails to validate key type shift levels, allowing clients to trigger stack overflows. This incomplete fix of CVE-2025-26597 can lead to server crashes or privilege escalation when the X server runs with elevated privileges.
تم اكتشاف ثغرة تجاوز المخزن المؤقت في الذاكرة المكدسة في خادم X.Org وXwayland حيث تفشل وظيفة CheckKeyTypes() في التحقق من صحة مستويات التحول في أنواع المفاتيح. يمكن للعملاء تغيير أنواع المفاتيح إلى مستويات تحول مفرطة وتفعيل تجاوزات المخزن المؤقت. هذه الثغرة قد تؤدي إلى توقف الخادم أو تصعيد الامتيازات إذا كان الخادم يعمل بصلاحيات الجذر.
A stack-based buffer overflow vulnerability exists in X.Org X server and Xwayland where CheckKeyTypes() fails to validate key type shift levels, allowing clients to trigger stack overflows. This incomplete fix of CVE-2025-26597 can lead to server crashes or privilege escalation when the X server runs with elevated privileges.
Update X.Org X server and Xwayland to patched versions that properly validate and clamp key type shift levels to XkbMaxShiftLevel. Implement input validation in CheckKeyTypes() function. Restrict X server execution privileges and run with minimal necessary permissions. Monitor for suspicious key type modification attempts.
قم بتحديث خادم X.Org وXwayland إلى الإصدارات المصححة التي تتحقق بشكل صحيح من مستويات التحول في أنواع المفاتيح. تطبيق التحقق من صحة الإدخال في وظيفة CheckKeyTypes(). تقييد امتيازات تنفيذ خادم X وتشغيله بأقل الأذونات الضرورية. مراقبة محاولات تعديل نوع المفتاح المريبة.