# CVE-2024-26982: Squashfs: check the inode number is not the invalid value of zero

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

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.35% (percentile 21, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2024-05-01T05:27:11.032Z
- **Modified:** 2026-10-15T01:17:35.220Z

## Who should check

- Anyone running Linux \>= 6545b246a2c815a8fcd07d58240effb6ec3481b1, \< 32c114a58236fe67141634774559f21f1dc96fd7; \>= 6545b246a2c815a8fcd07d58240effb6ec3481b1, \< 4a1b6f89825e267e156ccaeba3d235edcac77f94; \>= 6545b246a2c815a8fcd07d58240effb6ec3481b1, \< cf46f88b92cfc0e32bd8a21ba1273cff13b8745f; \>= 6545b246a2c815a8fcd07d58240effb6ec3481b1, \< 5b99dea79650b50909c50aba24fbae00f203f013; \>= 6545b246a2c815a8fcd07d58240effb6ec3481b1, \< be383effaee3d89034f0828038f95065b518772e; \>= 6545b246a2c815a8fcd07d58240effb6ec3481b1, \< 7def00ebc9f2d6a581ddf46ce4541f84a10680e5; \>= 6545b246a2c815a8fcd07d58240effb6ec3481b1, \< 9253c54e01b6505d348afbc02abaa4d9f8a01395
- Anyone running Linux 2.6.29

## Description

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

Squashfs: check the inode number is not the invalid value of zero

Syskiller has produced an out of bounds access in fill\_meta\_index().

That out of bounds access is ultimately caused because the inode
has an inode number with the invalid value of zero, which was not checked.

The reason this causes the out of bounds access is due to following
sequence of events:

1. Fill\_meta\_index() is called to allocate (via empty\_meta\_index())
   and fill a metadata index.  It however suffers a data read error
   and aborts, invalidating the newly returned empty metadata index.
   It does this by setting the inode number of the index to zero,
   which means unused (zero is not a valid inode number).

2. When fill\_meta\_index() is subsequently called again on another
   read operation, locate\_meta\_index() returns the previous index
   because it matches the inode number of 0.  Because this index
   has been returned it is expected to have been filled, and because
   it hasn't been, an out of bounds access is performed.

This patch adds a sanity check which checks that the inode number
is not zero when the inode is created and returns -EINVAL if it is.

\[phillip@squashfs.org.uk: whitespace fix\]

## Affected and fixed versions

- Linux: \>= 6545b246a2c815a8fcd07d58240effb6ec3481b1, \< 32c114a58236fe67141634774559f21f1dc96fd7; \>= 6545b246a2c815a8fcd07d58240effb6ec3481b1, \< 4a1b6f89825e267e156ccaeba3d235edcac77f94; \>= 6545b246a2c815a8fcd07d58240effb6ec3481b1, \< cf46f88b92cfc0e32bd8a21ba1273cff13b8745f; \>= 6545b246a2c815a8fcd07d58240effb6ec3481b1, \< 5b99dea79650b50909c50aba24fbae00f203f013; \>= 6545b246a2c815a8fcd07d58240effb6ec3481b1, \< be383effaee3d89034f0828038f95065b518772e; \>= 6545b246a2c815a8fcd07d58240effb6ec3481b1, \< 7def00ebc9f2d6a581ddf46ce4541f84a10680e5; \>= 6545b246a2c815a8fcd07d58240effb6ec3481b1, \< 9253c54e01b6505d348afbc02abaa4d9f8a01395 (cvelist)
- Linux: 2.6.29 (cvelist)

## Mitigation

- Upgrade Linux to 9253c54e01b6505d348afbc02abaa4d9f8a01395 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-26982.md
Affected: Linux >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 32c114a58236fe67141634774559f21f1dc96fd7; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 4a1b6f89825e267e156ccaeba3d235edcac77f94; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < cf46f88b92cfc0e32bd8a21ba1273cff13b8745f; >= 6545b246a2c815a8fcd07d5…
Fixed in: Linux 32c114a58236fe67141634774559f21f1dc96fd7, Linux 4a1b6f89825e267e156ccaeba3d235edcac77f94, Linux 5b99dea79650b50909c50aba24fbae00f203f013, Linux 7def00ebc9f2d6a581ddf46ce4541f84a10680e5, Linux 9253c54e01b6505d348afbc02abaa4d9f8a01395

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-2024-26982 being exploited?

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

### How serious is CVE-2024-26982?

High: CVSS 7.1 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-26982?

Linux \>= 6545b246a2c815a8fcd07d58240effb6ec3481b1, \< 32c114a58236fe67141634774559f21f1dc96fd7; \>= 6545b246a2c815a8fcd07d58240effb6ec3481b1, \< 4a1b6f89825e267e156ccaeba3d235edcac77f94; \>= 6545b246a2c815a8fcd07d58240effb6ec3481b1, \< cf46f88b92cfc0e32bd8a21ba1273cff13b8745f; \>= 6545b246a2c815a8fcd07d58240effb6ec3481b1, \< 5b99dea79650b50909c50aba24fbae00f203f013; \>= 6545b246a2c815a8fcd07d58240effb6ec3481b1, \< be383effaee3d89034f0828038f95065b518772e; \>= 6545b246a2c815a8fcd07d58240effb6ec3481b1, \< 7def00ebc9f2d6a581ddf46ce4541f84a10680e5; \>= 6545b246a2c815a8fcd07d58240effb6ec3481b1, \< 9253c54e01b6505d348afbc02abaa4d9f8a01395; Linux 2.6.29.

### Is there a fix for CVE-2024-26982?

Yes. Fixed in Linux 32c114a58236fe67141634774559f21f1dc96fd7, Linux 4a1b6f89825e267e156ccaeba3d235edcac77f94, Linux 5b99dea79650b50909c50aba24fbae00f203f013, Linux 7def00ebc9f2d6a581ddf46ce4541f84a10680e5, Linux 9253c54e01b6505d348afbc02abaa4d9f8a01395. Upgrade Linux to 9253c54e01b6505d348afbc02abaa4d9f8a01395 or later.

### How do I check if I'm affected by CVE-2024-26982?

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

- patch: <https://git.kernel.org/stable/c/be383effaee3d89034f0828038f95065b518772e>
- patch: <https://git.kernel.org/stable/c/7def00ebc9f2d6a581ddf46ce4541f84a10680e5>
- patch: <https://git.kernel.org/stable/c/9253c54e01b6505d348afbc02abaa4d9f8a01395>
- other: <https://git.kernel.org/stable/c/32c114a58236fe67141634774559f21f1dc96fd7>
- other: <https://git.kernel.org/stable/c/4a1b6f89825e267e156ccaeba3d235edcac77f94>
- other: <https://git.kernel.org/stable/c/cf46f88b92cfc0e32bd8a21ba1273cff13b8745f>
- other: <https://git.kernel.org/stable/c/5b99dea79650b50909c50aba24fbae00f203f013>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GCBZZEC7L7KTWWAS2NLJK6SO3IZIL4WW/>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-503939.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## 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-2024-26982>

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