CVE-2024-46744
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-headers | Amazon Linux | 4.14.355-271.569.amzn2 |
| kernel-tools | Amazon Linux | 4.14.355-271.569.amzn2 |
| kernel-livepatch-6.1.111-120.187 | Amazon Linux | 1.0-0.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.1.111-120.187.amzn2023 |
| kernel | Amazon Linux | 4.14.355-271.569.amzn2 |
| perf | Amazon Linux | 6.1.111-120.187.amzn2023, 4.14.355-271.569.amzn2 |
| kernel-libbpf-devel | Amazon Linux | 6.1.111-120.187.amzn2023 |
| kernel-livepatch-4.14.355-271.569 | Amazon Linux | 1.0-0.amzn2 |
| linux_kernel | linux | 6.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 family | Siemens | 3.2 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 6545b246a2c815a8fcd07d58240effb6ec3481b1, 6545b246a2c815a8fcd07d58240effb6ec3481b1, 6545b246a2c815a8fcd07d58240effb6ec3481b1 |
| Linux | Linux | 2.6.29, 0, 4.19.322 |
| amazon:2 | kernel-headers | 0 |
| amazon:2 | kernel-tools | 0 |
| amazon:2023 | kernel-livepatch-6.1.111-120.187 | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2 | kernel | 0 |
| Siemens | SCALANCE XCM-/XRM-/XCH-/XRH-300 family | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2 | perf | 0 |
| amazon:2 | kernel-livepatch-4.14.355-271.569 | 0 |
| linux | linux_kernel | 2.6.29, 2.6.29, 2.6.29 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2 | python-perf | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| Linux | Linux | 5.15.167, 6545b246a2c815a8fcd07d58240effb6ec3481b1, 6545b246a2c815a8fcd07d58240effb6ec3481b1 |
| amazon:2 | kernel-devel | 0 |
| amazon:2023 | kernel | 0 |
…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