# CVE-2022-49179: block, bfq: don't move oom\_bfqq

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-02-26T01:55:32.100Z
- **Modified:** 2026-08-13T00:17:30.490Z

## Who should check

- Anyone running Linux \>= 0d52af590552473666da5b6111e7182d6cd23f92, \< c4f5a678add58a8a0e7ee5e038496b376ea6d205; \>= 0d52af590552473666da5b6111e7182d6cd23f92, \< 7507ead1e9d42957c2340f2c4a0e9d00034e3366; \>= 0d52af590552473666da5b6111e7182d6cd23f92, \< 8f34dea99cd7761156a146a5258a67d045d862f7; \>= 0d52af590552473666da5b6111e7182d6cd23f92, \< 87fdfe8589d43e471dffb4c60f75eeb6f37afc4c; \>= 0d52af590552473666da5b6111e7182d6cd23f92, \< c01fced8d38fbccc82787065229578006f28e020; \>= 0d52af590552473666da5b6111e7182d6cd23f92, \< 8410f70977734f21b8ed45c37e925d311dfda2e7
- Anyone running Linux 4.16

## Description

In the Linux kernel, the following vulnerability has been resolved:

block, bfq: don't move oom\_bfqq

Our test report a UAF:

\[ 2073.019181\] ==================================================================
\[ 2073.019188\] BUG: KASAN: use-after-free in \_\_bfq\_put\_async\_bfqq+0xa0/0x168
\[ 2073.019191\] Write of size 8 at addr ffff8000ccf64128 by task rmmod/72584
\[ 2073.019192\]
\[ 2073.019196\] CPU: 0 PID: 72584 Comm: rmmod Kdump: loaded Not tainted 4.19.90-yk \#5
\[ 2073.019198\] Hardware name: QEMU KVM Virtual Machine, BIOS 0.0.0 02/06/2015
\[ 2073.019200\] Call trace:
\[ 2073.019203\]  dump\_backtrace+0x0/0x310
\[ 2073.019206\]  show\_stack+0x28/0x38
\[ 2073.019210\]  dump\_stack+0xec/0x15c
\[ 2073.019216\]  print\_address\_description+0x68/0x2d0
\[ 2073.019220\]  kasan\_report+0x238/0x2f0
\[ 2073.019224\]  \_\_asan\_store8+0x88/0xb0
\[ 2073.019229\]  \_\_bfq\_put\_async\_bfqq+0xa0/0x168
\[ 2073.019233\]  bfq\_put\_async\_queues+0xbc/0x208
\[ 2073.019236\]  bfq\_pd\_offline+0x178/0x238
\[ 2073.019240\]  blkcg\_deactivate\_policy+0x1f0/0x420
\[ 2073.019244\]  bfq\_exit\_queue+0x128/0x178
\[ 2073.019249\]  blk\_mq\_exit\_sched+0x12c/0x160
\[ 2073.019252\]  elevator\_exit+0xc8/0xd0
\[ 2073.019256\]  blk\_exit\_queue+0x50/0x88
\[ 2073.019259\]  blk\_cleanup\_queue+0x228/0x3d8
\[ 2073.019267\]  null\_del\_dev+0xfc/0x1e0 \[null\_blk\]
\[ 2073.019274\]  null\_exit+0x90/0x114 \[null\_blk\]
\[ 2073.019278\]  \_\_arm64\_sys\_delete\_module+0x358/0x5a0
\[ 2073.019282\]  el0\_svc\_common+0xc8/0x320
\[ 2073.019287\]  el0\_svc\_handler+0xf8/0x160
\[ 2073.019290\]  el0\_svc+0x10/0x218
\[ 2073.019291\]
\[ 2073.019294\] Allocated by task 14163:
\[ 2073.019301\]  kasan\_kmalloc+0xe0/0x190
\[ 2073.019305\]  kmem\_cache\_alloc\_node\_trace+0x1cc/0x418
\[ 2073.019308\]  bfq\_pd\_alloc+0x54/0x118
\[ 2073.019313\]  blkcg\_activate\_policy+0x250/0x460
\[ 2073.019317\]  bfq\_create\_group\_hierarchy+0x38/0x110
\[ 2073.019321\]  bfq\_init\_queue+0x6d0/0x948
\[ 2073.019325\]  blk\_mq\_init\_sched+0x1d8/0x390
\[ 2073.019330\]  elevator\_switch\_mq+0x88/0x170
\[ 2073.019334\]  elevator\_switch+0x140/0x270
\[ 2073.019338\]  elv\_iosched\_store+0x1a4/0x2a0
\[ 2073.019342\]  queue\_attr\_store+0x90/0xe0
\[ 2073.019348\]  sysfs\_kf\_write+0xa8/0xe8
\[ 2073.019351\]  kernfs\_fop\_write+0x1f8/0x378
\[ 2073.019359\]  \_\_vfs\_write+0xe0/0x360
\[ 2073.019363\]  vfs\_write+0xf0/0x270
\[ 2073.019367\]  ksys\_write+0xdc/0x1b8
\[ 2073.019371\]  \_\_arm64\_sys\_write+0x50/0x60
\[ 2073.019375\]  el0\_svc\_common+0xc8/0x320
\[ 2073.019380\]  el0\_svc\_handler+0xf8/0x160
\[ 2073.019383\]  el0\_svc+0x10/0x218
\[ 2073.019385\]
\[ 2073.019387\] Freed by task 72584:
\[ 2073.019391\]  \_\_kasan\_slab\_free+0x120/0x228
\[ 2073.019394\]  kasan\_slab\_free+0x10/0x18
\[ 2073.019397\]  kfree+0x94/0x368
\[ 2073.019400\]  bfqg\_put+0x64/0xb0
\[ 2073.019404\]  bfqg\_and\_blkg\_put+0x90/0xb0
\[ 2073.019408\]  bfq\_put\_queue+0x220/0x228
\[ 2073.019413\]  \_\_bfq\_put\_async\_bfqq+0x98/0x168
\[ 2073.019416\]  bfq\_put\_async\_queues+0xbc/0x208
\[ 2073.019420\]  bfq\_pd\_offline+0x178/0x238
\[ 2073.019424\]  blkcg\_deactivate\_policy+0x1f0/0x420
\[ 2073.019429\]  bfq\_exit\_queue+0x128/0x178
\[ 2073.019433\]  blk\_mq\_exit\_sched+0x12c/0x160
\[ 2073.019437\]  elevator\_exit+0xc8/0xd0
\[ 2073.019440\]  blk\_exit\_queue+0x50/0x88
\[ 2073.019443\]  blk\_cleanup\_queue+0x228/0x3d8
\[ 2073.019451\]  null\_del\_dev+0xfc/0x1e0 \[null\_blk\]
\[ 2073.019459\]  null\_exit+0x90/0x114 \[null\_blk\]
\[ 2073.019462\]  \_\_arm64\_sys\_delete\_module+0x358/0x5a0
\[ 2073.019467\]  el0\_svc\_common+0xc8/0x320
\[ 2073.019471\]  el0\_svc\_handler+0xf8/0x160
\[ 2073.019474\]  el0\_svc+0x10/0x218
\[ 2073.019475\]
\[ 2073.019479\] The buggy address belongs to the object at ffff8000ccf63f00
 which belongs to the cache kmalloc-1024 of size 1024
\[ 2073.019484\] The buggy address is located 552 bytes inside of
 1024-byte region \[ffff8000ccf63f00, ffff8000ccf64300)
\[ 2073.019486\] The buggy address belongs to the page:
\[ 2073.019492\] page:ffff7e000333d800 count:1 mapcount:0 mapping:ffff8000c0003a00 index:0x0 compound\_mapcount: 0
\[ 2073.020123\] flags: 0x7ffff0000008100(slab\|head)
\[ 2073.020403\] raw: 07ffff0000008100 ffff7e0003334c08 ffff7e00001f5a08 ffff8000c0003a00
\[ 2073.020409\] ra
---truncated---

## Affected and fixed versions

- Linux: \>= 0d52af590552473666da5b6111e7182d6cd23f92, \< c4f5a678add58a8a0e7ee5e038496b376ea6d205; \>= 0d52af590552473666da5b6111e7182d6cd23f92, \< 7507ead1e9d42957c2340f2c4a0e9d00034e3366; \>= 0d52af590552473666da5b6111e7182d6cd23f92, \< 8f34dea99cd7761156a146a5258a67d045d862f7; \>= 0d52af590552473666da5b6111e7182d6cd23f92, \< 87fdfe8589d43e471dffb4c60f75eeb6f37afc4c; \>= 0d52af590552473666da5b6111e7182d6cd23f92, \< c01fced8d38fbccc82787065229578006f28e020; \>= 0d52af590552473666da5b6111e7182d6cd23f92, \< 8410f70977734f21b8ed45c37e925d311dfda2e7 (cvelist)
- Linux: 4.16 (cvelist)

## Mitigation

- Upgrade Linux to 8410f70977734f21b8ed45c37e925d311dfda2e7 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49179. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49179.md
Affected: Linux >= 0d52af590552473666da5b6111e7182d6cd23f92, < c4f5a678add58a8a0e7ee5e038496b376ea6d205; >= 0d52af590552473666da5b6111e7182d6cd23f92, < 7507ead1e9d42957c2340f2c4a0e9d00034e3366; >= 0d52af590552473666da5b6111e7182d6cd23f92, < 8f34dea99cd7761156a146a5258a67d045d862f7; >= 0d52af590552473666da5b6…
Fixed in: Linux 7507ead1e9d42957c2340f2c4a0e9d00034e3366, Linux 8f34dea99cd7761156a146a5258a67d045d862f7, Linux 87fdfe8589d43e471dffb4c60f75eeb6f37afc4c, Linux 8410f70977734f21b8ed45c37e925d311dfda2e7

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-49179 being exploited?

There is no confirmed exploitation: CVE-2022-49179 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-49179?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-49179?

Linux \>= 0d52af590552473666da5b6111e7182d6cd23f92, \< c4f5a678add58a8a0e7ee5e038496b376ea6d205; \>= 0d52af590552473666da5b6111e7182d6cd23f92, \< 7507ead1e9d42957c2340f2c4a0e9d00034e3366; \>= 0d52af590552473666da5b6111e7182d6cd23f92, \< 8f34dea99cd7761156a146a5258a67d045d862f7; \>= 0d52af590552473666da5b6111e7182d6cd23f92, \< 87fdfe8589d43e471dffb4c60f75eeb6f37afc4c; \>= 0d52af590552473666da5b6111e7182d6cd23f92, \< c01fced8d38fbccc82787065229578006f28e020; \>= 0d52af590552473666da5b6111e7182d6cd23f92, \< 8410f70977734f21b8ed45c37e925d311dfda2e7; Linux 4.16.

### Is there a fix for CVE-2022-49179?

Yes. Fixed in Linux 7507ead1e9d42957c2340f2c4a0e9d00034e3366, Linux 8f34dea99cd7761156a146a5258a67d045d862f7, Linux 87fdfe8589d43e471dffb4c60f75eeb6f37afc4c, Linux 8410f70977734f21b8ed45c37e925d311dfda2e7. Upgrade Linux to 8410f70977734f21b8ed45c37e925d311dfda2e7 or later.

### How do I check if I'm affected by CVE-2022-49179?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/c4f5a678add58a8a0e7ee5e038496b376ea6d205>
- patch: <https://git.kernel.org/stable/c/7507ead1e9d42957c2340f2c4a0e9d00034e3366>
- patch: <https://git.kernel.org/stable/c/8f34dea99cd7761156a146a5258a67d045d862f7>
- patch: <https://git.kernel.org/stable/c/87fdfe8589d43e471dffb4c60f75eeb6f37afc4c>
- patch: <https://git.kernel.org/stable/c/c01fced8d38fbccc82787065229578006f28e020>
- patch: <https://git.kernel.org/stable/c/8410f70977734f21b8ed45c37e925d311dfda2e7>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49179>

HTML: <https://flawdb.com/CVE-2022-49179> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49179>
