Squashfs: reject negative file sizes in squashfs_read_inode()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6545b246a2c815a8fcd07d58240effb6ec3481b1 · < 875fb3f87ae0225b881319ba016a1a8c4ffd5812| No fix yet |
| Linux Linux |
|
|
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@squashfs.org.uk: only need to check 64 bit quantity]
From the CVE record · Linux
The Linux kernel's Squashfs inode reader can return a file with a negative size, causing a warning in overlayfs during file copy-up. The input does not establish whether an attacker can trigger this or specify access, authentication, or user-interaction requirements.
Engineers running the Linux kernel with Squashfs should check their kernel version; affected versions are not specified.