CVE-2024-46744
Squashfs Uninitialised Page Error
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.
INFO
Published Date :
Sept. 18, 2024, 8:15 a.m.
Last Modified :
Sept. 30, 2024, 1:36 p.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
5.9
Exploitability Score :
1.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-46744
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-46744
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-46744
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Sep. 30, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://git.kernel.org/stable/c/087f25b2d36adae19951114ffcbb7106ed405ebb No Types Assigned https://git.kernel.org/stable/c/087f25b2d36adae19951114ffcbb7106ed405ebb Patch Changed Reference Type https://git.kernel.org/stable/c/1b9451ba6f21478a75288ea3e3fca4be35e2a438 No Types Assigned https://git.kernel.org/stable/c/1b9451ba6f21478a75288ea3e3fca4be35e2a438 Patch Changed Reference Type https://git.kernel.org/stable/c/5c8906de98d0d7ad42ff3edf2cb6cd7e0ea658c4 No Types Assigned https://git.kernel.org/stable/c/5c8906de98d0d7ad42ff3edf2cb6cd7e0ea658c4 Patch Changed Reference Type https://git.kernel.org/stable/c/810ee43d9cd245d138a2733d87a24858a23f577d No Types Assigned https://git.kernel.org/stable/c/810ee43d9cd245d138a2733d87a24858a23f577d Patch Changed Reference Type https://git.kernel.org/stable/c/c3af7e460a526007e4bed1ce3623274a1a6afe5e No Types Assigned https://git.kernel.org/stable/c/c3af7e460a526007e4bed1ce3623274a1a6afe5e Patch Changed Reference Type https://git.kernel.org/stable/c/ef4e249971eb77ec33d74c5c3de1e2576faf6c90 No Types Assigned https://git.kernel.org/stable/c/ef4e249971eb77ec33d74c5c3de1e2576faf6c90 Patch Changed Reference Type https://git.kernel.org/stable/c/f82cb7f24032ed023fc67d26ea9bf322d8431a90 No Types Assigned https://git.kernel.org/stable/c/f82cb7f24032ed023fc67d26ea9bf322d8431a90 Patch Changed Reference Type https://git.kernel.org/stable/c/fac5e82ab1334fc8ed6ff7183702df634bd1d93d No Types Assigned https://git.kernel.org/stable/c/fac5e82ab1334fc8ed6ff7183702df634bd1d93d Patch Added CWE NIST CWE-59 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions up to (excluding) 4.19.322 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.20 up to (excluding) 5.4.284 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.226 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.167 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.110 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.51 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.10.10 *cpe:2.3:o:linux:linux_kernel:6.11:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.11:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.11:rc3:*:*:*:*:*:* -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Sep. 18, 2024
Action Type Old Value New Value Added 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. Added Reference kernel.org https://git.kernel.org/stable/c/f82cb7f24032ed023fc67d26ea9bf322d8431a90 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/1b9451ba6f21478a75288ea3e3fca4be35e2a438 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/5c8906de98d0d7ad42ff3edf2cb6cd7e0ea658c4 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/087f25b2d36adae19951114ffcbb7106ed405ebb [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/fac5e82ab1334fc8ed6ff7183702df634bd1d93d [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/c3af7e460a526007e4bed1ce3623274a1a6afe5e [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/ef4e249971eb77ec33d74c5c3de1e2576faf6c90 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/810ee43d9cd245d138a2733d87a24858a23f577d [No types assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-46744
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-46744
weaknesses.