# CVE-2024-36906: ARM: 9381/1: kasan: clear stale stack poison

> 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.33% (percentile 18, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2024-05-30T15:29:06.620Z
- **Modified:** 2026-06-17T07:37:19.853Z

## Who should check

- Anyone running Linux \>= 5615f69bc2097452ecc954f5264d784e158d6801, \< 20ac71bee028ffbae4fc14ed679b23b4d3e95726; \>= 5615f69bc2097452ecc954f5264d784e158d6801, \< ad702338fe423cb1e79745787090317256a98dab; \>= 5615f69bc2097452ecc954f5264d784e158d6801, \< ee0ce7573e5083031960faf602c9db693ab5b477; \>= 5615f69bc2097452ecc954f5264d784e158d6801, \< b26f353786d365e658cebc9a9ace88e04fc2325e; \>= 5615f69bc2097452ecc954f5264d784e158d6801, \< c4238686f9093b98bd6245a348bcf059cdce23af
- Anyone running Linux 5.11

## Description

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

ARM: 9381/1: kasan: clear stale stack poison

We found below OOB crash:

\[   33.452494\] ==================================================================
\[   33.453513\] BUG: KASAN: stack-out-of-bounds in refresh\_cpu\_vm\_stats.constprop.0+0xcc/0x2ec
\[   33.454660\] Write of size 164 at addr c1d03d30 by task swapper/0/0
\[   33.455515\]
\[   33.455767\] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G           O       6.1.25-mainline \#1
\[   33.456880\] Hardware name: Generic DT based system
\[   33.457555\]  unwind\_backtrace from show\_stack+0x18/0x1c
\[   33.458326\]  show\_stack from dump\_stack\_lvl+0x40/0x4c
\[   33.459072\]  dump\_stack\_lvl from print\_report+0x158/0x4a4
\[   33.459863\]  print\_report from kasan\_report+0x9c/0x148
\[   33.460616\]  kasan\_report from kasan\_check\_range+0x94/0x1a0
\[   33.461424\]  kasan\_check\_range from memset+0x20/0x3c
\[   33.462157\]  memset from refresh\_cpu\_vm\_stats.constprop.0+0xcc/0x2ec
\[   33.463064\]  refresh\_cpu\_vm\_stats.constprop.0 from tick\_nohz\_idle\_stop\_tick+0x180/0x53c
\[   33.464181\]  tick\_nohz\_idle\_stop\_tick from do\_idle+0x264/0x354
\[   33.465029\]  do\_idle from cpu\_startup\_entry+0x20/0x24
\[   33.465769\]  cpu\_startup\_entry from rest\_init+0xf0/0xf4
\[   33.466528\]  rest\_init from arch\_post\_acpi\_subsys\_init+0x0/0x18
\[   33.467397\]
\[   33.467644\] The buggy address belongs to stack of task swapper/0/0
\[   33.468493\]  and is located at offset 112 in frame:
\[   33.469172\]  refresh\_cpu\_vm\_stats.constprop.0+0x0/0x2ec
\[   33.469917\]
\[   33.470165\] This frame has 2 objects:
\[   33.470696\]  \[32, 76) 'global\_zone\_diff'
\[   33.470729\]  \[112, 276) 'global\_node\_diff'
\[   33.471294\]
\[   33.472095\] The buggy address belongs to the physical page:
\[   33.472862\] page:3cd72da8 refcount:1 mapcount:0 mapping:00000000 index:0x0 pfn:0x41d03
\[   33.473944\] flags: 0x1000(reserved\|zone=0)
\[   33.474565\] raw: 00001000 ed741470 ed741470 00000000 00000000 00000000 ffffffff 00000001
\[   33.475656\] raw: 00000000
\[   33.476050\] page dumped because: kasan: bad access detected
\[   33.476816\]
\[   33.477061\] Memory state around the buggy address:
\[   33.477732\]  c1d03c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
\[   33.478630\]  c1d03c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00
\[   33.479526\] \>c1d03d00: 00 04 f2 f2 f2 f2 00 00 00 00 00 00 f1 f1 f1 f1
\[   33.480415\]                                                ^
\[   33.481195\]  c1d03d80: 00 00 00 00 00 00 00 00 00 00 04 f3 f3 f3 f3 f3
\[   33.482088\]  c1d03e00: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00
\[   33.482978\] ==================================================================

We find the root cause of this OOB is that arm does not clear stale stack
poison in the case of cpuidle.

This patch refer to arch/arm64/kernel/sleep.S to resolve this issue.

From cited commit \[1\] that explain the problem

Functions which the compiler has instrumented for KASAN place poison on
the stack shadow upon entry and remove this poison prior to returning.

In the case of cpuidle, CPUs exit the kernel a number of levels deep in
C code.  Any instrumented functions on this critical path will leave
portions of the stack shadow poisoned.

If CPUs lose context and return to the kernel via a cold path, we
restore a prior context saved in \_\_cpu\_suspend\_enter are forgotten, and
we never remove the poison they placed in the stack shadow area by
functions calls between this and the actual exit of the kernel.

Thus, (depending on stackframe layout) subsequent calls to instrumented
functions may hit this stale poison, resulting in (spurious) KASAN
splats to the console.

To avoid this, clear any stale poison from the idle thread for a CPU
prior to bringing a CPU online.

From cited commit \[2\]

Extend to check for CONFIG\_KASAN\_STACK

\[1\] commit 0d97e6d8024c ("arm64: kasan: clear stale stack poison")
\[2\] commit d56a9ef84bd0 ("kasan, arm64: unpoison stack only with CONFIG\_KASAN\_STACK")

## Affected and fixed versions

- Linux: \>= 5615f69bc2097452ecc954f5264d784e158d6801, \< 20ac71bee028ffbae4fc14ed679b23b4d3e95726; \>= 5615f69bc2097452ecc954f5264d784e158d6801, \< ad702338fe423cb1e79745787090317256a98dab; \>= 5615f69bc2097452ecc954f5264d784e158d6801, \< ee0ce7573e5083031960faf602c9db693ab5b477; \>= 5615f69bc2097452ecc954f5264d784e158d6801, \< b26f353786d365e658cebc9a9ace88e04fc2325e; \>= 5615f69bc2097452ecc954f5264d784e158d6801, \< c4238686f9093b98bd6245a348bcf059cdce23af (cvelist)
- Linux: 5.11 (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-36906. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-36906.md
Affected: Linux >= 5615f69bc2097452ecc954f5264d784e158d6801, < 20ac71bee028ffbae4fc14ed679b23b4d3e95726; >= 5615f69bc2097452ecc954f5264d784e158d6801, < ad702338fe423cb1e79745787090317256a98dab; >= 5615f69bc2097452ecc954f5264d784e158d6801, < ee0ce7573e5083031960faf602c9db693ab5b477; >= 5615f69bc2097452ecc954f…
Fixed in: Linux 20ac71bee028ffbae4fc14ed679b23b4d3e95726

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

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

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

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

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

Linux \>= 5615f69bc2097452ecc954f5264d784e158d6801, \< 20ac71bee028ffbae4fc14ed679b23b4d3e95726; \>= 5615f69bc2097452ecc954f5264d784e158d6801, \< ad702338fe423cb1e79745787090317256a98dab; \>= 5615f69bc2097452ecc954f5264d784e158d6801, \< ee0ce7573e5083031960faf602c9db693ab5b477; \>= 5615f69bc2097452ecc954f5264d784e158d6801, \< b26f353786d365e658cebc9a9ace88e04fc2325e; \>= 5615f69bc2097452ecc954f5264d784e158d6801, \< c4238686f9093b98bd6245a348bcf059cdce23af; Linux 5.11.

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

Yes. Fixed in Linux 20ac71bee028ffbae4fc14ed679b23b4d3e95726. No fix listed yet: follow the vendor advisory.

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

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/20ac71bee028ffbae4fc14ed679b23b4d3e95726>
- patch: <https://git.kernel.org/stable/c/ad702338fe423cb1e79745787090317256a98dab>
- patch: <https://git.kernel.org/stable/c/ee0ce7573e5083031960faf602c9db693ab5b477>
- patch: <https://git.kernel.org/stable/c/b26f353786d365e658cebc9a9ace88e04fc2325e>
- patch: <https://git.kernel.org/stable/c/c4238686f9093b98bd6245a348bcf059cdce23af>

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

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