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

CVE-2024-27075: Linux Kernel Buffer Overflow Vulnerability

CVE-2024-27075 is a buffer overflow vulnerability in the Linux Kernel DVB frontend driver that causes stack frame size issues with clang compiler. This article covers the technical details, affected versions, and mitigation.

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-27075 Overview

CVE-2024-27075 is a stack overflow vulnerability in the Linux kernel's dvb-frontends media driver. The flaw resides in the stv0367ter_set_frontend function within drivers/media/dvb-frontends/stv0367.c. When compiled with clang and KASAN_STACK enabled, the function produces a stack frame of 3624 bytes, exceeding the 2048-byte kernel limit. This excessive stack usage stems from duplicated i2c_msg structures created by the stv0367_writereg() register access function. The issue affects multiple Linux kernel versions and Debian Linux 10.0.

Critical Impact

Local attackers with low privileges can trigger stack exhaustion in the kernel, potentially leading to memory corruption, denial of service, or compromise of kernel integrity.

Affected Products

  • Linux Kernel (multiple versions prior to patches)
  • Debian Linux 10.0
  • Systems using DVB (Digital Video Broadcasting) stv0367 frontend drivers

Discovery Timeline

  • 2024-05-01 - CVE-2024-27075 published to NVD
  • 2024-06 - Debian LTS security announcements published
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-27075

Vulnerability Analysis

The vulnerability affects the Linux kernel's Digital Video Broadcasting (DVB) frontend driver for the STV0367 demodulator chip. The stv0367ter_set_frontend() function uses extensive stack allocation that exceeds safe kernel limits when built with specific compiler toolchains. Clang-generated code combined with KASAN (Kernel Address Sanitizer) stack instrumentation duplicates temporary i2c_msg structures on the stack during register writes. This behavior pushes the frame size to 3624 bytes against a kernel limit of 2048 bytes, creating conditions for stack overflow during driver operation [CWE-121].

Root Cause

The root cause lies in the implementation of stv0367_writereg(). The function creates temporary i2c_msg structures that KASAN_STACK instrumentation replicates across inlined call sites. When the compiler inlines these allocations into stv0367ter_set_frontend(), the cumulative stack usage grows beyond the kernel's safety threshold. The patch simplifies stv0367_writereg() and marks both register access functions noinline_for_stack to prevent structure duplication on the parent function's stack frame.

Attack Vector

Exploitation requires local access with low privileges on a system that loads the vulnerable stv0367 DVB frontend driver. An attacker invoking driver operations that trigger stv0367ter_set_frontend() can cause the kernel stack to overflow during tuning operations. Stack overflow in kernel context can corrupt adjacent kernel data, potentially leading to arbitrary kernel memory writes, system crashes, or privilege escalation. Technical details are available in the kernel git commits and Debian LTS Announcement.

Detection Methods for CVE-2024-27075

Indicators of Compromise

  • Unexpected kernel panic or oops messages referencing stv0367 or dvb-frontends in dmesg output
  • Stack corruption warnings or KASAN reports mentioning stv0367ter_set_frontend
  • Unexplained crashes on systems using DVB-T tuner hardware with the STV0367 chipset

Detection Strategies

  • Audit loaded kernel modules with lsmod | grep stv0367 to identify exposure on media systems
  • Check kernel version against the fixed commits listed in the kernel.org advisories
  • Monitor kernel logs for frame-size warnings or stack-related errors from DVB frontend drivers

Monitoring Recommendations

  • Collect and centralize kernel ring buffer logs for anomaly review
  • Alert on unexpected module loads of stv0367 on servers or workstations not designated for DVB use
  • Track kernel crash telemetry across the fleet to identify patterns consistent with stack corruption

How to Mitigate CVE-2024-27075

Immediate Actions Required

  • Apply the latest stable kernel update from your distribution containing the referenced upstream commits
  • For Debian 10 systems, install the kernel package updates referenced in Debian LTS announcements #17 and #20
  • Blacklist the stv0367 module on systems that do not require DVB-T tuner functionality

Patch Information

The fix is available in multiple stable kernel branches via commits 107052a8, 7a4cf27d, 8fad9c5b, c073c8ce, d20b64f1, d6b48951, ed514ecf, fa8b4729, and fb07104a. The patch rewrites stv0367_writereg() to avoid stack duplication and applies noinline_for_stack to both register access functions. See the Kernel Git Commit 107052a8 for the authoritative source change.

Workarounds

  • Prevent automatic loading of the vulnerable driver by adding blacklist stv0367 to /etc/modprobe.d/blacklist.conf
  • Restrict access to DVB device nodes under /dev/dvb/ using tighter filesystem permissions
  • Remove or disconnect STV0367-based DVB-T hardware on systems where the functionality is not required
bash
# Configuration example
echo "blacklist stv0367" | sudo tee /etc/modprobe.d/disable-stv0367.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.