Skip to main content
Vulnerability Database/CVE-2026-97488

CVE-2026-97488: Linux Kernel QNX4 Buffer Overflow Vulnerability

CVE-2026-97488 is a buffer overflow vulnerability in the Linux kernel QNX4 filesystem that occurs when handling block sizes larger than PAGE_SIZE. This article covers technical details, affected versions, impact analysis, 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-2026-97488 Overview

CVE-2026-97488 affects the Linux kernel's qnx4 filesystem driver. The driver fails to handle set_blocksize failures when mounting a qnx4 image whose block size exceeds PAGE_SIZE. The qnx4 code relies on buffer_heads, which do not behave correctly under that condition. The result is a kernel BUG_ON assertion triggered inside folio_set_bh during the first __bread_gfp call on mount.

Critical Impact

Mounting a crafted or incompatible qnx4 filesystem image causes a kernel BUG_ON in folio_set_bh, producing a kernel panic and denial of service on the affected host.

Affected Products

  • Linux kernel versions containing the qnx4 filesystem driver prior to the fix commits
  • Distributions shipping vulnerable stable kernels pending backport of commits 60f7ccf, aac97a4, and c7d911e
  • Systems where the qnx4 filesystem module is loadable and mounting of untrusted images is possible

Discovery Timeline

  • 2026-09-24 - CVE-2026-97488 published to NVD
  • 2026-09-28 - Last updated in NVD database

Technical Details for CVE-2026-97488

Vulnerability Analysis

The qnx4 filesystem driver initializes a superblock and reads its first block through __bread_gfp. When the on-disk block size is larger than the system PAGE_SIZE, the buffer_head abstraction cannot map a single block to a folio. The function folio_set_bh enforces this invariant with BUG_ON(offset >= folio_size(folio)). The driver did not check the return value of set_blocksize, so execution proceeded into the folio code path with an invalid block size. The assertion then fires and the kernel panics.

This is a kernel driver denial-of-service issue rooted in missing error handling [Kernel Vulnerability]. Exploitation requires that a user be able to mount a qnx4 image, which typically means local privileges or an automount pathway for removable media.

Root Cause

The root cause is an unchecked failure in set_blocksize inside the qnx4 mount routine. On platforms where the on-disk block size exceeds PAGE_SIZE, set_blocksize cannot satisfy the request. Without validating this, the driver reaches __bread_gfp and folio_set_bh, which assume offset < folio_size(folio).

Attack Vector

An attacker with the ability to mount a qnx4 image can trigger the panic. The image needs a header specifying a block size greater than the running kernel's PAGE_SIZE. On systems where USB or removable media auto-mount qnx4 volumes, physical access alone can be sufficient. On servers, local privileges to invoke mount on an attacker-supplied file are typically required. The vulnerability does not provide code execution, only a hard kernel stop.

See the upstream fix in Kernel Git Commit c7d911e and stable backports 60f7ccf and aac97a4 for the exact code change.

Detection Methods for CVE-2026-97488

Indicators of Compromise

  • Kernel panic messages referencing BUG_ON inside folio_set_bh with a qnx4 call stack
  • dmesg entries showing __bread_gfp failures during qnx4_fill_super or mount of a qnx4 volume
  • Unexpected host reboots or hangs correlated with insertion of removable media or user-initiated mounts

Detection Strategies

  • Audit kernel logs for stack traces that include qnx4_fill_super, __bread_gfp, and folio_set_bh
  • Inventory hosts that load the qnx4 kernel module using lsmod and configuration management data
  • Alert on mount syscalls targeting filesystem type qnx4 from non-administrator users

Monitoring Recommendations

  • Forward kernel ring buffer and journald events to a central log platform and search for qnx4 panic signatures
  • Monitor udev and automount daemons for events that bind removable media to the qnx4 driver
  • Track kernel package versions across the fleet to confirm that fixed builds are deployed

How to Mitigate CVE-2026-97488

Immediate Actions Required

  • Apply vendor kernel updates that include commits 60f7ccf, aac97a4, and c7d911e
  • Blacklist the qnx4 kernel module on systems that do not need qnx4 support
  • Restrict mount privileges to administrators and disable automount for untrusted removable media

Patch Information

The upstream fix adds error handling for set_blocksize in the qnx4 mount path, returning an error to userspace instead of continuing into __bread_gfp. Reference the mainline change in Kernel Git Commit c7d911e and the stable backports Kernel Git Commit 60f7ccf and Kernel Git Commit aac97a4. Rebuild and reboot into the patched kernel to activate the fix.

Workarounds

  • Prevent loading of the qnx4 module by adding install qnx4 /bin/true to a file under /etc/modprobe.d/
  • Remove or restrict permissions on any qnx4.ko module file to stop on-demand loading
  • Disable user-space automount handlers for unknown filesystem types until the kernel is patched
bash
# Configuration example
# Block the qnx4 module from loading until the kernel is patched
echo 'install qnx4 /bin/true' | sudo tee /etc/modprobe.d/blacklist-qnx4.conf
sudo rmmod qnx4 2>/dev/null || true

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.