Bug 2414736 (CVE-2025-40200) - CVE-2025-40200 kernel: Squashfs: reject negative file sizes in squashfs_read_inode()
Summary: CVE-2025-40200 kernel: Squashfs: reject negative file sizes in squashfs_read_...
Keywords:
Status: NEW
Alias: CVE-2025-40200
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-11-12 23:03 UTC by OSIDB Bzimport
Modified: 2025-11-13 10:57 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-11-12 23:03:27 UTC
In the Linux kernel, the following vulnerability has been resolved:

Squashfs: reject negative file sizes in squashfs_read_inode()

Syskaller reports a "WARNING in ovl_copy_up_file" in overlayfs.

This warning is ultimately caused because the underlying Squashfs file
system returns a file with a negative file size.

This commit checks for a negative file size and returns EINVAL.

[phillip.uk: only need to check 64 bit quantity]


Note You need to log in before you can comment on or make changes to this bug.