Bug 2383404 (CVE-2025-38415) - CVE-2025-38415 kernel: Linux kernel: Memory corruption in Squashfs due to incorrect block size calculation
Summary: CVE-2025-38415 kernel: Linux kernel: Memory corruption in Squashfs due to inc...
Keywords:
Status: NEW
Alias: CVE-2025-38415
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-25 14:02 UTC by OSIDB Bzimport
Modified: 2026-04-24 15:57 UTC (History)
0 users

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:1661 0 None None None 2026-02-02 03:21:21 UTC
Red Hat Product Errata RHSA-2026:1662 0 None None None 2026-02-02 03:53:40 UTC
Red Hat Product Errata RHSA-2026:2212 0 None None None 2026-02-09 02:13:11 UTC
Red Hat Product Errata RHSA-2026:2282 0 None None None 2026-02-09 09:31:56 UTC
Red Hat Product Errata RHSA-2026:2766 0 None None None 2026-02-17 00:43:01 UTC
Red Hat Product Errata RHSA-2026:3088 0 None None None 2026-02-23 14:56:40 UTC
Red Hat Product Errata RHSA-2026:3267 0 None None None 2026-02-25 00:18:54 UTC
Red Hat Product Errata RHSA-2026:3268 0 None None None 2026-02-25 00:18:12 UTC
Red Hat Product Errata RHSA-2026:3277 0 None None None 2026-02-25 04:03:35 UTC
Red Hat Product Errata RHSA-2026:3293 0 None None None 2026-02-25 08:01:43 UTC
Red Hat Product Errata RHSA-2026:3358 0 None None None 2026-02-25 14:15:00 UTC
Red Hat Product Errata RHSA-2026:3360 0 None None None 2026-02-25 15:16:34 UTC
Red Hat Product Errata RHSA-2026:3375 0 None None None 2026-02-25 18:58:20 UTC
Red Hat Product Errata RHSA-2026:3388 0 None None None 2026-02-26 04:22:45 UTC
Red Hat Product Errata RHSA-2026:3579 0 None None None 2026-03-02 23:54:37 UTC
Red Hat Product Errata RHSA-2026:3634 0 None None None 2026-03-03 09:51:22 UTC
Red Hat Product Errata RHSA-2026:3685 0 None None None 2026-03-03 20:34:18 UTC

Description OSIDB Bzimport 2025-07-25 14:02:50 UTC
In the Linux kernel, the following vulnerability has been resolved:

Squashfs: check return result of sb_min_blocksize

Syzkaller reports an "UBSAN: shift-out-of-bounds in squashfs_bio_read" bug.

Syzkaller forks multiple processes which after mounting the Squashfs
filesystem, issues an ioctl("/dev/loop0", LOOP_SET_BLOCK_SIZE, 0x8000). 
Now if this ioctl occurs at the same time another process is in the
process of mounting a Squashfs filesystem on /dev/loop0, the failure
occurs.  When this happens the following code in squashfs_fill_super()
fails.

----
msblk->devblksize = sb_min_blocksize(sb, SQUASHFS_DEVBLK_SIZE);
msblk->devblksize_log2 = ffz(~msblk->devblksize);
----

sb_min_blocksize() returns 0, which means msblk->devblksize is set to 0.

As a result, ffz(~msblk->devblksize) returns 64, and msblk->devblksize_log2
is set to 64.

This subsequently causes the

UBSAN: shift-out-of-bounds in fs/squashfs/block.c:195:36
shift exponent 64 is too large for 64-bit type 'u64' (aka
'unsigned long long')

This commit adds a check for a 0 return by sb_min_blocksize().

Comment 3 errata-xmlrpc 2026-02-02 03:21:20 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:1661 https://access.redhat.com/errata/RHSA-2026:1661

Comment 4 errata-xmlrpc 2026-02-02 03:53:39 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:1662 https://access.redhat.com/errata/RHSA-2026:1662

Comment 8 errata-xmlrpc 2026-02-09 02:13:10 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:2212 https://access.redhat.com/errata/RHSA-2026:2212

Comment 9 errata-xmlrpc 2026-02-09 09:31:55 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:2282 https://access.redhat.com/errata/RHSA-2026:2282

Comment 10 errata-xmlrpc 2026-02-17 00:43:00 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2026:2766 https://access.redhat.com/errata/RHSA-2026:2766

Comment 11 errata-xmlrpc 2026-02-23 14:56:39 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.6 Extended Update Support

Via RHSA-2026:3088 https://access.redhat.com/errata/RHSA-2026:3088

Comment 12 errata-xmlrpc 2026-02-25 00:18:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.6 Telecommunications Update Service

Via RHSA-2026:3268 https://access.redhat.com/errata/RHSA-2026:3268

Comment 13 errata-xmlrpc 2026-02-25 00:18:53 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Via RHSA-2026:3267 https://access.redhat.com/errata/RHSA-2026:3267

Comment 14 errata-xmlrpc 2026-02-25 04:03:33 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.8 Telecommunications Update Service

Via RHSA-2026:3277 https://access.redhat.com/errata/RHSA-2026:3277

Comment 15 errata-xmlrpc 2026-02-25 08:01:41 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

Via RHSA-2026:3293 https://access.redhat.com/errata/RHSA-2026:3293

Comment 16 errata-xmlrpc 2026-02-25 14:14:59 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Via RHSA-2026:3358 https://access.redhat.com/errata/RHSA-2026:3358

Comment 17 errata-xmlrpc 2026-02-25 15:16:33 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On

Via RHSA-2026:3360 https://access.redhat.com/errata/RHSA-2026:3360

Comment 18 errata-xmlrpc 2026-02-25 18:58:18 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

Via RHSA-2026:3375 https://access.redhat.com/errata/RHSA-2026:3375

Comment 19 errata-xmlrpc 2026-02-26 04:22:44 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Advanced Update Support

Via RHSA-2026:3388 https://access.redhat.com/errata/RHSA-2026:3388

Comment 20 errata-xmlrpc 2026-03-02 23:54:36 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10.0 Extended Update Support

Via RHSA-2026:3579 https://access.redhat.com/errata/RHSA-2026:3579

Comment 21 errata-xmlrpc 2026-03-03 09:51:21 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Extended Lifecycle Support

Via RHSA-2026:3634 https://access.redhat.com/errata/RHSA-2026:3634

Comment 22 errata-xmlrpc 2026-03-03 20:34:17 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Extended Lifecycle Support

Via RHSA-2026:3685 https://access.redhat.com/errata/RHSA-2026:3685


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