Skip to content
Heist/ feed
Unrated

Squashfs: sanity check symbolic link size

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: Squashfs: sanity check symbolic link size Syzkiller reports a "KMSAN: uninit-value in pick_link" bug. This is caused by an uninitialised page, which is ultimately caused by a corrupted symbolic link size read from disk. The reason why the corrupted symlink size causes an uninitialised page is due to the following sequence of events: 1. squashfs_read_inode() is called to read the symbolic link from disk. This assigns the corrupted value 3875536935 to inode->i_size. 2. Later squashfs_symlink_read_folio() is called, which assigns this corrupted value to the length variable, which being a signed int, overflows producing a negative number. 3. The following loop that fills in the page contents checks that the copied bytes is less than length, which being negative means the loop is skipped, producing an uninitialised page. This patch adds a sanity check which checks that the symbolic link size is not larger than expected. -- V2: fix spelling mistake.

Announced Source revision 1
Original source ↗

CVE-2024-46744

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-46744

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": "f82cb7f24032ed023fc67d26ea9bf322d8431a90",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6545b246a2c815a8fcd07d58240effb6ec3481b1",
        "lessThan": "1b9451ba6f21478a75288ea3e3fca4be35e2a438",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6545b246a2c815a8fcd07d58240effb6ec3481b1",
        "lessThan": "5c8906de98d0d7ad42ff3edf2cb6cd7e0ea658c4",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6545b246a2c815a8fcd07d58240effb6ec3481b1",
        "lessThan": "087f25b2d36adae19951114ffcbb7106ed405ebb",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6545b246a2c815a8fcd07d58240effb6ec3481b1",
        "lessThan": "fac5e82ab1334fc8ed6ff7183702df634bd1d93d",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6545b246a2c815a8fcd07d58240effb6ec3481b1",
        "lessThan": "c3af7e460a526007e4bed1ce3623274a1a6afe5e",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6545b246a2c815a8fcd07d58240effb6ec3481b1",
        "lessThan": "ef4e249971eb77ec33d74c5c3de1e2576faf6c90",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6545b246a2c815a8fcd07d58240effb6ec3481b1",
        "lessThan": "810ee43d9cd245d138a2733d87a24858a23f577d",
        "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": "4.19.322",
        "versionType": "semver",
        "lessThanOrEqual": "4.19.*"
      },
      {
        "status": "unaffected",
        "version": "5.4.284",
        "versionType": "semver",
        "lessThanOrEqual": "5.4.*"
      },
      {
        "status": "unaffected",
        "version": "5.10.226",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.167",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.110",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.51",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.10.10",
        "versionType": "semver",
        "lessThanOrEqual": "6.10.*"
      },
      {
        "status": "unaffected",
        "version": "6.11",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "fs/squashfs/inode.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2024-46744

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

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