Skip to main content
Mallory
← Back to News
endpoint-software-vulnerabilitywidely-deployed-product-advisoryprivilege-escalation-method

Linux Kernel fbmem Use-After-Free Fixed in RHEL 8

Vulnerability Disclosure · 3 sources · Updated 3mo ago · First seen Sep 24, 2024

Linux Kernel fbmem Use-After-Free Fixed in RHEL 8

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 kernel and kernel-rt are 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.c and drivers/video/fbdev/core/modedb.c
  • Affected Red Hat products: Red Hat Enterprise Linux 8 kernel and kernel-rt
  • Fixed Red Hat advisories: RHSA-2024:7000 and RHSA-2024:7001
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

3 events · May 22, 2024 – Sep 24, 2024
  1. Sep 24, 20242y ago

    Red Hat releases RHEL 8 fixes for CVE-2021-47338

    Red Hat released RHSA-2024:7000 for the affected RHEL 8 kernel and RHSA-2024:7001 for the affected RHEL 8 kernel-rt package, addressing CVE-2021-47338.

    CVE-2021-47338 - Red Hat Customer Portal
  2. May 22, 20243y ago

    Red Hat records CVE-2021-47338 as a medium-severity issue

    Red Hat reported and tracked CVE-2021-47338, classifying the Linux fbmem use-after-free issue with medium priority and medium severity.

    2282422 - (CVE-2021-47338) CVE-2021-47338 kernel: fbmem: Do not delete the mode that is still in use
  3. Reported May 21, 20243y ago

    Linux kernel CVE team assigns CVE-2021-47338

    The Linux kernel CVE team assigned CVE-2021-47338 to an fbmem flaw in which fb_delete_videomode() could delete a video mode still in use, resulting in a use-after-free. The issue was introduced in Linux kernel version 5.3 and fixed in stable versions 5.4.134, 5.10.52, 5.12.19, 5.13.4, and 5.14.

    CVE-2021-47338: fbmem: Do not delete the mode that is still in use
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Linux Kernel
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.