Skip to main content
Vulnerability Database/CVE-2024-43842

CVE-2024-43842: Linux Kernel Buffer Overflow Vulnerability

CVE-2024-43842 is a buffer overflow flaw in the Linux Kernel rtw89 WiFi driver that enables array bounds violations through incorrect index usage. This article covers technical details, affected versions, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-43842 Overview

CVE-2024-43842 is an out-of-bounds array access vulnerability in the Linux kernel's rtw89 Wi-Fi driver. The flaw resides in the rtw89_sta_info_get_iter() function, where the code validates status->he_gi against the array size but then uses rate->he_gi as the actual array index. When these two values differ and rate->he_gi exceeds the array boundary, the kernel reads memory outside the intended buffer. The upstream commit attributes the finding to the Linux Verification Center (linuxtesting.org) using the SVACE static analyzer. The issue affects systems running vulnerable Linux kernel versions that include the Realtek 802.11ax (rtw89) wireless driver.

Critical Impact

A local attacker with low privileges can trigger kernel memory corruption through the Wi-Fi driver, potentially leading to privilege escalation, information disclosure, or denial of service.

Affected Products

  • Linux Kernel (vulnerable versions containing the rtw89 driver prior to the fix)
  • Debian LTS distributions shipping affected kernel builds
  • Systems using Realtek 802.11ax Wi-Fi hardware supported by the rtw89 driver

Discovery Timeline

  • 2024-08-17 - CVE-2024-43842 published to the National Vulnerability Database
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-43842

Vulnerability Analysis

The vulnerability is categorized under CWE-129: Improper Validation of Array Index. It is a classic copy-paste error inside the rtw89_sta_info_get_iter() iterator used by the Realtek rtw89 Wi-Fi driver to report station statistics.

The function compares status->he_gi against the valid array size to ensure the index is in range. However, after the bounds check passes, the function dereferences the array using rate->he_gi instead of status->he_gi. When the two fields diverge and rate->he_gi is larger than the array, the kernel performs an out-of-bounds read on a lookup table used to translate the High Efficiency Guard Interval (HE-GI) value into a human-readable rate.

Exploitation requires local access and the ability to interact with the wireless driver, typically by triggering station information queries while connected to a Wi-Fi network. The resulting memory corruption can affect confidentiality, integrity, and availability of the kernel.

Root Cause

The root cause is a mismatched variable reference. The validation logic guards one variable (status->he_gi), while the array dereference uses a different variable (rate->he_gi). Because rate and status are independent structures populated separately by the driver, their he_gi fields can hold different values at runtime. The patch replaces rate->he_gi with status->he_gi so that the index used matches the index that was validated.

Attack Vector

The attack vector is local. A low-privileged user on an affected host must trigger code paths that populate station rate information, such as issuing iw or nl80211 queries, while connected via a rtw89-driven adapter. No user interaction beyond the local trigger is required, and successful exploitation runs within kernel context. Because the underlying mistake is a bounded index misuse rather than attacker-controlled memory, reliable weaponization requires shaping adjacent kernel memory, but denial of service through kernel panic is more straightforward.

The upstream fix is distributed across Linux stable branches via commits 7a0edc3d83af, 85099c7ce4f9, 96ae4de5bc4c, and a2a095c08b95. For technical specifics, see the Linux kernel commit and the Debian LTS Announcement.

Detection Methods for CVE-2024-43842

Indicators of Compromise

  • Unexpected kernel oops or panic messages referencing rtw89_sta_info_get_iter in dmesg or /var/log/kern.log.
  • KASAN (Kernel Address Sanitizer) reports of out-of-bounds reads originating from the rtw89 module when enabled on test or production kernels.
  • Repeated station information queries from an unprivileged local user process immediately preceding kernel instability.

Detection Strategies

  • Inventory running kernels and loaded modules; flag systems where lsmod lists rtw89_core, rtw89_pci, or rtw89_8852* and the kernel version precedes the stable patches referenced above.
  • Monitor endpoint telemetry for kernel crash events correlated with Wi-Fi driver stack traces.
  • Use vulnerability scanners that map installed kernel package versions to the Debian LTS advisory and the upstream stable fix commits.

Monitoring Recommendations

  • Collect and forward dmesg, journalctl -k, and crash dumps to a centralized logging platform for retrospective analysis.
  • Alert on sudden kernel module reloads or wireless subsystem restarts following rate-reporting operations.
  • Track package update status for linux-image-* across the fleet to confirm patched kernels are deployed.

How to Mitigate CVE-2024-43842

Immediate Actions Required

  • Apply the latest stable kernel update from your Linux distribution that includes the fix commits 7a0edc3d83af, 85099c7ce4f9, 96ae4de5bc4c, or a2a095c08b95.
  • For Debian LTS systems, install the kernel package referenced in the Debian LTS Announcement.
  • Restrict local shell access on multi-user hosts that use rtw89 Wi-Fi adapters until kernels are patched.

Patch Information

The upstream Linux kernel maintainers resolved the issue by replacing rate->he_gi with status->he_gi as the array index in rtw89_sta_info_get_iter(). The fix is available in multiple stable branches via the following commits: 7a0edc3d, 85099c7c, 96ae4de5, and a2a095c0. Reboot after updating the kernel package so the patched image is loaded.

Workarounds

  • On systems that do not use Realtek 802.11ax hardware, blacklist the rtw89 module to prevent it from loading until the kernel is patched.
  • Where Wi-Fi is not required (for example, server deployments), disable wireless interfaces through rfkill block wifi to eliminate the attack surface.
  • Enforce least privilege and restrict interactive logins to trusted administrators on hosts that must run the vulnerable driver.
bash
# Example: prevent the vulnerable rtw89 driver from loading until patched
echo 'blacklist rtw89_core' | sudo tee /etc/modprobe.d/blacklist-rtw89.conf
echo 'blacklist rtw89_pci'  | sudo tee -a /etc/modprobe.d/blacklist-rtw89.conf
sudo update-initramfs -u
sudo reboot

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.