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-97486 Overview
CVE-2026-97486 is a Linux kernel vulnerability in the High Performance File System (HPFS) driver. The HPFS driver uses buffer_heads, which do not handle block sizes greater than PAGE_SIZE correctly. When the driver fails to properly handle set_blocksize failures, mounting an HPFS filesystem triggers a BUG_ON(offset >= folio_size(folio)) assertion in folio_set_bh during the first __bread_gfp call. This kernel assertion causes a system crash, leading to denial of service. The issue has been resolved upstream through the Linux kernel stable tree.
Critical Impact
Mounting a crafted or incompatible HPFS filesystem triggers a kernel BUG_ON assertion, crashing the kernel and causing denial of service.
Affected Products
- Linux kernel versions containing the HPFS filesystem driver prior to the fix
- Distributions shipping the vulnerable HPFS driver
- Systems where HPFS filesystem mounting is enabled
Discovery Timeline
- 2026-09-24 - CVE-2026-97486 published to NVD
- 2026-09-28 - Last updated in NVD database
Technical Details for CVE-2026-97486
Vulnerability Analysis
The HPFS filesystem driver in the Linux kernel relies on the legacy buffer_head mechanism for block I/O operations. The buffer_head subsystem assumes that filesystem block sizes do not exceed the system PAGE_SIZE. When the driver attempts to configure a block size through set_blocksize and the call fails, the HPFS code does not check the return value or propagate the error. Execution then continues into block read paths that depend on the block size being properly initialized. The first __bread_gfp call hits a BUG_ON(offset >= folio_size(folio)) inside folio_set_bh, panicking the kernel. This is a kernel crash condition classified as a denial of service vulnerability.
Root Cause
The root cause is missing error handling in the HPFS mount path. The driver assumes set_blocksize succeeds and does not validate the result before dereferencing block-sized structures. Combined with the buffer_head limitation on block sizes exceeding PAGE_SIZE, this allows the kernel to reach an unreachable code path guarded by BUG_ON.
Attack Vector
An attacker or local user with permission to mount filesystems can supply a crafted HPFS image or storage device that triggers the set_blocksize failure. Mounting the image causes the kernel to crash. In environments that allow automatic mounting of removable media, physical access to a USB device may be sufficient to trigger the bug. Remote exploitation is not applicable because mounting requires local privileges or interaction with removable storage.
No verified public exploit code is available. The vulnerability manifests during the mount sequence, specifically on the first buffer-head read after block size negotiation. See the kernel stable commits referenced below for the technical fix.
Detection Methods for CVE-2026-97486
Indicators of Compromise
- Kernel panic or BUG_ON log entries referencing folio_set_bh and offset >= folio_size(folio).
- Crash traces including __bread_gfp and HPFS mount functions in the call stack.
- Unexpected system reboots correlated with HPFS mount attempts in dmesg or journalctl.
Detection Strategies
- Audit kernel versions against the fixed commits a405996f23e0, f27e21cf3c04, and fc79fcc78cb7 in the Linux stable tree.
- Monitor dmesg and /var/log/kern.log for HPFS driver errors or set_blocksize warnings during mount operations.
- Review mount events via auditd with rules on the mount syscall to track HPFS mount attempts.
Monitoring Recommendations
- Enable kernel crash dump collection (kdump) to capture stack traces for post-incident analysis.
- Alert on repeated kernel panics occurring shortly after USB or removable media insertion events.
- Track module load events for hpfs.ko using auditd or kernel audit framework.
How to Mitigate CVE-2026-97486
Immediate Actions Required
- Apply the Linux kernel update that includes the upstream fix from the stable tree.
- Blacklist the hpfs kernel module on systems that do not require HPFS filesystem support.
- Restrict mount privileges to administrative users and disable automatic mounting of untrusted removable media.
Patch Information
The fix was committed to the Linux kernel stable tree. Review the following commits for the full patch:
The patch adds proper error handling for set_blocksize failures within the HPFS mount path, aborting the mount cleanly instead of continuing into the buffer-head read path.
Workarounds
- Prevent the hpfs module from loading by adding blacklist hpfs to /etc/modprobe.d/blacklist.conf.
- Disable automount services such as udisks2 for removable media on servers.
- Remove the HPFS module file or build kernels without CONFIG_HPFS_FS enabled where HPFS support is not required.
# Blacklist the HPFS module to prevent loading
echo "blacklist hpfs" | sudo tee /etc/modprobe.d/blacklist-hpfs.conf
sudo depmod -a
# Verify the module is not currently loaded
lsmod | grep hpfs
# Unload if currently loaded (ensure no HPFS mounts are active)
sudo modprobe -r hpfs
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

