{"id":"CVE-2022-49413","state":"PUBLISHED","title":"bfq: Update cgroup information before merging bio","description":"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().","publishedAt":"2025-02-26T02:12:34.604Z","updatedAt":"2026-08-05T08:55:07.478Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e21b7a0b988772e82e7147e1c659a5afe2ae003c","status":"affected","lessThan":"da9f3025d595956410ceaab2bea01980d7775948","versionType":"git"},{"version":"e21b7a0b988772e82e7147e1c659a5afe2ae003c","status":"affected","lessThan":"b06691af08b41dfd81052a3362514d9827b44bb1","versionType":"git"},{"version":"e21b7a0b988772e82e7147e1c659a5afe2ae003c","status":"affected","lessThan":"e8821f45612f2e6d9adb9c6ba0fb4184f57692aa","versionType":"git"},{"version":"e21b7a0b988772e82e7147e1c659a5afe2ae003c","status":"affected","lessThan":"d9165200c5627a2cf4408eefabdf0058bdf95e1a","versionType":"git"},{"version":"e21b7a0b988772e82e7147e1c659a5afe2ae003c","status":"affected","lessThan":"2a1077f17169a6059992a0bbdb330e0abad1e6d9","versionType":"git"},{"version":"e21b7a0b988772e82e7147e1c659a5afe2ae003c","status":"affected","lessThan":"ea591cd4eb270393810e7be01feb8fde6a34fbbe","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/bfq-iosched.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.12","versionType":"semver"},{"version":"5.4.198","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.121","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.46","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.17.14","status":"unaffected","lessThanOrEqual":"5.17.*","versionType":"semver"},{"version":"5.18.3","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/bfq-iosched.c"]}],"references":["https://git.kernel.org/stable/c/da9f3025d595956410ceaab2bea01980d7775948","https://git.kernel.org/stable/c/b06691af08b41dfd81052a3362514d9827b44bb1","https://git.kernel.org/stable/c/e8821f45612f2e6d9adb9c6ba0fb4184f57692aa","https://git.kernel.org/stable/c/d9165200c5627a2cf4408eefabdf0058bdf95e1a","https://git.kernel.org/stable/c/2a1077f17169a6059992a0bbdb330e0abad1e6d9","https://git.kernel.org/stable/c/ea591cd4eb270393810e7be01feb8fde6a34fbbe"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/49xxx/CVE-2022-49413.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-49413","state":"PUBLISHED","datePublished":"2025-02-26T02:12:34.604Z","dateUpdated":"2026-08-05T08:55:07.478Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-02-26T02:08:31.567Z"},"containers":{"cna":{"title":"bfq: Update cgroup information before merging bio","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()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e21b7a0b988772e82e7147e1c659a5afe2ae003c","status":"affected","lessThan":"da9f3025d595956410ceaab2bea01980d7775948","versionType":"git"},{"version":"e21b7a0b988772e82e7147e1c659a5afe2ae003c","status":"affected","lessThan":"b06691af08b41dfd81052a3362514d9827b44bb1","versionType":"git"},{"version":"e21b7a0b988772e82e7147e1c659a5afe2ae003c","status":"affected","lessThan":"e8821f45612f2e6d9adb9c6ba0fb4184f57692aa","versionType":"git"},{"version":"e21b7a0b988772e82e7147e1c659a5afe2ae003c","status":"affected","lessThan":"d9165200c5627a2cf4408eefabdf0058bdf95e1a","versionType":"git"},{"version":"e21b7a0b988772e82e7147e1c659a5afe2ae003c","status":"affected","lessThan":"2a1077f17169a6059992a0bbdb330e0abad1e6d9","versionType":"git"},{"version":"e21b7a0b988772e82e7147e1c659a5afe2ae003c","status":"affected","lessThan":"ea591cd4eb270393810e7be01feb8fde6a34fbbe","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/bfq-iosched.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.12","versionType":"semver"},{"version":"5.4.198","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.121","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.46","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.17.14","status":"unaffected","lessThanOrEqual":"5.17.*","versionType":"semver"},{"version":"5.18.3","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/bfq-iosched.c"]}],"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"}],"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)."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:55:07.478Z"},"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"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","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":[{"cweId":"CWE-416","lang":"en","type":"CWE","description":"CWE-416 Use After Free"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-02-27T18:22:33.302Z"}}]}}}