A flaw was found in the xorg-x11-server, where an out-of-bounds access can occur in the `SwapCreateRegister` function. This issue is related to the X Window System X.Org Server implementation and is associated with an out-of-bounds operation in the data buffer. The highest threat from this issue is to data confidentiality and integrity as well as system availability. Exploitation of the flaw may allow an attacker to access confidential data, compromise their integrity, and cause a denial of service. The vulnerability can be exploited by sending specially crafted requests, such as `RecordCreateContext` and `RecordRegisterClients`, to execute arbitrary code with elevated privileges.