Skip to content
Heist/ feed
Unrated

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

Type: advisorySource: Official CVE List1 source record

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]

Announced Group revision 1
Original source ↗

CVE-2024-26982

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2024-26982

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6545b246a2c815a8fcd07d58240effb6ec3481b1",
        "lessThan": "32c114a58236fe67141634774559f21f1dc96fd7",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6545b246a2c815a8fcd07d58240effb6ec3481b1",
        "lessThan": "4a1b6f89825e267e156ccaeba3d235edcac77f94",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6545b246a2c815a8fcd07d58240effb6ec3481b1",
        "lessThan": "cf46f88b92cfc0e32bd8a21ba1273cff13b8745f",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6545b246a2c815a8fcd07d58240effb6ec3481b1",
        "lessThan": "5b99dea79650b50909c50aba24fbae00f203f013",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6545b246a2c815a8fcd07d58240effb6ec3481b1",
        "lessThan": "be383effaee3d89034f0828038f95065b518772e",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6545b246a2c815a8fcd07d58240effb6ec3481b1",
        "lessThan": "7def00ebc9f2d6a581ddf46ce4541f84a10680e5",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6545b246a2c815a8fcd07d58240effb6ec3481b1",
        "lessThan": "9253c54e01b6505d348afbc02abaa4d9f8a01395",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "fs/squashfs/inode.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "2.6.29"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "2.6.29",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.4.291",
        "versionType": "semver",
        "lessThanOrEqual": "5.4.*"
      },
      {
        "status": "unaffected",
        "version": "5.10.235",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.179",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.130",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.30",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.8.8",
        "versionType": "semver",
        "lessThanOrEqual": "6.8.*"
      },
      {
        "status": "unaffected",
        "version": "6.9",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "fs/squashfs/inode.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2024-26982

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#26472 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement