CyberSecBulletin
CVE-2023-5633NVD status: Modified

Red Hat Enterprise Linux 8: Use After Free

CVE-2023-5633 is a high-severity use after free vulnerability in Red Hat Enterprise Linux 8 from Red Hat, with a CVSS 3.1 base score of 7.8 out of 10. It can be exploited with local access to the system by an attacker with a low-privileged account, without any action from a user. There is no confirmed exploitation so far. EPSS estimates a 0.28% chance of exploitation within 30 days, which is low compared with other CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update Linux Kernel to 6.1.75 or 6.5.8, whichever matches your release line, or a later version.

Affected products and versions

VendorProductAffected versionsFixed in
Red HatRed Hat Enterprise Linux 8Not specified in the recordNot stated
Red HatRed Hat Enterprise Linux 8.8 Extended Update SupportNot specified in the recordNot stated
Red HatRed Hat Enterprise Linux 9Not specified in the recordNot stated
Red HatRed Hat Enterprise Linux 9.2 Extended Update SupportNot specified in the recordNot stated
Red HatRed Hat Enterprise Linux 6Not specified in the recordNot stated
Red HatRed Hat Enterprise Linux 7Not specified in the recordNot stated
LinuxLinux Kernel6.1.13 up to, but not including, 6.1.75; 6.2 up to, but not including, 6.5.8; 6.66.1.75, 6.5.8
Red HatCodeready Linux Builder8.0; 9.0Not stated
Red HatCodeready Linux Builder EUS8.8; 9.2; 9.4Not stated
Red HatCodeready Linux Builder For Arm648.0_aarch64; 9.0_aarch64Not stated
Red HatCodeready Linux Builder For Arm64 EUS8.8_aarch64; 9.2_aarch64; 9.4_aarch64Not stated
Red HatCodeready Linux Builder For IBM Z Systems9.0_s390xNot stated
Red HatCodeready Linux Builder For IBM Z Systems EUS9.2_s390x; 9.4_s390xNot stated
Red HatCodeready Linux Builder For Power Little Endian8.0_ppc64le; 9.0_ppc64leNot stated
Red HatCodeready Linux Builder For Power Little Endian EUS8.8_ppc64le; 9.2_ppc64le; 9.4_ppc64leNot stated
Red HatEnterprise Linux8.0; 9.0Not stated
Red HatEnterprise Linux EUS8.8; 9.2; 9.4Not stated
Red HatEnterprise Linux For Arm 648.0_aarch64; 9.0_aarch64Not stated
Red HatEnterprise Linux For Arm 64 EUS8.8_aarch64; 9.2_aarch64; 9.4_aarch64Not stated
Red HatEnterprise Linux For IBM Z Systems8.0_s390x; 9.0_s390xNot stated
Red HatEnterprise Linux For IBM Z Systems EUS8.8_s390x; 9.2_s390x; 9.4_s390xNot stated
Red HatEnterprise Linux For Power Little Endian8.0_ppc64le; 9.0_ppc64leNot stated
Red HatEnterprise Linux For Power Little Endian EUS9.2_ppc64le; 9.4_ppc64leNot stated
Red HatEnterprise Linux For Real Time8.0; 9.0Not stated
Red HatEnterprise Linux For Real Time For Nfv8.0; 9.0Not stated

Version data comes from the organisation that assigned the CVE; 3 further products are omitted here. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
LocalThe attacker needs local access or must trick a user into running something.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
LowA basic user account is enough.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
HighAll data handled by the component can be read.
Integrity
HighData or code can be modified at will.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 3.17.8HighCNA (redhat.com)
CVSS 3.17.8HighNVD

Official description

The reference count changes made as part of the CVE-2023-33951 and CVE-2023-33952 fixes exposed a use-after-free flaw in the way memory objects were handled when they were being used to store a surface. When running inside a VMware guest with 3D acceleration enabled, a local, unprivileged user could potentially use this flaw to escalate their privileges.

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Use After Free

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory belongs to the code that operates on the new pointer.

How developers prevent this class of flaw

  • Choose a language that provides automatic memory management.
  • When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.

More Use After Free vulnerabilities (CWE-416)

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
  3. Record last changed materially (score, affected products, status or references).

References

Patches and release notes

Other vulnerabilities in Red Hat Enterprise Linux 8

All Red Hat Enterprise Linux 8 vulnerabilities

Recent Use After Free vulnerabilities

Spotted an error? Tell us.