CVE-2024-26982

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

No CVSS score yet EPSS 0.28%

Published 1 May 2024 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2024-26982

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-26982 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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]

Exploitation

EPSS 0.28%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 22.2% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Sep 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 6545b246a2c815a8fcd07d58240effb6ec3481b1, before 32c114a58236fe67141634774559f21f1dc96fd7
affected from 6545b246a2c815a8fcd07d58240effb6ec3481b1, before 4a1b6f89825e267e156ccaeba3d235edcac77f94
affected from 6545b246a2c815a8fcd07d58240effb6ec3481b1, before cf46f88b92cfc0e32bd8a21ba1273cff13b8745f
affected from 6545b246a2c815a8fcd07d58240effb6ec3481b1, before 5b99dea79650b50909c50aba24fbae00f203f013
affected from 6545b246a2c815a8fcd07d58240effb6ec3481b1, before be383effaee3d89034f0828038f95065b518772e
affected from 6545b246a2c815a8fcd07d58240effb6ec3481b1, before 7def00ebc9f2d6a581ddf46ce4541f84a10680e5
affected from 6545b246a2c815a8fcd07d58240effb6ec3481b1, before 9253c54e01b6505d348afbc02abaa4d9f8a01395
Other versions: unaffected
Linux
affected 2.6.29
unaffected before 2.6.29
unaffected from 5.4.291 up to and including 5.4.*
unaffected from 5.10.235 up to and including 5.10.*
unaffected from 5.15.179 up to and including 5.15.*
unaffected from 6.1.130 up to and including 6.1.*
unaffected from 6.6.30 up to and including 6.6.*
unaffected from 6.8.8 up to and including 6.8.*
unaffected 6.9 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-26982 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-26982

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-26982
trivy image --scanners vuln IMAGE | grep CVE-2024-26982

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-26982 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.