VDB

CVE-2024-46744

CVE-2024-46744 PUBLISHED

Squashfs: sanity check symbolic link size

Reported by linux · Published September 18, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-headersAmazon Linux4.14.355-271.569.amzn2
kernel-toolsAmazon Linux4.14.355-271.569.amzn2
kernel-livepatch-6.1.111-120.187Amazon Linux1.0-0.amzn2023
kernel-libbpf-staticAmazon Linux6.1.111-120.187.amzn2023
kernelAmazon Linux4.14.355-271.569.amzn2
perfAmazon Linux6.1.111-120.187.amzn2023, 4.14.355-271.569.amzn2
kernel-libbpf-develAmazon Linux6.1.111-120.187.amzn2023
kernel-livepatch-4.14.355-271.569Amazon Linux1.0-0.amzn2
linux_kernellinux6.10.10, 6.6.51, 6.1.110, 5.15.167, 5.10.226, 5.4.284, 4.19.322
SCALANCE XCM-/XRM-/XCH-/XRH-300 familySiemens3.2

Affected products

VendorProductVersions
LinuxLinux6545b246a2c815a8fcd07d58240effb6ec3481b1, 6545b246a2c815a8fcd07d58240effb6ec3481b1, 6545b246a2c815a8fcd07d58240effb6ec3481b1
LinuxLinux2.6.29, 0, 4.19.322
amazon:2kernel-headers0
amazon:2kernel-tools0
amazon:2023kernel-livepatch-6.1.111-120.1870
amazon:2023kernel-libbpf-static0
amazon:2kernel0
SiemensSCALANCE XCM-/XRM-/XCH-/XRH-300 family0
amazon:2023perf0
amazon:2023kernel-libbpf-devel0
amazon:2perf0
amazon:2kernel-livepatch-4.14.355-271.5690
linuxlinux_kernel2.6.29, 2.6.29, 2.6.29
amazon:2023kernel-tools0
amazon:2023kernel-tools-devel0
amazon:2python-perf0
amazon:2023kernel-libbpf0
LinuxLinux5.15.167, 6545b246a2c815a8fcd07d58240effb6ec3481b1, 6545b246a2c815a8fcd07d58240effb6ec3481b1
amazon:2kernel-devel0
amazon:2023kernel0

…and 10 more

Timeline

  • Sep 17, 2024 CVE Published
  • Sep 19, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (17 in total, the first dated here)
  • Jan 4, 2026 Security Advisory (162 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (148 in total, the first dated here)
  • Jun 17, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-46744
vulnetix vdb fixes CVE-2024-46744

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-46744/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›