We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2024-46744

Squashfs: sanity check symbolic link size



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.

Reserved 2024-09-11 | Published 2024-09-18 | Updated 2024-11-05 | Assigner Linux

Product status

Default status
unaffected

1da177e4c3f4 before f82cb7f24032
affected

1da177e4c3f4 before 1b9451ba6f21
affected

1da177e4c3f4 before 5c8906de98d0
affected

1da177e4c3f4 before 087f25b2d36a
affected

1da177e4c3f4 before fac5e82ab133
affected

1da177e4c3f4 before c3af7e460a52
affected

1da177e4c3f4 before ef4e249971eb
affected

1da177e4c3f4 before 810ee43d9cd2
affected

Default status
affected

4.19.322
unaffected

5.4.284
unaffected

5.10.226
unaffected

5.15.167
unaffected

6.1.110
unaffected

6.6.51
unaffected

6.10.10
unaffected

6.11
unaffected

References

git.kernel.org/...c/f82cb7f24032ed023fc67d26ea9bf322d8431a90

git.kernel.org/...c/1b9451ba6f21478a75288ea3e3fca4be35e2a438

git.kernel.org/...c/5c8906de98d0d7ad42ff3edf2cb6cd7e0ea658c4

git.kernel.org/...c/087f25b2d36adae19951114ffcbb7106ed405ebb

git.kernel.org/...c/fac5e82ab1334fc8ed6ff7183702df634bd1d93d

git.kernel.org/...c/c3af7e460a526007e4bed1ce3623274a1a6afe5e

git.kernel.org/...c/ef4e249971eb77ec33d74c5c3de1e2576faf6c90

git.kernel.org/...c/810ee43d9cd245d138a2733d87a24858a23f577d

cve.org (CVE-2024-46744)

nvd.nist.gov (CVE-2024-46744)

Download JSON

Share this page
https://cve.threatint.com/CVE/CVE-2024-46744

Support options

Helpdesk Chat, Email, Knowledgebase
Telegram Chat
Subscribe to our newsletter to learn more about our work.