hfs: Replace BUG_ON with error handling for CNID count checks
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.576.19.67.0In the Linux kernel, the following vulnerability has been resolved:
hfs: Replace BUG_ON with error handling for CNID count checks
In a06ec283e125 next_id, folder_count, and file_count in the super block info were expanded to 64 bits, and BUG_ONs were added to detect overflow. This triggered an error reported by syzbot: if the MDB is corrupted, the BUG_ON is triggered. This patch replaces this mechanism with proper error handling and resolves the syzbot reported bug.
Singed-off-by: Jori Koolstra <jkoolstra@xs4all.nl>
From the CVE record · Linux
The Linux kernel’s hfs code can trigger a BUG_ON when it encounters a corrupted HFS master directory block (MDB). The input does not specify how an attacker could supply the corrupted MDB or whether authentication or user interaction is required.
Anyone running a Linux kernel with hfs support should check their kernel version; affected versions are not specified.