Linux Kernel fbmem Use-After-Free Fixed in RHEL 8
Vulnerability Disclosure · 3 sources · Updated 3mo ago · First seen Sep 24, 2024

CVE-2021-47338 is a use-after-free flaw in the Linux kernel framebuffer-memory (fbmem) subsystem. When fb_delete_videomode() deletes a video mode still in use, it fails to honor the result of fbcon_mode_deleted(), leaving later framebuffer ioctl handling able to access freed memory in fb_mode_is_equal(). The defect, introduced in kernel 5.3, can cause crashes or undefined behavior and was detected with KASAN.
Red Hat rated the issue Moderate (CVSS 5.1 in its products), noting local access and high privileges are required, while NVD/cve.org assigned 7.8. Affected RHEL 8 kernel and kernel-rt packages were corrected through RHSA-2024:7000 and RHSA-2024:7001; RHEL 6, 7, and 9 kernel variants are listed as unaffected. Upstream fixes are available in kernels 5.4.134, 5.10.52, 5.12.19, 5.13.4, and 5.14, and administrators should deploy a current supported kernel because no practical mitigation is identified.
Why it matters
Impact assessment
CVE-2021-47338 affects RHEL 8 systems using affected kernel or kernel-rt packages and Linux systems running vulnerable upstream kernels with the fbdev framebuffer subsystem. Exploitation requires local access and high privileges in Red Hat’s assessment, limiting exposure primarily to already-privileged users or post-compromise activity; the principal known impact is kernel instability, including crashes and undefined behavior.
- Red Hat rates the issue Moderate: CVSS 5.1 (
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:H). - NVD and cve.org assign a CVSS v3.1 score of 7.8.
- Operational impact includes denial of service through kernel crashes; use-after-free defects can also create memory-disclosure or code-execution risk depending on memory conditions, although no such outcome is confirmed for this CVE.
- RHEL 8
kernelandkernel-rtare affected. RHEL 6, RHEL 7, and RHEL 9 kernel variants are listed as unaffected. - No exploitation in the wild, public exploit, or threat-actor activity is identified in the supplied references.
Affected entities
- Product: Linux kernel framebuffer memory subsystem (
fbmem) - Affected source components:
drivers/video/fbdev/core/fbmem.canddrivers/video/fbdev/core/modedb.c - Affected Red Hat products: Red Hat Enterprise Linux 8
kernelandkernel-rt - Fixed Red Hat advisories: RHSA-2024:7000 and RHSA-2024:7001


