Description
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 (COMP_OPTS 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:
squashfs_comp_opts(msblk, buffer, length)
squashfs_xz_comp_opts()
if (comp_opts)
n = ffs(opts->dict_size) - 1;<----opts->dict_size=0, n=-1
if (opts->dict_size != (1 << n) && opts->dict_size !=
(1 << n) + (1 << (n + 1))) <----shift-out-of-bounds

Fix it by adding a dictionary size range check before the shift operation.
Published: 2026-10-18
Score: 4.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Kernel memory corruption
Action: Patch
AI Analysis

Impact

A malformed SquashFS image that sets the COMP_OPTS flag to 1 with a dictionary size of zero causes the kernel’s squashfs module to perform a left shift with a negative exponent. This shift-out-of-bounds condition corrupts kernel memory. The vulnerability does not explicitly provide a mechanism for arbitrary code execution, but memory corruption could lead to privilege escalation or a system crash if an attacker mounts such an image.

Affected Systems

All Linux kernel releases that include the squashfs filesystem compiled with the COMP_OPTS option enabled and accept images with a dictionary size of zero are affected. Versions that do not apply the patch adding a dictionary size range check remain vulnerable.

Risk and Exploitability

The CVSS score of 4.4 indicates a moderate impact; the EPSS score is less than 1 % and it is not listed in CISA’s KEV catalog. Exploitation requires local capability to mount a crafted SquashFS image, making it a local privilege escalation or denial‑of‑service vulnerability rather than a remote attack vector.

Generated by OpenCVE AI on October 23, 2026 at 06:35 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch that implements the dictionary size range check before any shift operations in squasfs_comp_opts().
  • If a patch is not yet available, disable the COMP_OPTS option for squashfs filesystems or ensure that any image mounted has a non‑zero dictionary size.
  • Validate SquashFS image metadata before mounting to detect a dictionary size of zero and reject or repair such images.

Generated by OpenCVE AI on October 23, 2026 at 06:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4850-1 linux-6.12 security update
Ubuntu USN Ubuntu USN USN-8961-1 Linux kernel vulnerabilities
History

Fri, 23 Oct 2026 00:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-190
CWE-788

Thu, 22 Oct 2026 12:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-1335
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Sun, 18 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-190
CWE-788

Sun, 18 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Description 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 (COMP_OPTS 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: squashfs_comp_opts(msblk, buffer, length) squashfs_xz_comp_opts() if (comp_opts) n = ffs(opts->dict_size) - 1;<----opts->dict_size=0, n=-1 if (opts->dict_size != (1 << n) && opts->dict_size != (1 << n) + (1 << (n + 1))) <----shift-out-of-bounds Fix it by adding a dictionary size range check before the shift operation.
Title squashfs: Add dictionary size range check to prevent shift-out-of-bounds
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-19T09:23:06.005Z

Reserved: 2026-09-25T10:25:14.361Z

Link: CVE-2026-98636

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-18T16:17:16.700

Modified: 2026-10-19T10:19:27.837

Link: CVE-2026-98636

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-18T00:00:00Z

Links: CVE-2026-98636 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T06:45:07Z

Weaknesses
  • CWE-1335

    Incorrect Bitwise Shift of Integer