Synopsis
The remote TencentOS Server 3 host is missing one or more security updates.
Description
The version of Tencent Linux installed on the remote TencentOS Server 3 host is prior to tested version. It is, therefore, affected by multiple vulnerabilities as referenced in the TSSA-2023:0077 advisory.
    Package updates are available for TencentOS Server 3 that fix the following vulnerabilities:
      CVE-2023-0494:
      A vulnerability was found in X.Org. This issue occurs due to a dangling pointer in     DeepCopyPointerClasses that can be exploited by ProcXkbSetDeviceInfo() and ProcXkbGetDeviceInfo() to read     and write into freed memory. This can lead to local privilege elevation on systems where the X server runs     privileged and remote code execution for ssh X forwarding sessions.
      CVE-2022-46340:
      A vulnerability was found in X.Org. The issue occurs due to the swap handler for the XTestFakeInput     request of the XTest extension, possibly corrupting the stack if GenericEvents with lengths larger than 32     bytes are sent through the XTestFakeInput request. This flaw can lead to local privilege elevation on     systems where the X server runs privileged and remote code execution for ssh X forwarding sessions. This     issue does not affect systems where the client and server use the same byte order.
      CVE-2022-4283:
      A vulnerability was found in X.Org. This issue occurs because the XkbCopyNames function leaves a     dangling pointer to freed memory, resulting in out-of-bounds memory access on subsequent XkbGetKbdByName     requests. This flaw can lead to local privilege elevation on systems where the X server runs privileged     and remote code execution for ssh X forwarding sessions.
      CVE-2022-46340:
      A vulnerability was found in X.Org. The issue occurs due to the swap handler for the XTestFakeInput     request of the XTest extension, possibly corrupting the stack if GenericEvents with lengths larger than 32     bytes are sent through the XTestFakeInput request. This flaw can lead to local privilege elevation on     systems where the X server runs privileged and remote code execution for ssh X forwarding sessions. This     issue does not affect systems where the client and server use the same byte order.
      CVE-2022-46341:
      A vulnerability was found in X.Org. This issue occurs because the handler for the XIPassiveUngrab     request accesses out-of-bounds memory when invoked with a high keycode or button code. This flaw can lead     to local privilege elevation on systems where the X server runs privileged and remote code execution for     ssh X forwarding sessions.
      CVE-2022-46342:
      A vulnerability was found in X.Org. This flaw occurs because the handler for the XvdiSelectVideoNotify     request may write to memory after it has been freed. This flaw can lead to local privilege elevation on     systems where the X server runs privileged and remote code execution for ssh X forwarding sessions.
      CVE-2022-46343:
      A vulnerability was found in X.Org. This issue occurs because the handler for the     ScreenSaverSetAttributes request may write to memory after it has been freed. This flaw can lead to local     privileges elevation on systems where the X server runs privileged and remote code execution for ssh X     forwarding sessions.
      CVE-2022-46344:
      A vulnerability was found in X.Org. The issue occurs because the handler for the XIChangeProperty     request has a length-validation issue, resulting in out-of-bounds memory reads and potential information     disclosure. This flaw can lead to local privilege elevation on systems where the X server runs privileged     and remote code execution for ssh X forwarding sessions.
      CVE-2022-3550:
      A flaw was found in the xorg-x11-server package. A buffer overflow can occur in the _GetCountedString     function in xkb/xkb.c due to improper input validation, allowing for possible escalation of privileges,     execution of arbitrary code, or a denial of service.
      CVE-2022-3551:
      A flaw was found in the xorg-x11-server package. The ProcXkbGetKbdByName function in xkb/xkb.c does not     release allocated data when an error is encountered, allowing for a memory leak.
Tenable has extracted the preceding description block directly from the Tencent Linux security advisory.
Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.
Solution
Update the affected packages.
Plugin Details
File Name: tencentos_TSSA_2023_0077.nasl
Supported Sensors: Nessus
Vulnerability Information
CPE: cpe:/o:tencent:tencentos_server:3, p-cpe:/a:tencent:tencentos_server:xorg-x11-server-xwayland
Required KB Items: Host/local_checks_enabled, Host/cpu, Host/etc/os-release, Host/TencentOS/rpm-list
Exploit Ease: No known exploits are available
Patch Publication Date: 6/14/2023
Vulnerability Publication Date: 6/14/2023