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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **Published:** 2026-10-18T15:20:07.184Z
- **Modified:** 2026-10-19T10:19:27.837Z

## Who should check

- Anyone running Linux \>= ff750311d30acc9564ef577050794953eee59f01, \< b02948a23455f8190a53887b2d2c13ae1d360cea; \>= ff750311d30acc9564ef577050794953eee59f01, \< 9d9c5c218ea356a1d88765214ad2919605280ab1; \>= ff750311d30acc9564ef577050794953eee59f01, \< 7a1c293e7aa17f1afaee0684e0e931fe23a5a6b1; \>= ff750311d30acc9564ef577050794953eee59f01, \< c68e0068a236f9a7dfc19720bdf11e5d80a85089; \>= ff750311d30acc9564ef577050794953eee59f01, \< 88c673a0bd233df44ca0020da82f4fd3876de27a; \>= ff750311d30acc9564ef577050794953eee59f01, \< 0cb85377daaefb4ce5ce72975f2deb27ee0e0cad; \>= ff750311d30acc9564ef577050794953eee59f01, \< e1ca4e3a380ef3e8f46ce006f1146392e3f32c98; \>= ff750311d30acc9564ef577050794953eee59f01, \< 1f7745fb3580152ca902ef181b605f33cabfb1d0
- Anyone running Linux 2.6.39

## 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.

## Affected and fixed versions

- Linux: \>= ff750311d30acc9564ef577050794953eee59f01, \< b02948a23455f8190a53887b2d2c13ae1d360cea; \>= ff750311d30acc9564ef577050794953eee59f01, \< 9d9c5c218ea356a1d88765214ad2919605280ab1; \>= ff750311d30acc9564ef577050794953eee59f01, \< 7a1c293e7aa17f1afaee0684e0e931fe23a5a6b1; \>= ff750311d30acc9564ef577050794953eee59f01, \< c68e0068a236f9a7dfc19720bdf11e5d80a85089; \>= ff750311d30acc9564ef577050794953eee59f01, \< 88c673a0bd233df44ca0020da82f4fd3876de27a; \>= ff750311d30acc9564ef577050794953eee59f01, \< 0cb85377daaefb4ce5ce72975f2deb27ee0e0cad; \>= ff750311d30acc9564ef577050794953eee59f01, \< e1ca4e3a380ef3e8f46ce006f1146392e3f32c98; \>= ff750311d30acc9564ef577050794953eee59f01, \< 1f7745fb3580152ca902ef181b605f33cabfb1d0 (cvelist)
- Linux: 2.6.39 (cvelist)

## Mitigation

- Upgrade Linux to 1f7745fb3580152ca902ef181b605f33cabfb1d0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98636. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98636.md
Affected: Linux >= ff750311d30acc9564ef577050794953eee59f01, < b02948a23455f8190a53887b2d2c13ae1d360cea; >= ff750311d30acc9564ef577050794953eee59f01, < 9d9c5c218ea356a1d88765214ad2919605280ab1; >= ff750311d30acc9564ef577050794953eee59f01, < 7a1c293e7aa17f1afaee0684e0e931fe23a5a6b1; >= ff750311d30acc9564ef577…
Fixed in: Linux 9d9c5c218ea356a1d88765214ad2919605280ab1, Linux 7a1c293e7aa17f1afaee0684e0e931fe23a5a6b1, Linux 88c673a0bd233df44ca0020da82f4fd3876de27a, Linux 0cb85377daaefb4ce5ce72975f2deb27ee0e0cad, Linux 1f7745fb3580152ca902ef181b605f33cabfb1d0

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98636 being exploited?

There is no confirmed exploitation: CVE-2026-98636 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98636?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98636?

Linux \>= ff750311d30acc9564ef577050794953eee59f01, \< b02948a23455f8190a53887b2d2c13ae1d360cea; \>= ff750311d30acc9564ef577050794953eee59f01, \< 9d9c5c218ea356a1d88765214ad2919605280ab1; \>= ff750311d30acc9564ef577050794953eee59f01, \< 7a1c293e7aa17f1afaee0684e0e931fe23a5a6b1; \>= ff750311d30acc9564ef577050794953eee59f01, \< c68e0068a236f9a7dfc19720bdf11e5d80a85089; \>= ff750311d30acc9564ef577050794953eee59f01, \< 88c673a0bd233df44ca0020da82f4fd3876de27a; \>= ff750311d30acc9564ef577050794953eee59f01, \< 0cb85377daaefb4ce5ce72975f2deb27ee0e0cad; \>= ff750311d30acc9564ef577050794953eee59f01, \< e1ca4e3a380ef3e8f46ce006f1146392e3f32c98; \>= ff750311d30acc9564ef577050794953eee59f01, \< 1f7745fb3580152ca902ef181b605f33cabfb1d0; Linux 2.6.39.

### Is there a fix for CVE-2026-98636?

Yes. Fixed in Linux 9d9c5c218ea356a1d88765214ad2919605280ab1, Linux 7a1c293e7aa17f1afaee0684e0e931fe23a5a6b1, Linux 88c673a0bd233df44ca0020da82f4fd3876de27a, Linux 0cb85377daaefb4ce5ce72975f2deb27ee0e0cad, Linux 1f7745fb3580152ca902ef181b605f33cabfb1d0. Upgrade Linux to 1f7745fb3580152ca902ef181b605f33cabfb1d0 or later.

### How do I check if I'm affected by CVE-2026-98636?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/b02948a23455f8190a53887b2d2c13ae1d360cea>
- other: <https://git.kernel.org/stable/c/9d9c5c218ea356a1d88765214ad2919605280ab1>
- other: <https://git.kernel.org/stable/c/7a1c293e7aa17f1afaee0684e0e931fe23a5a6b1>
- other: <https://git.kernel.org/stable/c/c68e0068a236f9a7dfc19720bdf11e5d80a85089>
- other: <https://git.kernel.org/stable/c/88c673a0bd233df44ca0020da82f4fd3876de27a>
- other: <https://git.kernel.org/stable/c/0cb85377daaefb4ce5ce72975f2deb27ee0e0cad>
- other: <https://git.kernel.org/stable/c/e1ca4e3a380ef3e8f46ce006f1146392e3f32c98>
- other: <https://git.kernel.org/stable/c/1f7745fb3580152ca902ef181b605f33cabfb1d0>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98636>

HTML: <https://flawdb.com/CVE-2026-98636> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98636>
