# CVE-2026-98135: ntfs: reject invalid sectors_per_cluster in the boot sector

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.10%, higher than 0% of CVEs (2026-12-01)
- Published: 2026-09-25T10:36:13.510Z
- Modified: 2026-10-19T10:18:12.687Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 6251f0b0de7d645e3591931ca4c11d8322c1866f before 7524c3145a3bac92bebbc47a29c007f1d874c9b3; from 6251f0b0de7d645e3591931ca4c11d8322c1866f before 323751a604e7533fa473874d999371592a614207; 7.1 (not affected: before 7.1; from 7.2.7 up to 7.2.*; from 7.3 up to *)
- linux linux_kernel: from 7.1 before 7.2.7; 7.3

## References

- <https://git.kernel.org/stable/c/7524c3145a3bac92bebbc47a29c007f1d874c9b3> (patch)
- <https://git.kernel.org/stable/c/323751a604e7533fa473874d999371592a614207> (patch)

## Sources

- CVE List: [CVE-2026-98135](https://www.cve.org/CVERecord?id=CVE-2026-98135), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98135](https://nvd.nist.gov/vuln/detail/CVE-2026-98135), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-98135 · Whole record: https://cve.day/CVE-2026-98135.json · Rebuilt by cve.day 2026-11-25T22:59:41.076Z
