CVE-2026-98636: squashfs: Add dictionary size range check to prevent shift-out-of-bounds

Published Oct 18, 2026
·
Updated

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

squashfs: Add dictionary size range check to prevent shift-out-of-bounds

When an abnormal SquashFS image (COMPOPTS flag is 1 but dictionary size is 0) is mounted, and performs shift operations using dictionarysize, the shift exponent is -1, causing a shift-out-of-bounds.

Detail as below: squashfscompopts(msblk, buffer, length) squashfsxzcompopts() if (compopts) n = ffs(opts->dictsize) - 1;<----opts->dictsize=0, n=-1 if (opts->dictsize != (1 << n) && opts->dictsize != (1 << n) + (1 << (n + 1))) <----shift-out-of-bounds

Fix it by adding a dictionary size range check before the shift operation.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Add a dictionary size range check before shift operations in SquashFS compression option handling (squashfs_comp_opts/squashfs_xz_comp_opts), preventing an abnormal image with opts->dict_size=0 from producing n=-1 and a shift-out-of-bounds.

Event History

Oct 18, 2026
CVE Published
via MITRE·03:20 PM
Data Sourced
via MITRE·03:20 PM
Description
Data Sourced
via NVD·04:17 PM
Description

Frequently Asked Questions

1

What must an attacker provide to trigger this issue?

The system must mount an abnormal SquashFS image with the COMP_OPTS flag set to 1 and an XZ dictionary size of 0. Processing that image causes the kernel to calculate a shift exponent of -1 and perform an out-of-bounds shift.

2

Which systems are realistically exposed?

Systems that mount SquashFS images are exposed to malformed images meeting the specified compression-options condition. The provided information does not identify whether any particular distribution, kernel configuration, or default mounting behavior is affected.

3

What is the immediate mitigation if a fixed kernel cannot be deployed?

Avoid mounting untrusted or malformed SquashFS images, particularly images that use compression options with an XZ dictionary size of 0. The provided information does not specify an alternative configuration-based mitigation.

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