{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-38415","id":"CVE-2025-38415","title":"Squashfs: check return result of sb_min_blocksize","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nSquashfs: check return result of sb_min_blocksize\n\nSyzkaller reports an \"UBSAN: shift-out-of-bounds in squashfs_bio_read\" bug.\n\nSyzkaller forks multiple processes which after mounting the Squashfs\nfilesystem, issues an ioctl(\"/dev/loop0\", LOOP_SET_BLOCK_SIZE, 0x8000). \nNow if this ioctl occurs at the same time another process is ","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nSquashfs: check return result of sb_min_blocksize\n\nSyzkaller reports an \"UBSAN: shift-out-of-bounds in squashfs_bio_read\" bug.\n\nSyzkaller forks multiple processes which after mounting the Squashfs\nfilesystem, issues an ioctl(\"/dev/loop0\", LOOP_SET_BLOCK_SIZE, 0x8000). \nNow if this ioctl occurs at the same time another process is in the\nprocess of mounting a Squashfs filesystem on /dev/loop0, the failure\noccurs.  When this happens the following code in squashfs_fill_super()\nfails.\n\n----\nmsblk->devblksize = sb_min_blocksize(sb, SQUASHFS_DEVBLK_SIZE);\nmsblk->devblksize_log2 = ffz(~msblk->devblksize);\n----\n\nsb_min_blocksize() returns 0, which means msblk->devblksize is set to 0.\n\nAs a result, ffz(~msblk->devblksize) returns 64, and msblk->devblksize_log2\nis set to 64.\n\nThis subsequently causes the\n\nUBSAN: shift-out-of-bounds in fs/squashfs/block.c:195:36\nshift exponent 64 is too large for 64-bit type 'u64' (aka\n'unsigned long long')\n\nThis commit adds a check for a 0 return by sb_min_blocksize().","published":"2025-07-25T13:32:09.711Z","updated":"2026-10-28T02:30:52.340842773Z","reserved":"2025-04-16T04:51:24.013Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0aa666190509ffab81c202c5095a166be23961ac","lessThan":"db7096ea160e40d78c67fce52e7cc51bde049497","status":"affected","versionType":"git"},{"version":"0aa666190509ffab81c202c5095a166be23961ac","lessThan":"549f9e3d7b60d53808c98b9fde49b4f46d0524a5","status":"affected","versionType":"git"},{"version":"0aa666190509ffab81c202c5095a166be23961ac","lessThan":"5c51aa862cbeed2f3887f0382a2708956710bd68","status":"affected","versionType":"git"},{"version":"0aa666190509ffab81c202c5095a166be23961ac","lessThan":"6abf6b78c6fb112eee495f5636ffcc350dd2ce25","status":"affected","versionType":"git"},{"version":"0aa666190509ffab81c202c5095a166be23961ac","lessThan":"4f99357dadbf9c979ad737156ad4c37fadf7c56b","status":"affected","versionType":"git"},{"version":"0aa666190509ffab81c202c5095a166be23961ac","lessThan":"0aff95d9bc7fb5400ca8af507429c4b067bdb425","status":"affected","versionType":"git"},{"version":"0aa666190509ffab81c202c5095a166be23961ac","lessThan":"295ab18c2dbce8d0ac6ecf7c5187e16e1ac8b282","status":"affected","versionType":"git"},{"version":"0aa666190509ffab81c202c5095a166be23961ac","lessThan":"734aa85390ea693bb7eaf2240623d41b03705c84","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.29","status":"affected"},{"version":"0","lessThan":"2.6.29","status":"unaffected","versionType":"semver"},{"version":"5.4.295","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.239","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.186","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.142","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.94","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.34","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.15.3","lessThanOrEqual":"6.15.*","status":"unaffected","versionType":"semver"},{"version":"6.16","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-787"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/db7096ea160e40d78c67fce52e7cc51bde049497","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/549f9e3d7b60d53808c98b9fde49b4f46d0524a5","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/5c51aa862cbeed2f3887f0382a2708956710bd68","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6abf6b78c6fb112eee495f5636ffcc350dd2ce25","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4f99357dadbf9c979ad737156ad4c37fadf7c56b","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/0aff95d9bc7fb5400ca8af507429c4b067bdb425","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/295ab18c2dbce8d0ac6ecf7c5187e16e1ac8b282","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/734aa85390ea693bb7eaf2240623d41b03705c84","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["Mailing List","Third Party Advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["Mailing List","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38415.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38415","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00233,"epssPercentile":0.14356,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-38415","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38415","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-38415","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-38415","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}