Cyber Resilience

CVE-2025-22036

Memory Safety in Linux Kernel 6.8 – 6.12.23

Published
16 April 2025
Modified
01 October 2025
Patch / advisory
CVSS Score v3.1 7.0
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0018 7th percentile
Risk Priority 55 floored blend · peak EPSS

Summary

CVE-2025-22036 is a high-severity Race Condition (CWE-362) vulnerability in Linux Linux Kernel. Its CVSS base score is 7.0 (High).

Operationally, ranked at the 7th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SI-16 (Memory Protection) and SC-39 (Process Isolation) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

In the Linux kernel, the following vulnerability has been resolved: exfat: fix random stack corruption after get_block When get_block is called with a buffer_head allocated on the stack, such as do_mpage_readpage, stack corruption due to buffer_head UAF may occur in…

more

the following race condition situation. <CPU 0> <CPU 1> mpage_read_folio <<bh on stack>> do_mpage_readpage exfat_get_block bh_read __bh_read get_bh(bh) submit_bh wait_on_buffer ... end_buffer_read_sync __end_buffer_read_notouch unlock_buffer <<keep going>> ... ... ... ... <<bh is not valid out of mpage_read_folio>> . . another_function <<variable A on stack>> put_bh(bh) atomic_dec(bh->b_count) * stack corruption here * This patch returns -EAGAIN if a folio does not have buffers when bh_read needs to be called. By doing this, the caller can fallback to functions like block_read_full_folio(), create a buffer_head in the folio, and then call get_block again. Let's do not call bh_read() with on-stack buffer_head.

CWE(s)

Related Threats

CVEs Like This One

CVE-2024-56664Same product: Linux Linux Kernel
CVE-2023-35827Same product: Linux Linux Kernel
CVE-2023-52502Same product: Linux Linux Kernel
CVE-2024-49981Same product: Linux Linux Kernel
CVE-2024-36899Same product: Linux Linux Kernel
CVE-2023-3397Same product: Linux Linux Kernel
CVE-2024-56556Same product: Linux Linux Kernel
CVE-2025-21718Same product: Linux Linux Kernel
CVE-2024-53186Same product: Linux Linux Kernel
CVE-2024-39503Same product: Linux Linux Kernel

Affected Assets

linux
linux kernel
6.8 — 6.12.23 · 6.13 — 6.13.11 · 6.14 — 6.14.2

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)
Detect
Catch it (NIST detect / respond)
  • SI-7 Software, Firmware, and Information Integrity
Harden
Shrink the surface (DISA STIG)
  • 3 hardening rules · 3 OS baselines
Validate
Prove the fix (OWASP ASVS)
  • V10.4.2
  • V10.4.5
  • V15.1.3
  • V15.4.1

Mitigating Controls (NIST 800-53 r5) AI

prevent

Directly counters the CWE-416 UAF on the stack-allocated buffer_head by enforcing memory protection techniques that prevent use of freed or invalid kernel memory objects.

prevent

Process/kernel isolation boundaries limit the blast radius of the CPU0/CPU1 race on exfat_get_block and bh_read, reducing the chance that stack corruption affects other execution contexts.

detect

Integrity verification of kernel code and data structures can detect the stack corruption that results from the exfat race condition before it leads to further compromise.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices directly require proper synchronization primitives and concurrency testing that prevent race conditions.

ID.RA-01 partial match
prevents

Vulnerability identification processes can discover use-after-free issues via scanning or analysis but do not prevent their introduction.

PR.PS-02 partial match
prevents

Routine patching removes known use-after-free instances after they have been introduced in released software.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

detects

Security testing can detect race conditions, but does not prevent them at design or coding time.

prevents

Secure SDLC mandates concurrency controls and synchronization primitives that directly prevent race conditions.

prevents

Application security requirements can specify thread-safety and locking rules, but do not prescribe implementation details.

prevents

Secure architecture principles require proper synchronization and resource isolation, addressing the root cause of CWE-362.

prevents

Secure coding standards explicitly forbid unsafe concurrent access patterns and mandate atomic operations or locks.

prevents

Change-management processes help ensure memory-safety fixes are deployed consistently.

References