{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2025-40200",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-04-16T07:20:57.178Z",
        "datePublished": "2025-11-12T21:56:33.783Z",
        "dateUpdated": "2026-05-11T21:44:41.773Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-05-11T21:44:41.773Z"
            },
            "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]"
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/squashfs/inode.c"
                    ],
                    "versions": [
                        {
                            "version": "6545b246a2c815a8fcd07d58240effb6ec3481b1",
                            "lessThan": "54170057a5fadd24a37b70de41e61d39284d9bd7",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6545b246a2c815a8fcd07d58240effb6ec3481b1",
                            "lessThan": "2871c74caa3f4f05b429e6bfefebac62dbf1b408",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6545b246a2c815a8fcd07d58240effb6ec3481b1",
                            "lessThan": "fbfc745db628de31f5c089147deeb87e95b89e66",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6545b246a2c815a8fcd07d58240effb6ec3481b1",
                            "lessThan": "8118f66124895829443d09c207e654adcb2f9321",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6545b246a2c815a8fcd07d58240effb6ec3481b1",
                            "lessThan": "8c7aad76751816207fee556d44aa88a710824810",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6545b246a2c815a8fcd07d58240effb6ec3481b1",
                            "lessThan": "875fb3f87ae0225b881319ba016a1a8c4ffd5812",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6545b246a2c815a8fcd07d58240effb6ec3481b1",
                            "lessThan": "f271155ff31aca8ef82c61c8df23ca97e9a77dd4",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6545b246a2c815a8fcd07d58240effb6ec3481b1",
                            "lessThan": "9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/squashfs/inode.c"
                    ],
                    "versions": [
                        {
                            "version": "2.6.29",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "2.6.29",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.301",
                            "lessThanOrEqual": "5.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.246",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.195",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.157",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.113",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.54",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.17.4",
                            "lessThanOrEqual": "6.17.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.29",
                                    "versionEndExcluding": "5.4.301"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.29",
                                    "versionEndExcluding": "5.10.246"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.29",
                                    "versionEndExcluding": "5.15.195"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.29",
                                    "versionEndExcluding": "6.1.157"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.29",
                                    "versionEndExcluding": "6.6.113"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.29",
                                    "versionEndExcluding": "6.12.54"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.29",
                                    "versionEndExcluding": "6.17.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.29",
                                    "versionEndExcluding": "6.18"
                                }
                            ]
                        }
                    ]
                }
            ],
            "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"
            }
        }
    }
}