# CVE-2022-48658: mm: slub: fix flush\_cpu\_slab()/\_\_free\_slab() invocations in task context.

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.87% (percentile 57, 2026-11-26)
- **Published:** 2024-04-28T13:01:12.987Z
- **Modified:** 2026-08-05T08:51:39.776Z

## Who should check

- Anyone running Linux \>= 5a836bf6b09f99ead1b69457ff39ab3011ece57b, \< 61703b248be993eb4997b00ae5d3318e6d8f3c5b; \>= 5a836bf6b09f99ead1b69457ff39ab3011ece57b, \< df6cb39335cf5a1b918e8dbd8ba7cd9f1d00e45a; \>= 5a836bf6b09f99ead1b69457ff39ab3011ece57b, \< e45cc288724f0cfd497bb5920bcfa60caa335729
- Anyone running Linux 5.15

## Description

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

mm: slub: fix flush\_cpu\_slab()/\_\_free\_slab() invocations in task context.

Commit 5a836bf6b09f ("mm: slub: move flush\_cpu\_slab() invocations
\_\_free\_slab() invocations out of IRQ context") moved all flush\_cpu\_slab()
invocations to the global workqueue to avoid a problem related
with deactivate\_slab()/\_\_free\_slab() being called from an IRQ context
on PREEMPT\_RT kernels.

When the flush\_all\_cpu\_locked() function is called from a task context
it may happen that a workqueue with WQ\_MEM\_RECLAIM bit set ends up
flushing the global workqueue, this will cause a dependency issue.

 workqueue: WQ\_MEM\_RECLAIM nvme-delete-wq:nvme\_delete\_ctrl\_work \[nvme\_core\]
   is flushing !WQ\_MEM\_RECLAIM events:flush\_cpu\_slab
 WARNING: CPU: 37 PID: 410 at kernel/workqueue.c:2637
   check\_flush\_dependency+0x10a/0x120
 Workqueue: nvme-delete-wq nvme\_delete\_ctrl\_work \[nvme\_core\]
 RIP: 0010:check\_flush\_dependency+0x10a/0x120\[  453.262125\] Call Trace:
 \_\_flush\_work.isra.0+0xbf/0x220
 ? \_\_queue\_work+0x1dc/0x420
 flush\_all\_cpus\_locked+0xfb/0x120
 \_\_kmem\_cache\_shutdown+0x2b/0x320
 kmem\_cache\_destroy+0x49/0x100
 bioset\_exit+0x143/0x190
 blk\_release\_queue+0xb9/0x100
 kobject\_cleanup+0x37/0x130
 nvme\_fc\_ctrl\_free+0xc6/0x150 \[nvme\_fc\]
 nvme\_free\_ctrl+0x1ac/0x2b0 \[nvme\_core\]

Fix this bug by creating a workqueue for the flush operation with
the WQ\_MEM\_RECLAIM bit set.

## Affected and fixed versions

- Linux: \>= 5a836bf6b09f99ead1b69457ff39ab3011ece57b, \< 61703b248be993eb4997b00ae5d3318e6d8f3c5b; \>= 5a836bf6b09f99ead1b69457ff39ab3011ece57b, \< df6cb39335cf5a1b918e8dbd8ba7cd9f1d00e45a; \>= 5a836bf6b09f99ead1b69457ff39ab3011ece57b, \< e45cc288724f0cfd497bb5920bcfa60caa335729 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-48658.md
Affected: Linux >= 5a836bf6b09f99ead1b69457ff39ab3011ece57b, < 61703b248be993eb4997b00ae5d3318e6d8f3c5b; >= 5a836bf6b09f99ead1b69457ff39ab3011ece57b, < df6cb39335cf5a1b918e8dbd8ba7cd9f1d00e45a; >= 5a836bf6b09f99ead1b69457ff39ab3011ece57b, < e45cc288724f0cfd497bb5920bcfa60caa335729; Linux 5.15
Fixed in: Linux 61703b248be993eb4997b00ae5d3318e6d8f3c5b

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-48658 being exploited?

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

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

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 5a836bf6b09f99ead1b69457ff39ab3011ece57b, \< 61703b248be993eb4997b00ae5d3318e6d8f3c5b; \>= 5a836bf6b09f99ead1b69457ff39ab3011ece57b, \< df6cb39335cf5a1b918e8dbd8ba7cd9f1d00e45a; \>= 5a836bf6b09f99ead1b69457ff39ab3011ece57b, \< e45cc288724f0cfd497bb5920bcfa60caa335729; Linux 5.15.

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

Yes. Fixed in Linux 61703b248be993eb4997b00ae5d3318e6d8f3c5b. No fix listed yet: follow the vendor advisory.

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

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/61703b248be993eb4997b00ae5d3318e6d8f3c5b>
- patch: <https://git.kernel.org/stable/c/df6cb39335cf5a1b918e8dbd8ba7cd9f1d00e45a>
- patch: <https://git.kernel.org/stable/c/e45cc288724f0cfd497bb5920bcfa60caa335729>

## 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-48658>

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