CVE-2026-98135

Source
https://cve.org/CVERecord?id=CVE-2026-98135
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98135.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-98135
Downstream
Published
2026-09-25T10:36:13Z
Modified
2026-09-26T03:48:33Z
Summary
ntfs: reject invalid sectors_per_cluster in the boot sector
Details

In the Linux kernel, the following vulnerability has been resolved:

ntfs: reject invalid sectors_per_cluster in the boot sector

is_boot_sector_ntfs() checks the boot sector's sectors_per_cluster field with a range test that rejects 0x81..0xf3 but accepts 0 and other non-power-of-two counts. A zero value reaches parse_ntfs_boot_sector():

sectors_per_cluster_bits = ffs(sectors_per_cluster) - 1;
...
vol->cluster_size = vol->sector_size << sectors_per_cluster_bits;

ffs(0) is 0, so sectors_per_cluster_bits becomes (unsigned)-1 and the shift is undefined:

UBSAN: shift-out-of-bounds in fs/ntfs/super.c:673:39 shift exponent 4294967295 is too large for 32-bit type 'int'

This change rejects any non-power-of-two value, since it feeds the aforementioned shift via ffs() - 1, which only yields the correct shift for a power of two.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98135.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6251f0b0de7d645e3591931ca4c11d8322c1866f
Fixed
7524c3145a3bac92bebbc47a29c007f1d874c9b3
Fixed
323751a604e7533fa473874d999371592a614207

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98135.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
7.1.0
Fixed
7.2.7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98135.json"