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

CVE-2026-97490: Linux Kernel AFFS Buffer Overflow Vulnerability

CVE-2026-97490 is a buffer overflow flaw in the Linux kernel AFFS filesystem that occurs when handling block sizes larger than PAGE_SIZE. This post explains its technical details, affected versions, and mitigation steps.

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

CVE-2026-97490 is a Linux kernel vulnerability in the Amiga Fast File System (AFFS) driver. The flaw stems from unhandled set_blocksize failures when AFFS encounters a block size larger than PAGE_SIZE. AFFS relies on buffer_heads, which do not accommodate block sizes exceeding the page size. Mounting an affected volume triggers a BUG_ON(offset >= folio_size(folio)) assertion inside folio_set_bh on the first __bread_gfp call. The result is a kernel panic during the mount operation.

Critical Impact

Mounting a crafted or misconfigured AFFS filesystem can trigger a kernel BUG_ON and cause a denial of service on the host.

Affected Products

  • Linux kernel versions containing the AFFS filesystem driver prior to the fix
  • Distributions shipping vulnerable upstream kernels with AFFS enabled
  • Systems where unprivileged mount of removable media is permitted

Discovery Timeline

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

Technical Details for CVE-2026-97490

Vulnerability Analysis

The AFFS filesystem driver reads superblock and metadata through the kernel buffer_head API. Buffer_heads in modern kernels are backed by folios, and the implementation assumes that a single buffer_head fits within one folio. When AFFS calls set_blocksize with a block size greater than PAGE_SIZE, the call can fail or produce a mismatch that AFFS does not check. The driver then proceeds to issue __bread_gfp to read the first block. Inside folio_set_bh, the kernel asserts that the buffer offset is within the folio size. The assertion fails and the kernel invokes BUG_ON, halting the mount path and producing a kernel oops.

Root Cause

The root cause is missing return-value handling for set_blocksize in the AFFS mount routine. The driver does not validate whether the requested block size is supported by the backing device or the buffer_head infrastructure. This is a kernel filesystem input validation issue, classified under the broader kernel vulnerability category.

Attack Vector

An attacker with the ability to mount an AFFS filesystem image, including crafted removable media or a specially prepared disk image, can trigger the BUG_ON. The outcome is a denial of service via kernel panic. The vulnerability requires local access and the privilege to invoke mount, directly or through automatic mount daemons that handle attached media.

No verified public exploit code is available. See the upstream commits for the fix mechanics: Kernel Git Commit 0861182a, Kernel Git Commit bb45146a, and Kernel Git Commit e01af5aa.

Detection Methods for CVE-2026-97490

Indicators of Compromise

  • Kernel oops or panic messages referencing folio_set_bh and BUG_ON(offset >= folio_size(folio))
  • Call traces including __bread_gfp originating from the affs module during mount
  • Unexpected system reboots or kernel log entries following insertion of removable media

Detection Strategies

  • Inventory running kernels and compare build versions against the fixed upstream commits
  • Monitor dmesg and /var/log/kern.log for AFFS-related stack traces and BUG assertions
  • Audit systems that have the affs kernel module loaded or auto-loadable via modprobe

Monitoring Recommendations

  • Forward kernel logs to a central log store and alert on BUG_ON and kernel panic patterns
  • Track mount system calls referencing filesystem type affs through audit rules
  • Alert on repeated mount failures from the same user or removable device

How to Mitigate CVE-2026-97490

Immediate Actions Required

  • Apply the upstream Linux kernel patches referenced in the kernel.org commits
  • Blacklist the affs module on systems that do not require Amiga filesystem support
  • Restrict mount privileges and disable automatic mounting of untrusted removable media

Patch Information

The fix adds error handling for set_blocksize failures in the AFFS mount path, preventing the driver from proceeding to __bread_gfp when the block size cannot be supported. Patches are available in the following upstream commits: Kernel Git Commit 0861182a, Kernel Git Commit bb45146a, and Kernel Git Commit e01af5aa. Rebuild and deploy kernels including these commits, or upgrade to the vendor-provided stable release.

Workarounds

  • Unload the affs module with modprobe -r affs where feasible
  • Prevent module auto-loading by adding install affs /bin/true to /etc/modprobe.d/
  • Enforce policy that only administrators can mount filesystems from removable devices
bash
# Configuration example
echo 'install affs /bin/true' | sudo tee /etc/modprobe.d/blacklist-affs.conf
sudo modprobe -r affs 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.