CVE-2024-46744
Published: Sep 18, 2024
Modified: May 12, 2026
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.
| Vendor | Product | Versions |
|---|---|---|
Linux | Linux | affected 6545b246a2c815a8fcd07d58240effb6ec3481b1 - < f82cb7f24032ed023fc67d26ea9bf322d8431a90affected 6545b246a2c815a8fcd07d58240effb6ec3481b1 - < 1b9451ba6f21478a75288ea3e3fca4be35e2a438affected 6545b246a2c815a8fcd07d58240effb6ec3481b1 - < 5c8906de98d0d7ad42ff3edf2cb6cd7e0ea658c4affected 6545b246a2c815a8fcd07d58240effb6ec3481b1 - < 087f25b2d36adae19951114ffcbb7106ed405ebbaffected 6545b246a2c815a8fcd07d58240effb6ec3481b1 - < fac5e82ab1334fc8ed6ff7183702df634bd1d93d+3 more versions |
Linux | Linux | affected 2.6.29unaffected 0 - < 2.6.29unaffected 4.19.322 - <= 4.19.*unaffected 5.4.284 - <= 5.4.*unaffected 5.10.226 - <= 5.10.*+5 more versions |
References
Security Training
Train your team to recognize and prevent security threats with our comprehensive security awareness program.
Start TrainingVulnerability Scanning
Discover vulnerabilities in your applications and infrastructure before attackers do.
Scan Now