# CVE-2024-46789: mm/slub: add check for s-\>flags in the alloc\_tagging\_slab\_free\_hook

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; 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:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **Published:** 2024-09-18T07:12:45.154Z
- **Modified:** 2026-06-17T07:55:56.270Z

## Who should check

- Anyone running Linux \>= 4b8736964640fe160724e7135dc62883bddcdace, \< 2d476c86ba4745fcbc912ce4627df4fa80caa9ad; \>= 4b8736964640fe160724e7135dc62883bddcdace, \< ab7ca09520e9c41c219a4427fe0dae24024bfe7f
- Anyone running Linux 6.10

## Description

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

mm/slub: add check for s-\>flags in the alloc\_tagging\_slab\_free\_hook

When enable CONFIG\_MEMCG & CONFIG\_KFENCE & CONFIG\_KMEMLEAK, the following
warning always occurs,This is because the following call stack occurred:
mem\_pool\_alloc
    kmem\_cache\_alloc\_noprof
        slab\_alloc\_node
            kfence\_alloc

Once the kfence allocation is successful,slab-\>obj\_exts will not be empty,
because it has already been assigned a value in kfence\_init\_pool.

Since in the prepare\_slab\_obj\_exts\_hook function,we perform a check for
s-\>flags & (SLAB\_NO\_OBJ\_EXT \| SLAB\_NOLEAKTRACE),the alloc\_tag\_add function
will not be called as a result.Therefore,ref-\>ct remains NULL.

However,when we call mem\_pool\_free,since obj\_ext is not empty, it
eventually leads to the alloc\_tag\_sub scenario being invoked.  This is
where the warning occurs.

So we should add corresponding checks in the alloc\_tagging\_slab\_free\_hook.
For \_\_GFP\_NO\_OBJ\_EXT case,I didn't see the specific case where it's using
kfence,so I won't add the corresponding check in
alloc\_tagging\_slab\_free\_hook for now.

\[    3.734349\] ------------\[ cut here \]------------
\[    3.734807\] alloc\_tag was not set
\[    3.735129\] WARNING: CPU: 4 PID: 40 at ./include/linux/alloc\_tag.h:130 kmem\_cache\_free+0x444/0x574
\[    3.735866\] Modules linked in: autofs4
\[    3.736211\] CPU: 4 UID: 0 PID: 40 Comm: ksoftirqd/4 Tainted: G        W          6.11.0-rc3-dirty \#1
\[    3.736969\] Tainted: \[W\]=WARN
\[    3.737258\] Hardware name: QEMU KVM Virtual Machine, BIOS unknown 2/2/2022
\[    3.737875\] pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
\[    3.738501\] pc : kmem\_cache\_free+0x444/0x574
\[    3.738951\] lr : kmem\_cache\_free+0x444/0x574
\[    3.739361\] sp : ffff80008357bb60
\[    3.739693\] x29: ffff80008357bb70 x28: 0000000000000000 x27: 0000000000000000
\[    3.740338\] x26: ffff80008207f000 x25: ffff000b2eb2fd60 x24: ffff0000c0005700
\[    3.740982\] x23: ffff8000804229e4 x22: ffff800082080000 x21: ffff800081756000
\[    3.741630\] x20: fffffd7ff8253360 x19: 00000000000000a8 x18: ffffffffffffffff
\[    3.742274\] x17: ffff800ab327f000 x16: ffff800083398000 x15: ffff800081756df0
\[    3.742919\] x14: 0000000000000000 x13: 205d344320202020 x12: 5b5d373038343337
\[    3.743560\] x11: ffff80008357b650 x10: 000000000000005d x9 : 00000000ffffffd0
\[    3.744231\] x8 : 7f7f7f7f7f7f7f7f x7 : ffff80008237bad0 x6 : c0000000ffff7fff
\[    3.744907\] x5 : ffff80008237ba78 x4 : ffff8000820bbad0 x3 : 0000000000000001
\[    3.745580\] x2 : 68d66547c09f7800 x1 : 68d66547c09f7800 x0 : 0000000000000000
\[    3.746255\] Call trace:
\[    3.746530\]  kmem\_cache\_free+0x444/0x574
\[    3.746931\]  mem\_pool\_free+0x44/0xf4
\[    3.747306\]  free\_object\_rcu+0xc8/0xdc
\[    3.747693\]  rcu\_do\_batch+0x234/0x8a4
\[    3.748075\]  rcu\_core+0x230/0x3e4
\[    3.748424\]  rcu\_core\_si+0x14/0x1c
\[    3.748780\]  handle\_softirqs+0x134/0x378
\[    3.749189\]  run\_ksoftirqd+0x70/0x9c
\[    3.749560\]  smpboot\_thread\_fn+0x148/0x22c
\[    3.749978\]  kthread+0x10c/0x118
\[    3.750323\]  ret\_from\_fork+0x10/0x20
\[    3.750696\] ---\[ end trace 0000000000000000 \]---

## Affected and fixed versions

- Linux: \>= 4b8736964640fe160724e7135dc62883bddcdace, \< 2d476c86ba4745fcbc912ce4627df4fa80caa9ad; \>= 4b8736964640fe160724e7135dc62883bddcdace, \< ab7ca09520e9c41c219a4427fe0dae24024bfe7f (cvelist)
- Linux: 6.10 (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-2024-46789. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-46789.md
Affected: Linux >= 4b8736964640fe160724e7135dc62883bddcdace, < 2d476c86ba4745fcbc912ce4627df4fa80caa9ad; >= 4b8736964640fe160724e7135dc62883bddcdace, < ab7ca09520e9c41c219a4427fe0dae24024bfe7f; Linux 6.10
Fixed in: Linux 2d476c86ba4745fcbc912ce4627df4fa80caa9ad

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-2024-46789 being exploited?

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

### How serious is CVE-2024-46789?

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

### Which versions are affected by CVE-2024-46789?

Linux \>= 4b8736964640fe160724e7135dc62883bddcdace, \< 2d476c86ba4745fcbc912ce4627df4fa80caa9ad; \>= 4b8736964640fe160724e7135dc62883bddcdace, \< ab7ca09520e9c41c219a4427fe0dae24024bfe7f; Linux 6.10.

### Is there a fix for CVE-2024-46789?

Yes. Fixed in Linux 2d476c86ba4745fcbc912ce4627df4fa80caa9ad. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-46789?

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/2d476c86ba4745fcbc912ce4627df4fa80caa9ad>
- patch: <https://git.kernel.org/stable/c/ab7ca09520e9c41c219a4427fe0dae24024bfe7f>

## 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-2024-46789>

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