# CVE-2022-48649: mm/slab\_common: fix possible double free of kmem\_cache

> 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, NVD) `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.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-415, CWE-416
- **Published:** 2024-04-28T13:00:33.390Z
- **Modified:** 2026-06-17T05:15:49.197Z

## Who should check

- Anyone running Linux \>= 357321557920c805de2b14832002465c320eea4f, \< c673c6ceac53fb2e631c9fbbd79957099a08927f; \>= 0495e337b7039191dfce6e03f5f830454b1fae6b, \< d71608a877362becdc94191f190902fac1e64d35
- Anyone running Linux \>= 5.19.8, \< 5.19.12

## Description

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

mm/slab\_common: fix possible double free of kmem\_cache

When doing slub\_debug test, kfence's 'test\_memcache\_typesafe\_by\_rcu'
kunit test case cause a use-after-free error:

  BUG: KASAN: use-after-free in kobject\_del+0x14/0x30
  Read of size 8 at addr ffff888007679090 by task kunit\_try\_catch/261

  CPU: 1 PID: 261 Comm: kunit\_try\_catch Tainted: G    B            N 6.0.0-rc5-next-20220916 \#17
  Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014
  Call Trace:
   \<TASK\>
   dump\_stack\_lvl+0x34/0x48
   print\_address\_description.constprop.0+0x87/0x2a5
   print\_report+0x103/0x1ed
   kasan\_report+0xb7/0x140
   kobject\_del+0x14/0x30
   kmem\_cache\_destroy+0x130/0x170
   test\_exit+0x1a/0x30
   kunit\_try\_run\_case+0xad/0xc0
   kunit\_generic\_run\_threadfn\_adapter+0x26/0x50
   kthread+0x17b/0x1b0
   \</TASK\>

The cause is inside kmem\_cache\_destroy():

kmem\_cache\_destroy
    acquire lock/mutex
    shutdown\_cache
        schedule\_work(kmem\_cache\_release) (if RCU flag set)
    release lock/mutex
    kmem\_cache\_release (if RCU flag not set)

In some certain timing, the scheduled work could be run before
the next RCU flag checking, which can then get a wrong value
and lead to double kmem\_cache\_release().

Fix it by caching the RCU flag inside protected area, just like 'refcnt'

## Affected and fixed versions

- Linux: \>= 357321557920c805de2b14832002465c320eea4f, \< c673c6ceac53fb2e631c9fbbd79957099a08927f; \>= 0495e337b7039191dfce6e03f5f830454b1fae6b, \< d71608a877362becdc94191f190902fac1e64d35 (cvelist)
- Linux: \>= 5.19.8, \< 5.19.12 (cvelist)

## Mitigation

- Upgrade Linux to 5.19.12 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-48649. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-48649.md
Affected: Linux >= 357321557920c805de2b14832002465c320eea4f, < c673c6ceac53fb2e631c9fbbd79957099a08927f; >= 0495e337b7039191dfce6e03f5f830454b1fae6b, < d71608a877362becdc94191f190902fac1e64d35; Linux >= 5.19.8, < 5.19.12
Fixed in: Linux 5.19.12

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

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

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

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

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

Linux \>= 357321557920c805de2b14832002465c320eea4f, \< c673c6ceac53fb2e631c9fbbd79957099a08927f; \>= 0495e337b7039191dfce6e03f5f830454b1fae6b, \< d71608a877362becdc94191f190902fac1e64d35; Linux \>= 5.19.8, \< 5.19.12.

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

Yes. Fixed in Linux 5.19.12. Upgrade Linux to 5.19.12 or later.

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

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/c673c6ceac53fb2e631c9fbbd79957099a08927f>
- patch: <https://git.kernel.org/stable/c/d71608a877362becdc94191f190902fac1e64d35>

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

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