{"api_version":"1","generated_at":"2026-11-24T10:23:22+00:00","cve":"CVE-2025-40200","urls":{"html":"https://cve.report/CVE-2025-40200","api":"https://cve.report/api/cve/CVE-2025-40200.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-40200","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-40200"},"summary":{"title":"Squashfs: reject negative file sizes in squashfs_read_inode()","description":"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]","state":"PUBLISHED","assigner":"Linux","published_at":"2025-11-12 22:15:47","updated_at":"2026-10-19 21:10:00"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b","name":"https://git.kernel.org/stable/c/9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2871c74caa3f4f05b429e6bfefebac62dbf1b408","name":"https://git.kernel.org/stable/c/2871c74caa3f4f05b429e6bfefebac62dbf1b408","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/54170057a5fadd24a37b70de41e61d39284d9bd7","name":"https://git.kernel.org/stable/c/54170057a5fadd24a37b70de41e61d39284d9bd7","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f271155ff31aca8ef82c61c8df23ca97e9a77dd4","name":"https://git.kernel.org/stable/c/f271155ff31aca8ef82c61c8df23ca97e9a77dd4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/fbfc745db628de31f5c089147deeb87e95b89e66","name":"https://git.kernel.org/stable/c/fbfc745db628de31f5c089147deeb87e95b89e66","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8118f66124895829443d09c207e654adcb2f9321","name":"https://git.kernel.org/stable/c/8118f66124895829443d09c207e654adcb2f9321","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8c7aad76751816207fee556d44aa88a710824810","name":"https://git.kernel.org/stable/c/8c7aad76751816207fee556d44aa88a710824810","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/875fb3f87ae0225b881319ba016a1a8c4ffd5812","name":"https://git.kernel.org/stable/c/875fb3f87ae0225b881319ba016a1a8c4ffd5812","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-40200","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40200","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6545b246a2c815a8fcd07d58240effb6ec3481b1 54170057a5fadd24a37b70de41e61d39284d9bd7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6545b246a2c815a8fcd07d58240effb6ec3481b1 2871c74caa3f4f05b429e6bfefebac62dbf1b408 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6545b246a2c815a8fcd07d58240effb6ec3481b1 fbfc745db628de31f5c089147deeb87e95b89e66 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6545b246a2c815a8fcd07d58240effb6ec3481b1 8118f66124895829443d09c207e654adcb2f9321 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6545b246a2c815a8fcd07d58240effb6ec3481b1 8c7aad76751816207fee556d44aa88a710824810 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6545b246a2c815a8fcd07d58240effb6ec3481b1 875fb3f87ae0225b881319ba016a1a8c4ffd5812 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6545b246a2c815a8fcd07d58240effb6ec3481b1 f271155ff31aca8ef82c61c8df23ca97e9a77dd4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6545b246a2c815a8fcd07d58240effb6ec3481b1 9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2.6.29","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 2.6.29 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.4.301 5.4.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.246 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.195 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.157 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.113 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.54 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.17.4 6.17.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2025","cve_id":"40200","cve":"CVE-2025-40200","epss":"0.002100000","percentile":"0.105250000","score_date":"2026-10-19","updated_at":"2026-10-20 00:13:48"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/squashfs/inode.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"54170057a5fadd24a37b70de41e61d39284d9bd7","status":"affected","version":"6545b246a2c815a8fcd07d58240effb6ec3481b1","versionType":"git"},{"lessThan":"2871c74caa3f4f05b429e6bfefebac62dbf1b408","status":"affected","version":"6545b246a2c815a8fcd07d58240effb6ec3481b1","versionType":"git"},{"lessThan":"fbfc745db628de31f5c089147deeb87e95b89e66","status":"affected","version":"6545b246a2c815a8fcd07d58240effb6ec3481b1","versionType":"git"},{"lessThan":"8118f66124895829443d09c207e654adcb2f9321","status":"affected","version":"6545b246a2c815a8fcd07d58240effb6ec3481b1","versionType":"git"},{"lessThan":"8c7aad76751816207fee556d44aa88a710824810","status":"affected","version":"6545b246a2c815a8fcd07d58240effb6ec3481b1","versionType":"git"},{"lessThan":"875fb3f87ae0225b881319ba016a1a8c4ffd5812","status":"affected","version":"6545b246a2c815a8fcd07d58240effb6ec3481b1","versionType":"git"},{"lessThan":"f271155ff31aca8ef82c61c8df23ca97e9a77dd4","status":"affected","version":"6545b246a2c815a8fcd07d58240effb6ec3481b1","versionType":"git"},{"lessThan":"9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b","status":"affected","version":"6545b246a2c815a8fcd07d58240effb6ec3481b1","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/squashfs/inode.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"2.6.29"},{"lessThan":"2.6.29","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.4.*","status":"unaffected","version":"5.4.301","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.246","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.195","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.157","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.113","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.54","versionType":"semver"},{"lessThanOrEqual":"6.17.*","status":"unaffected","version":"6.17.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"6.18","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.4.301","versionStartIncluding":"2.6.29","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.246","versionStartIncluding":"2.6.29","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.195","versionStartIncluding":"2.6.29","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.157","versionStartIncluding":"2.6.29","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.113","versionStartIncluding":"2.6.29","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.54","versionStartIncluding":"2.6.29","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.17.4","versionStartIncluding":"2.6.29","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18","versionStartIncluding":"2.6.29","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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]"}],"providerMetadata":{"dateUpdated":"2026-05-11T21:44:41.773Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/54170057a5fadd24a37b70de41e61d39284d9bd7"},{"url":"https://git.kernel.org/stable/c/2871c74caa3f4f05b429e6bfefebac62dbf1b408"},{"url":"https://git.kernel.org/stable/c/fbfc745db628de31f5c089147deeb87e95b89e66"},{"url":"https://git.kernel.org/stable/c/8118f66124895829443d09c207e654adcb2f9321"},{"url":"https://git.kernel.org/stable/c/8c7aad76751816207fee556d44aa88a710824810"},{"url":"https://git.kernel.org/stable/c/875fb3f87ae0225b881319ba016a1a8c4ffd5812"},{"url":"https://git.kernel.org/stable/c/f271155ff31aca8ef82c61c8df23ca97e9a77dd4"},{"url":"https://git.kernel.org/stable/c/9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b"}],"title":"Squashfs: reject negative file sizes in squashfs_read_inode()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2025-40200","datePublished":"2025-11-12T21:56:33.783Z","dateReserved":"2025-04-16T07:20:57.178Z","dateUpdated":"2026-05-11T21:44:41.773Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2025-11-12 22:15:47","lastModifiedDate":"2026-10-19 21:10:00","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2025","CveId":"40200","Ordinal":"1","Title":"Squashfs: reject negative file sizes in squashfs_read_inode()","CVE":"CVE-2025-40200","Year":"2025"},"notes":[{"CveYear":"2025","CveId":"40200","Ordinal":"1","NoteData":"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]","Type":"Description","Title":"Squashfs: reject negative file sizes in squashfs_read_inode()"}]}}}