{"id":"CVE-2025-40200","aliases":["CVE-2025-40200"],"related":[],"kind":"vulnerability","state":"published","title":"Squashfs: reject negative file sizes in squashfs_read_inode()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nSquashfs: reject negative file sizes in squashfs_read_inode()\n\nSyskaller reports a \"WARNING in ovl_copy_up_file\" in overlayfs.\n\nThis warning is ultimately caused because the underlying Squashfs file\nsystem returns a file with a negative file size.\n\nThis commit checks for a negative file size and returns EINVAL.\n\n[phillip@squashfs.org.uk: only need to check 64 bit quantity]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nSquashfs: reject negative file sizes in squashfs_read_inode()\n\nSyskaller reports a \"WARNING in ovl_copy_up_file\" in overlayfs.\n\nThis warning is ultimately caused because the underlying Squashfs file\nsystem returns a file with a negative file size.\n\nThis commit checks for a negative file size and returns EINVAL.\n\n[phillip@squashfs.org.uk: only need to check 64 bit quantity]","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nSquashfs: rechaza tamaños de archivo negativos en squashfs_read_inode()\n\nSyskaller informa de una “WARNING in ovl_copy_up_file” en overlayfs.\n\nEsta advertencia es causada en última instancia porque el sistema de archivos Squashfs subyacente devuelve un archivo con un tamaño de archivo negativo.\n\nEste commit verifica si hay un tamaño de archivo negativo y devuelve EINVAL.\n\n[phillip@squashfs.org.uk: solo es necesario verificar la cantidad de 64 bits]","source":"nvd"}],"published":"2025-11-12T21:56:33.783Z","modified":"2026-10-19T21:10:00.160Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"6545b246a2c815a8fcd07d58240effb6ec3481b1","fixed":"54170057a5fadd24a37b70de41e61d39284d9bd7","status":"affected"},{"type":"git","introduced":"6545b246a2c815a8fcd07d58240effb6ec3481b1","fixed":"2871c74caa3f4f05b429e6bfefebac62dbf1b408","status":"affected"},{"type":"git","introduced":"6545b246a2c815a8fcd07d58240effb6ec3481b1","fixed":"fbfc745db628de31f5c089147deeb87e95b89e66","status":"affected"},{"type":"git","introduced":"6545b246a2c815a8fcd07d58240effb6ec3481b1","fixed":"8118f66124895829443d09c207e654adcb2f9321","status":"affected"},{"type":"git","introduced":"6545b246a2c815a8fcd07d58240effb6ec3481b1","fixed":"8c7aad76751816207fee556d44aa88a710824810","status":"affected"},{"type":"git","introduced":"6545b246a2c815a8fcd07d58240effb6ec3481b1","fixed":"875fb3f87ae0225b881319ba016a1a8c4ffd5812","status":"affected"},{"type":"git","introduced":"6545b246a2c815a8fcd07d58240effb6ec3481b1","fixed":"f271155ff31aca8ef82c61c8df23ca97e9a77dd4","status":"affected"},{"type":"git","introduced":"6545b246a2c815a8fcd07d58240effb6ec3481b1","fixed":"9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.29","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.29","status":"unaffected"},{"type":"semver","introduced":"5.4.301","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.246","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.195","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.157","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.113","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.54","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.4","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/54170057a5fadd24a37b70de41e61d39284d9bd7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2871c74caa3f4f05b429e6bfefebac62dbf1b408","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fbfc745db628de31f5c089147deeb87e95b89e66","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8118f66124895829443d09c207e654adcb2f9321","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8c7aad76751816207fee556d44aa88a710824810","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/875fb3f87ae0225b881319ba016a1a8c4ffd5812","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f271155ff31aca8ef82c61c8df23ca97e9a77dd4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40200","url":"https://www.cve.org/CVERecord?id=CVE-2025-40200","licence":"CVE Terms of Use","modified":"2026-05-11T21:44:41.773Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40200","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40200","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:07.599Z","epss":{"score":0.00291,"percentile":0.14208,"date":"2026-11-30T12:00:22.000Z"}}