CVE-2024-46744

Squashfs: sanity check symbolic link size

State
Published
Severity
Not scored
Published
Sep 18, 2024
Updated
Oct 15, 2026
Reserved
Sep 11, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 6545b246a2c815a8fcd07d58240effb6ec3481b1 to before f82cb7f24032ed023fc67d26ea9bf322d8431a90Affected
  • 6545b246a2c815a8fcd07d58240effb6ec3481b1 to before 1b9451ba6f21478a75288ea3e3fca4be35e2a438Affected
  • 6545b246a2c815a8fcd07d58240effb6ec3481b1 to before 5c8906de98d0d7ad42ff3edf2cb6cd7e0ea658c4Affected
  • 6545b246a2c815a8fcd07d58240effb6ec3481b1 to before 087f25b2d36adae19951114ffcbb7106ed405ebbAffected
  • 6545b246a2c815a8fcd07d58240effb6ec3481b1 to before fac5e82ab1334fc8ed6ff7183702df634bd1d93dAffected
  • 6545b246a2c815a8fcd07d58240effb6ec3481b1 to before c3af7e460a526007e4bed1ce3623274a1a6afe5eAffected
  • 6545b246a2c815a8fcd07d58240effb6ec3481b1 to before ef4e249971eb77ec33d74c5c3de1e2576faf6c90Affected
  • 6545b246a2c815a8fcd07d58240effb6ec3481b1 to before 810ee43d9cd245d138a2733d87a24858a23f577dAffected
LinuxLinux
  • 2.6.29Affected
  • before 2.6.29Not affected
  • 4.19.322 through 4.19.*Not affected
  • 5.4.284 through 5.4.*Not affected
  • 5.10.226 through 5.10.*Not affected
  • 5.15.167 through 5.15.*Not affected
  • 6.1.110 through 6.1.*Not affected
  • 6.6.51 through 6.6.*Not affected
  • 6.10.10 through 6.10.*Not affected
  • 6.11 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.