CVE-2024-46744

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-46744
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-46744.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-46744
Downstream
Related
Published
2024-09-18T07:12:04.975Z
Modified
2025-11-28T02:34:14.480059Z
Summary
Squashfs: sanity check symbolic link size
Details

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. squashfsreadinode() is called to read the symbolic link from disk. This assigns the corrupted value 3875536935 to inode->i_size.

  2. Later squashfssymlinkread_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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46744.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
Fixed
f82cb7f24032ed023fc67d26ea9bf322d8431a90
Fixed
1b9451ba6f21478a75288ea3e3fca4be35e2a438
Fixed
5c8906de98d0d7ad42ff3edf2cb6cd7e0ea658c4
Fixed
087f25b2d36adae19951114ffcbb7106ed405ebb
Fixed
fac5e82ab1334fc8ed6ff7183702df634bd1d93d
Fixed
c3af7e460a526007e4bed1ce3623274a1a6afe5e
Fixed
ef4e249971eb77ec33d74c5c3de1e2576faf6c90
Fixed
810ee43d9cd245d138a2733d87a24858a23f577d

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.19.322
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.284
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.226
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.167
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.110
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.51
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.10.10