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

CVE-2026-97489: Linux Kernel Buffer Overflow Vulnerability

CVE-2026-97489 is a buffer overflow vulnerability in the Linux kernel BFS filesystem that can cause system crashes when mounting filesystems. This article covers technical details, affected versions, impact, 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-2026-97489 Overview

CVE-2026-97489 is a Linux kernel vulnerability in the Berkeley Fast File System (bfs) implementation. The flaw stems from the filesystem's failure to handle set_blocksize errors when the block size exceeds PAGE_SIZE. The bfs driver uses buffer_heads, which do not correctly support block sizes larger than a page. Mounting an affected filesystem triggers a BUG_ON(offset >= folio_size(folio)) assertion inside folio_set_bh during the first __bread_gfp call. The kernel maintainers resolved the issue through upstream commits in the stable tree.

Critical Impact

A local attacker able to mount a crafted bfs filesystem image can trigger a kernel BUG_ON assertion, causing a denial-of-service condition on the host.

Affected Products

  • Linux kernel versions containing the bfs filesystem driver prior to the fix
  • Stable kernel trees patched by commits 2430e338, 7cc713b2, and ab1d6160
  • Distributions shipping vulnerable kernel builds with bfs support enabled

Discovery Timeline

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

Technical Details for CVE-2026-97489

Vulnerability Analysis

The Berkeley Fast File System driver in the Linux kernel invokes set_blocksize during the mount path to configure the block device for I/O. The bfs implementation did not check the return value of this call and did not reject block sizes larger than PAGE_SIZE. The driver's reliance on buffer_heads creates an incompatibility, because buffer_heads cannot represent blocks spanning multiple pages within a single folio.

When the driver subsequently calls __bread_gfp to read filesystem metadata, the kernel enters folio_set_bh with an offset exceeding the folio size. This triggers the BUG_ON(offset >= folio_size(folio)) safety check, halting kernel execution on that path. The result is a kernel oops or panic on mount.

Root Cause

The root cause is missing error handling around set_blocksize and absent validation that the on-disk block size is less than or equal to PAGE_SIZE. This represents an improper input validation and null-check-style defect in a file system driver [CWE-754].

Attack Vector

Exploitation requires the ability to mount a bfs filesystem image on a vulnerable kernel. An attacker with mount privileges, or a system that auto-mounts attached removable media, can supply a crafted image whose superblock declares a block size greater than the system page size. The resulting assertion failure produces a denial-of-service condition. No arbitrary code execution has been demonstrated.

See the upstream fix in the Linux Kernel Commit Change for the full source-level correction.

Detection Methods for CVE-2026-97489

Indicators of Compromise

  • Kernel panic or oops messages referencing folio_set_bh and __bread_gfp in dmesg or /var/log/kern.log
  • BUG_ON entries with offset >= folio_size(folio) recorded after a mount operation
  • Mount failures associated with bfs filesystem images from untrusted sources

Detection Strategies

  • Monitor kernel ring buffer output for assertion failures involving buffer_head or folio helpers following filesystem mount events
  • Audit mount syscalls that specify -t bfs and correlate with the mounting user and image source
  • Track automated media handlers (udisks, systemd-mount) that may trigger mounts of attacker-supplied images

Monitoring Recommendations

  • Forward kernel logs to a central store and alert on BUG_ON and kernel BUG at fs/buffer.c patterns
  • Baseline the kernel version and bfs module load state across the fleet to identify unpatched hosts
  • Review removable-media and container-mount events for bfs filesystem types, which are rare in production

How to Mitigate CVE-2026-97489

Immediate Actions Required

  • Apply the stable kernel update that includes the upstream commits referenced in the advisory
  • Blacklist the bfs kernel module on systems that do not require UnixWare BFS compatibility
  • Restrict unprivileged mount operations and disable auto-mount of untrusted removable media

Patch Information

The fix is delivered through the following upstream commits: Linux Kernel Commit Change, Linux Kernel Commit Update, and Linux Kernel Commit Modification. Rebuild and deploy kernel packages that incorporate these commits, then reboot affected hosts.

Workarounds

  • Prevent the bfs module from loading by adding it to /etc/modprobe.d/blacklist.conf
  • Enforce noauto and non-root ownership on removable-media mount points
  • Limit the CAP_SYS_ADMIN capability within containers and user namespaces to block arbitrary mount calls
bash
# Configuration example
# Blacklist the bfs module to prevent loading on vulnerable kernels
echo "blacklist bfs" | sudo tee /etc/modprobe.d/disable-bfs.conf
echo "install bfs /bin/true" | sudo tee -a /etc/modprobe.d/disable-bfs.conf
sudo rmmod bfs 2>/dev/null || true
sudo update-initramfs -u

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.