{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2022-49413",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-02-26T02:08:31.567Z",
        "datePublished": "2025-02-26T02:12:34.604Z",
        "dateUpdated": "2026-08-05T08:55:07.478Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T08:55:07.478Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nbfq: Update cgroup information before merging bio\n\nWhen the process is migrated to a different cgroup (or in case of\nwriteback just starts submitting bios associated with a different\ncgroup) bfq_merge_bio() can operate with stale cgroup information in\nbic. Thus the bio can be merged to a request from a different cgroup or\nit can result in merging of bfqqs for different cgroups or bfqqs of\nalready dead cgroups and causing possible use-after-free issues. Fix the\nproblem by updating cgroup information in bfq_merge_bio()."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - The bug is in BFQ's bio-merge path (bfq_bio_merge), reached only when a local process submits block I/O via write/fsync/etc. through submit_bio → blk_mq_submit_bio → blk_mq_sched_bio_merge; it is not reachable from network protocol parsers.\nAC:L - After a cgroup change (or writeback bios for a different cgroup), the bic retains stale cgroup/bfqq state and the next mergeable bio reliably uses it; an attacker who migrates within a delegated cgroup tree and issues I/O controls both sides, so success does not depend on uncontrolled conditions.\nPR:L - Any unprivileged local user can submit I/O into BFQ, and cgroup moves that desync bic state are achievable without real root via delegated cgroup subtrees (containers, systemd user sessions, Android app cgroups).\nUI:N - Exploitation requires only the attacker's own I/O and cgroup operations; no separate victim action is needed.\nS:U - Impact is confined to the host kernel's block/cgroup authority (local memory corruption / privilege escalation); it does not cross a VM, IOMMU, or other security boundary.\nC:H - The commit describes merging against bfqqs of already-dead cgroups, i.e. a use-after-free, which per scoring guidance enables attacker-controlled object reuse and arbitrary kernel read primitives.\nI:H - The same UAF on bfqq/bfqg structures enables heap spray and arbitrary write / control-flow hijacking in the kernel, not merely incorrect accounting.\nA:H - Use-after-free on freed BFQ cgroup queue structures can oops/panic the kernel (as shown by related BFQ cgroup UAF KASAN reports in the same fix series)."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "block/bfq-iosched.c"
                    ],
                    "versions": [
                        {
                            "version": "e21b7a0b988772e82e7147e1c659a5afe2ae003c",
                            "lessThan": "da9f3025d595956410ceaab2bea01980d7775948",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e21b7a0b988772e82e7147e1c659a5afe2ae003c",
                            "lessThan": "b06691af08b41dfd81052a3362514d9827b44bb1",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e21b7a0b988772e82e7147e1c659a5afe2ae003c",
                            "lessThan": "e8821f45612f2e6d9adb9c6ba0fb4184f57692aa",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e21b7a0b988772e82e7147e1c659a5afe2ae003c",
                            "lessThan": "d9165200c5627a2cf4408eefabdf0058bdf95e1a",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e21b7a0b988772e82e7147e1c659a5afe2ae003c",
                            "lessThan": "2a1077f17169a6059992a0bbdb330e0abad1e6d9",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e21b7a0b988772e82e7147e1c659a5afe2ae003c",
                            "lessThan": "ea591cd4eb270393810e7be01feb8fde6a34fbbe",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "block/bfq-iosched.c"
                    ],
                    "versions": [
                        {
                            "version": "4.12",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.12",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.198",
                            "lessThanOrEqual": "5.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.121",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.46",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.17.14",
                            "lessThanOrEqual": "5.17.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.18.3",
                            "lessThanOrEqual": "5.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.19",
                            "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": "4.12",
                                    "versionEndExcluding": "5.4.198"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.12",
                                    "versionEndExcluding": "5.10.121"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.12",
                                    "versionEndExcluding": "5.15.46"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.12",
                                    "versionEndExcluding": "5.17.14"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.12",
                                    "versionEndExcluding": "5.18.3"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.12",
                                    "versionEndExcluding": "5.19"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/da9f3025d595956410ceaab2bea01980d7775948"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b06691af08b41dfd81052a3362514d9827b44bb1"
                },
                {
                    "url": "https://git.kernel.org/stable/c/e8821f45612f2e6d9adb9c6ba0fb4184f57692aa"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d9165200c5627a2cf4408eefabdf0058bdf95e1a"
                },
                {
                    "url": "https://git.kernel.org/stable/c/2a1077f17169a6059992a0bbdb330e0abad1e6d9"
                },
                {
                    "url": "https://git.kernel.org/stable/c/ea591cd4eb270393810e7be01feb8fde6a34fbbe"
                }
            ],
            "title": "bfq: Update cgroup information before merging bio",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "cvssV3_1": {
                            "scope": "UNCHANGED",
                            "version": "3.1",
                            "baseScore": 7.8,
                            "attackVector": "LOCAL",
                            "baseSeverity": "HIGH",
                            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                            "integrityImpact": "HIGH",
                            "userInteraction": "NONE",
                            "attackComplexity": "LOW",
                            "availabilityImpact": "HIGH",
                            "privilegesRequired": "LOW",
                            "confidentialityImpact": "HIGH"
                        }
                    },
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2022-49413",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2025-02-27T18:16:22.832240Z"
                            }
                        }
                    }
                ],
                "problemTypes": [
                    {
                        "descriptions": [
                            {
                                "lang": "en",
                                "type": "CWE",
                                "cweId": "CWE-416",
                                "description": "CWE-416 Use After Free"
                            }
                        ]
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2025-02-27T18:22:33.302Z"
                }
            }
        ]
    }
}