# CVE-2024-56559: mm/vmalloc: combine all TLB flush operations of KASAN shadow virtual address into one operation

> 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.20% (percentile 5, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-12-27T14:23:04.688Z
- **Modified:** 2026-06-17T08:12:23.533Z

## Who should check

- Anyone running Linux \>= 282631cb2447318e2a55b41a665dbe8571c46d70, \< f9a18889aad9b4c19c6c4550c67ad4f9ed2a354f; \>= 282631cb2447318e2a55b41a665dbe8571c46d70, \< 9e9e085effe9b7e342138fde3cf8577d22509932
- Anyone running Linux 6.9

## Description

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

mm/vmalloc: combine all TLB flush operations of KASAN shadow virtual address into one operation

When compiling kernel source 'make -j $(nproc)' with the up-and-running
KASAN-enabled kernel on a 256-core machine, the following soft lockup is
shown:

watchdog: BUG: soft lockup - CPU\#28 stuck for 22s! \[kworker/28:1:1760\]
CPU: 28 PID: 1760 Comm: kworker/28:1 Kdump: loaded Not tainted 6.10.0-rc5 \#95
Workqueue: events drain\_vmap\_area\_work
RIP: 0010:smp\_call\_function\_many\_cond+0x1d8/0xbb0
Code: 38 c8 7c 08 84 c9 0f 85 49 08 00 00 8b 45 08 a8 01 74 2e 48 89 f1 49 89 f7 48 c1 e9 03 41 83 e7 07 4c 01 e9 41 83 c7 03 f3 90 \<0f\> b6 01 41 38 c7 7c 08 84 c0 0f 85 d4 06 00 00 8b 45 08 a8 01 75
RSP: 0018:ffffc9000cb3fb60 EFLAGS: 00000202
RAX: 0000000000000011 RBX: ffff8883bc4469c0 RCX: ffffed10776e9949
RDX: 0000000000000002 RSI: ffff8883bb74ca48 RDI: ffffffff8434dc50
RBP: ffff8883bb74ca40 R08: ffff888103585dc0 R09: ffff8884533a1800
R10: 0000000000000004 R11: ffffffffffffffff R12: ffffed1077888d39
R13: dffffc0000000000 R14: ffffed1077888d38 R15: 0000000000000003
FS:  0000000000000000(0000) GS:ffff8883bc400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005577b5c8d158 CR3: 0000000004850000 CR4: 0000000000350ef0
Call Trace:
 \<IRQ\>
 ? watchdog\_timer\_fn+0x2cd/0x390
 ? \_\_pfx\_watchdog\_timer\_fn+0x10/0x10
 ? \_\_hrtimer\_run\_queues+0x300/0x6d0
 ? sched\_clock\_cpu+0x69/0x4e0
 ? \_\_pfx\_\_\_hrtimer\_run\_queues+0x10/0x10
 ? srso\_return\_thunk+0x5/0x5f
 ? ktime\_get\_update\_offsets\_now+0x7f/0x2a0
 ? srso\_return\_thunk+0x5/0x5f
 ? srso\_return\_thunk+0x5/0x5f
 ? hrtimer\_interrupt+0x2ca/0x760
 ? \_\_sysvec\_apic\_timer\_interrupt+0x8c/0x2b0
 ? sysvec\_apic\_timer\_interrupt+0x6a/0x90
 \</IRQ\>
 \<TASK\>
 ? asm\_sysvec\_apic\_timer\_interrupt+0x16/0x20
 ? smp\_call\_function\_many\_cond+0x1d8/0xbb0
 ? \_\_pfx\_do\_kernel\_range\_flush+0x10/0x10
 on\_each\_cpu\_cond\_mask+0x20/0x40
 flush\_tlb\_kernel\_range+0x19b/0x250
 ? srso\_return\_thunk+0x5/0x5f
 ? kasan\_release\_vmalloc+0xa7/0xc0
 purge\_vmap\_node+0x357/0x820
 ? \_\_pfx\_purge\_vmap\_node+0x10/0x10
 \_\_purge\_vmap\_area\_lazy+0x5b8/0xa10
 drain\_vmap\_area\_work+0x21/0x30
 process\_one\_work+0x661/0x10b0
 worker\_thread+0x844/0x10e0
 ? srso\_return\_thunk+0x5/0x5f
 ? \_\_kthread\_parkme+0x82/0x140
 ? \_\_pfx\_worker\_thread+0x10/0x10
 kthread+0x2a5/0x370
 ? \_\_pfx\_kthread+0x10/0x10
 ret\_from\_fork+0x30/0x70
 ? \_\_pfx\_kthread+0x10/0x10
 ret\_from\_fork\_asm+0x1a/0x30
 \</TASK\>

Debugging Analysis:

  1. The following ftrace log shows that the lockup CPU spends too much
     time iterating vmap\_nodes and flushing TLB when purging vm\_area
     structures. (Some info is trimmed).

     kworker: funcgraph\_entry:              \|  drain\_vmap\_area\_work() {
     kworker: funcgraph\_entry:              \|   mutex\_lock() {
     kworker: funcgraph\_entry:  1.092 us    \|     \_\_cond\_resched();
     kworker: funcgraph\_exit:   3.306 us    \|   }
     ...                                        ...
     kworker: funcgraph\_entry:              \|    flush\_tlb\_kernel\_range() {
     ...                                          ...
     kworker: funcgraph\_exit: \# 7533.649 us \|    }
     ...                                         ...
     kworker: funcgraph\_entry:  2.344 us    \|   mutex\_unlock();
     kworker: funcgraph\_exit: $ 23871554 us \| }

     The drain\_vmap\_area\_work() spends over 23 seconds.

     There are 2805 flush\_tlb\_kernel\_range() calls in the ftrace log.
       \* One is called in \_\_purge\_vmap\_area\_lazy().
       \* Others are called by purge\_vmap\_node-\>kasan\_release\_vmalloc.
         purge\_vmap\_node() iteratively releases kasan vmalloc
         allocations and flushes TLB for each vmap\_area.
           - \[Rough calculation\] Each flush\_tlb\_kernel\_range() runs
             about 7.5ms.
               -- 2804 \* 7.5ms = 21.03 seconds.
               -- That's why a soft lock is triggered.

  2. Extending the soft lockup time can work around the issue (For example,
     \# echo
---truncated---

## Affected and fixed versions

- Linux: \>= 282631cb2447318e2a55b41a665dbe8571c46d70, \< f9a18889aad9b4c19c6c4550c67ad4f9ed2a354f; \>= 282631cb2447318e2a55b41a665dbe8571c46d70, \< 9e9e085effe9b7e342138fde3cf8577d22509932 (cvelist)
- Linux: 6.9 (cvelist)

## Mitigation

- Upgrade Linux to 9e9e085effe9b7e342138fde3cf8577d22509932 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-56559.md
Affected: Linux >= 282631cb2447318e2a55b41a665dbe8571c46d70, < f9a18889aad9b4c19c6c4550c67ad4f9ed2a354f; >= 282631cb2447318e2a55b41a665dbe8571c46d70, < 9e9e085effe9b7e342138fde3cf8577d22509932; Linux 6.9
Fixed in: Linux 9e9e085effe9b7e342138fde3cf8577d22509932

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

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

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

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

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

Linux \>= 282631cb2447318e2a55b41a665dbe8571c46d70, \< f9a18889aad9b4c19c6c4550c67ad4f9ed2a354f; \>= 282631cb2447318e2a55b41a665dbe8571c46d70, \< 9e9e085effe9b7e342138fde3cf8577d22509932; Linux 6.9.

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

Yes. Fixed in Linux 9e9e085effe9b7e342138fde3cf8577d22509932. Upgrade Linux to 9e9e085effe9b7e342138fde3cf8577d22509932 or later.

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

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/f9a18889aad9b4c19c6c4550c67ad4f9ed2a354f>
- patch: <https://git.kernel.org/stable/c/9e9e085effe9b7e342138fde3cf8577d22509932>

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

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