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

Published Sep 25, 2026
·
Updated

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

ntfs: reject invalid sectorspercluster in the boot sector

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

sectorsperclusterbits = ffs(sectorspercluster) - 1; ... vol->clustersize = vol->sectorsize << sectorsperclusterbits;

ffs(0) is 0, so sectorsperclusterbits 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.

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 25, 2026
CVE Published
via MITRE·10:36 AM
Data Sourced
via MITRE·10:36 AM
Description

Frequently Asked Questions

1

What input is required to trigger the vulnerable path?

The system must parse an NTFS boot sector whose sectors_per_cluster field is zero or another non-power-of-two value. The invalid value reaches the NTFS boot-sector parser and is used to derive a shift count.

2

How can I identify a possible occurrence?

A UBSAN-enabled kernel may report a shift-out-of-bounds warning in fs/ntfs/super.c, with a shift exponent of 4294967295 for a 32-bit int. This is consistent with a sectors_per_cluster value of zero.

3

What can be done before the fix is available?

Avoid mounting NTFS filesystems with malformed or untrusted boot sectors, particularly where sectors_per_cluster is zero or not a power of two. The fix rejects non-power-of-two values before they reach the unsafe shift calculation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203