{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2022-49171",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-02-26T01:49:39.279Z",
        "datePublished": "2025-02-26T01:55:28.077Z",
        "dateUpdated": "2026-05-11T18:54:30.604Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-05-11T18:54:30.604Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\next4: don't BUG if someone dirty pages without asking ext4 first\n\n[un]pin_user_pages_remote is dirtying pages without properly warning\nthe file system in advance.  A related race was noted by Jan Kara in\n2018[1]; however, more recently instead of it being a very hard-to-hit\nrace, it could be reliably triggered by process_vm_writev(2) which was\ndiscovered by Syzbot[2].\n\nThis is technically a bug in mm/gup.c, but arguably ext4 is fragile in\nthat if some other kernel subsystem dirty pages without properly\nnotifying the file system using page_mkwrite(), ext4 will BUG, while\nother file systems will not BUG (although data will still be lost).\n\nSo instead of crashing with a BUG, issue a warning (since there may be\npotential data loss) and just mark the page as clean to avoid\nunprivileged denial of service attacks until the problem can be\nproperly fixed.  More discussion and background can be found in the\nthread starting at [2].\n\n[1] https://lore.kernel.org/linux-mm/20180103100430.GE4911@quack2.suse.cz\n[2] https://lore.kernel.org/r/Yg0m6IjcNmfaSokM@google.com"
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/ext4/inode.c"
                    ],
                    "versions": [
                        {
                            "version": "a42afc5f56f319107e987aa6adf2f65d93d527c7",
                            "lessThan": "5db60e76edf5680ff1f3a7221036fc44b308f146",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a42afc5f56f319107e987aa6adf2f65d93d527c7",
                            "lessThan": "d666dfaa571465a19f014534a214c255ea33f301",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a42afc5f56f319107e987aa6adf2f65d93d527c7",
                            "lessThan": "0d3a6926f7e8be3c897fa46216ce13b119a9f56a",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a42afc5f56f319107e987aa6adf2f65d93d527c7",
                            "lessThan": "5a016c053f426a73752c3b41b60b497b58694d48",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a42afc5f56f319107e987aa6adf2f65d93d527c7",
                            "lessThan": "330d0e44fc5a47c27df958ecdd4693a3cb1d8b81",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a42afc5f56f319107e987aa6adf2f65d93d527c7",
                            "lessThan": "a0856764dc1276ad2dc7891288c2e9246bf11a37",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a42afc5f56f319107e987aa6adf2f65d93d527c7",
                            "lessThan": "343117559ef41e992e326f7a92da1a8f254dfa8c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a42afc5f56f319107e987aa6adf2f65d93d527c7",
                            "lessThan": "677c9d30e8487bee6c8e3b034070319d98f6e203",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a42afc5f56f319107e987aa6adf2f65d93d527c7",
                            "lessThan": "cc5095747edfb054ca2068d01af20be3fcc3634f",
                            "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/ext4/inode.c"
                    ],
                    "versions": [
                        {
                            "version": "2.6.37",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "2.6.37",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.9.311",
                            "lessThanOrEqual": "4.9.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.14.276",
                            "lessThanOrEqual": "4.14.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.19.238",
                            "lessThanOrEqual": "4.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.189",
                            "lessThanOrEqual": "5.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.110",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.33",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.16.19",
                            "lessThanOrEqual": "5.16.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.17.2",
                            "lessThanOrEqual": "5.17.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.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.37",
                                    "versionEndExcluding": "4.9.311"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.37",
                                    "versionEndExcluding": "4.14.276"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.37",
                                    "versionEndExcluding": "4.19.238"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.37",
                                    "versionEndExcluding": "5.4.189"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.37",
                                    "versionEndExcluding": "5.10.110"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.37",
                                    "versionEndExcluding": "5.15.33"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.37",
                                    "versionEndExcluding": "5.16.19"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.37",
                                    "versionEndExcluding": "5.17.2"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.37",
                                    "versionEndExcluding": "5.18"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/5db60e76edf5680ff1f3a7221036fc44b308f146"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d666dfaa571465a19f014534a214c255ea33f301"
                },
                {
                    "url": "https://git.kernel.org/stable/c/0d3a6926f7e8be3c897fa46216ce13b119a9f56a"
                },
                {
                    "url": "https://git.kernel.org/stable/c/5a016c053f426a73752c3b41b60b497b58694d48"
                },
                {
                    "url": "https://git.kernel.org/stable/c/330d0e44fc5a47c27df958ecdd4693a3cb1d8b81"
                },
                {
                    "url": "https://git.kernel.org/stable/c/a0856764dc1276ad2dc7891288c2e9246bf11a37"
                },
                {
                    "url": "https://git.kernel.org/stable/c/343117559ef41e992e326f7a92da1a8f254dfa8c"
                },
                {
                    "url": "https://git.kernel.org/stable/c/677c9d30e8487bee6c8e3b034070319d98f6e203"
                },
                {
                    "url": "https://git.kernel.org/stable/c/cc5095747edfb054ca2068d01af20be3fcc3634f"
                }
            ],
            "title": "ext4: don't BUG if someone dirty pages without asking ext4 first",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}