A stack-based buffer overflow flaw was found in the X.Org X server and Xwayland. A mismatch between the X server and the libXfont2 library's maximum font name length can cause a stack buffer overflow during font alias resolution. The server allocates a 256 byte stack buffer but libXfont2's alias target name length is 1024 bytes. A font alias name between 257 and 1023 bytes causes the X server to copy that name into the undersized stack buffer without further checks. 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 due to a mismatch between buffer allocation (256 bytes) and libXfont2's maximum font name length (1024 bytes). Attackers can exploit this by providing font alias names between 257-1023 bytes to crash the server or achieve privilege escalation if running as root.
تم اكتشاف ثغرة تجاوز المخزن المؤقت في الذاكرة العميقة (Stack) في خادم X.Org وXwayland بسبب عدم توافق بين حجم المخزن المؤقت المخصص (256 بايت) والحد الأقصى لطول اسم الخط في مكتبة libXfont2 (1024 بايت). يمكن للمهاجمين استغلال هذه الثغرة بتوفير أسماء بدائل خطوط بطول يتراوح بين 257 و1023 بايت مما قد يؤدي إلى تعطل الخادم أو الحصول على امتيازات إدارية إذا كان الخادم يعمل بصلاحيات المسؤول الجذر.
A stack-based buffer overflow vulnerability exists in X.Org X server and Xwayland due to a mismatch between buffer allocation (256 bytes) and libXfont2's maximum font name length (1024 bytes). Attackers can exploit this by providing font alias names between 257-1023 bytes to crash the server or achieve privilege escalation if running as root.
Update X.Org X server and Xwayland to patched versions that align buffer allocation with libXfont2's maximum font name length of 1024 bytes. Implement input validation to reject font alias names exceeding 256 bytes. Restrict X server execution privileges and avoid running as root when possible. Monitor font configuration files for suspicious entries.
قم بتحديث خادم X.Org وXwayland إلى الإصدارات المصححة التي تتوافق مع حد الطول الأقصى لاسم الخط البالغ 1024 بايت. قم بتنفيذ التحقق من صحة المدخلات لرفض أسماء بدائل الخطوط التي تتجاوز 256 بايت. قيد امتيازات تنفيذ خادم X وتجنب التشغيل كمسؤول جذر عند الإمكان. راقب ملفات إعدادات الخطوط للبحث عن إدخالات مريبة.