CVE-2024-46744
Squashfs: sanity check symbolic link size
Check your servers for CVE-2024-46744
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-46744 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.
Description
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.
Exploitation
EPSS 0.30%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 24.3% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 29 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.
| Product | Versions |
|---|---|
| Linux |
affected from 6545b246a2c815a8fcd07d58240effb6ec3481b1, before f82cb7f24032ed023fc67d26ea9bf322d8431a90 affected from 6545b246a2c815a8fcd07d58240effb6ec3481b1, before 1b9451ba6f21478a75288ea3e3fca4be35e2a438 affected from 6545b246a2c815a8fcd07d58240effb6ec3481b1, before 5c8906de98d0d7ad42ff3edf2cb6cd7e0ea658c4 affected from 6545b246a2c815a8fcd07d58240effb6ec3481b1, before 087f25b2d36adae19951114ffcbb7106ed405ebb affected from 6545b246a2c815a8fcd07d58240effb6ec3481b1, before fac5e82ab1334fc8ed6ff7183702df634bd1d93d affected from 6545b246a2c815a8fcd07d58240effb6ec3481b1, before c3af7e460a526007e4bed1ce3623274a1a6afe5e affected from 6545b246a2c815a8fcd07d58240effb6ec3481b1, before ef4e249971eb77ec33d74c5c3de1e2576faf6c90 affected from 6545b246a2c815a8fcd07d58240effb6ec3481b1, before 810ee43d9cd245d138a2733d87a24858a23f577d
Other versions: unaffected
|
| Linux |
affected 2.6.29 unaffected before 2.6.29 unaffected from 4.19.322 up to and including 4.19.* unaffected from 5.4.284 up to and including 5.4.* unaffected from 5.10.226 up to and including 5.10.* unaffected from 5.15.167 up to and including 5.15.* unaffected from 6.1.110 up to and including 6.1.* unaffected from 6.6.51 up to and including 6.6.* unaffected from 6.10.10 up to and including 6.10.* unaffected 6.11 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-46744 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-46744
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-46744
trivy image --scanners vuln IMAGE | grep CVE-2024-46744
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
- https://git.kernel.org/stable/c/f82cb7f24032ed023fc67d26ea9bf322d8431a90 git.kernel.org
- https://git.kernel.org/stable/c/1b9451ba6f21478a75288ea3e3fca4be35e2a438 git.kernel.org
- https://git.kernel.org/stable/c/5c8906de98d0d7ad42ff3edf2cb6cd7e0ea658c4 git.kernel.org
- https://git.kernel.org/stable/c/087f25b2d36adae19951114ffcbb7106ed405ebb git.kernel.org
- https://git.kernel.org/stable/c/fac5e82ab1334fc8ed6ff7183702df634bd1d93d git.kernel.org
- https://git.kernel.org/stable/c/c3af7e460a526007e4bed1ce3623274a1a6afe5e git.kernel.org
- https://git.kernel.org/stable/c/ef4e249971eb77ec33d74c5c3de1e2576faf6c90 git.kernel.org
- https://git.kernel.org/stable/c/810ee43d9cd245d138a2733d87a24858a23f577d git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-355557.html cert-portal.siemens.com
Source: the record CVE-2024-46744 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.
Vulnpocalypse