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-97926 Overview
CVE-2026-97926 is a Linux kernel vulnerability in the Unix File System (UFS) implementation. The ufs_read_cylinder() function copies cylinder group index and rotor positions directly from on-disk metadata into cached structures without validation. A crafted UFS image can set these fields to arbitrary values, causing out-of-bounds memory access during allocation and free operations. The flaw affects the fs_cs() cylinder summary lookup and the ubh_scanc() bitmap scanning routines used for block and inode allocation. Exploitation requires local access and the ability to mount a malicious filesystem image, typically through user interaction with removable media or image files.
Critical Impact
Mounting a crafted UFS image triggers out-of-bounds reads and writes in kernel memory, enabling potential privilege escalation, kernel memory corruption, or denial of service.
Affected Products
- Linux kernel versions containing the vulnerable ufs_read_cylinder() implementation
- Systems with the UFS filesystem driver (CONFIG_UFS_FS) enabled
- Distributions shipping affected stable kernel branches referenced in the upstream fix commits
Discovery Timeline
- 2026-09-25 - CVE-2026-97926 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97926
Vulnerability Analysis
The vulnerability resides in the UFS filesystem driver's cylinder group handling logic. The ufs_read_cylinder() function reads four 32-bit values from the on-disk cylinder group structure (ucg) and stores them in the cached per-cylinder-group information block (ucpi). These values include the cylinder group index (c_cgx) and three rotor positions (c_rotor, c_frotor, c_irotor) that track allocation progress for fragments, blocks, and inodes.
The cached values are consumed later during allocation and free paths without any sanity checks. This allows a malformed filesystem image to control kernel memory access patterns during normal filesystem operations.
Root Cause
The root cause is missing input validation on untrusted on-disk metadata. The c_cgx field indexes the cylinder summary array through UFS_SB(sb)->fs_cs(ucpi->c_cgx). A value greater than s_ncg causes a 32-bit counter write outside the s_csp allocation. The c_frotor field is used to compute a bitmap scan starting offset as start = c_frotor >> 3, with length derived from ((s_fpg + 7) >> 3) - start. When start exceeds the bitmap size, the unsigned subtraction wraps to a large value, causing ubh_scanc() to walk far beyond the cylinder group buffers. The c_irotor field drives the inode bitmap in the same manner, producing identical out-of-bounds behavior.
Attack Vector
Exploitation requires an attacker to supply a crafted UFS filesystem image that is subsequently mounted on the target system. The attack surface typically includes removable media processed by automounters, loop-mounted disk images handled by desktop environments, or privileged mount operations triggered by user interaction. Once mounted, routine allocation or free operations on the malicious filesystem trigger out-of-bounds reads and writes in kernel address space. The flaw maps to [CWE-20] Improper Input Validation and [CWE-787] Out-of-Bounds Write.
The vulnerable code pattern copies on-disk values directly into cached fields:
ucpi->c_cgx = fs32_to_cpu(sb, ucg->cg_cgx);
ucpi->c_rotor = fs32_to_cpu(sb, ucg->cg_rotor);
ucpi->c_frotor = fs32_to_cpu(sb, ucg->cg_frotor);
ucpi->c_irotor = fs32_to_cpu(sb, ucg->cg_irotor);
The upstream fix rejects any cylinder group whose recorded index does not match the group being read, or whose rotor values fall outside the group bounds, before the metadata is cached.
Detection Methods for CVE-2026-97926
Indicators of Compromise
- Kernel oops or panic messages referencing ufs_read_cylinder, ubh_scanc, or UFS allocation functions
- Unexpected mount operations on UFS filesystems from untrusted sources such as USB devices or downloaded disk images
- dmesg entries showing memory access faults within UFS code paths following a mount event
- Processes with elevated privileges spawning after a UFS mount operation
Detection Strategies
- Audit mount syscall telemetry for -t ufs or ufs2 filesystem types originating from non-system block devices
- Monitor kernel ring buffer logs for KASAN or slab corruption warnings tied to UFS symbols
- Correlate removable media insertion events with subsequent kernel subsystem errors
- Flag loop device creation followed by UFS mount operations in user sessions
Monitoring Recommendations
- Enable kernel audit rules for mount and umount syscalls across all endpoints
- Centralize dmesg and /var/log/kern.log collection to a SIEM for anomaly analysis
- Alert on any unprivileged user triggering filesystem mount operations through polkit or udisks2
- Track kernel version inventory to identify unpatched hosts exposed to the flaw
How to Mitigate CVE-2026-97926
Immediate Actions Required
- Apply the upstream Linux kernel patches referenced in the kernel.org commits as soon as distribution updates become available
- Disable automatic mounting of UFS filesystems from removable media in desktop environments
- Restrict mount capability to administrative users through polkit policy or sudo configuration
- Blacklist the ufs kernel module on systems that do not require UFS support
Patch Information
The fix is distributed across four upstream commits that add validation of cylinder group metadata before caching. See Kernel Git Commit 5902a95, Kernel Git Commit 87b12dc, Kernel Git Commit abde9eb, and Kernel Git Commit c9d263b. The patch rejects any cylinder group whose cg_cgx does not equal the group number or whose rotors fall outside the group.
Workarounds
- Unload the UFS module with modprobe -r ufs where the filesystem is not needed
- Add blacklist ufs to /etc/modprobe.d/blacklist.conf to prevent autoload
- Configure udisks2 to deny mounting of UFS filesystems via policy rules
- Enforce mount restrictions through SELinux or AppArmor profiles targeting unprivileged users
# Prevent the UFS module from loading on systems that do not need it
echo "blacklist ufs" | sudo tee /etc/modprobe.d/disable-ufs.conf
echo "install ufs /bin/true" | sudo tee -a /etc/modprobe.d/disable-ufs.conf
sudo modprobe -r ufs 2>/dev/null
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

