Linux Kernel HFS Filesystem CNID Count Overflow Vulnerability

Vulnerability

A vulnerability in the Linux kernel's handling of the HFS filesystem CNID counts has been addressed. The issue arose because the CNID-related counts in the superblock were expanded to 64 bits, and checks were added to detect overflow. However, this introduced a problem: if the Master Directory Block (MDB) was corrupted, the overflow check would trigger a BUG_ON error, halting execution. The vulnerability has been resolved by replacing the BUG_ON with proper error handling, preventing the system from crashing and instead allowing it to manage the error gracefully. This change addresses a bug reported by syzbot, which highlighted the issue with the corrupted MDB.

Impact

Exploitation of this vulnerability could lead to a system crash due to a triggered BUG_ON error, especially if the HFS filesystem's Master Directory Block is corrupted.

Added: May 6, 2026, 1:32 PM
Updated: May 6, 2026, 1:32 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.0
remediation
7.7
relevance
7.6
threat
3.2
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.