Skip to content
Fencer Vulns
high 7.8

CVE-2025-22036 json

exfat: fix random stack corruption after get_block

published 2025-04-16 18 mo ago modified 2026-08-05 3 mo ago also EUVD-2025-11260

cvss
7.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 9%
public exploits
0
none known

Summary

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 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.

Patch / fix

  • Linux Linux 6.12.23, 6.13.11, 6.14.2, 6.15
  • linux Debian 14, Debian 13 6.12.25-1

debian advisories DEBIAN-CVE-2025-22036

  • linux Ubuntu 24.04 LTS 6.8.0-86.87
  • linux-aws Ubuntu 24.04 LTS 6.8.0-1041.43
  • linux-gcp Ubuntu 24.04 LTS 6.8.0-1042.45
  • linux-gke Ubuntu 24.04 LTS 6.8.0-1038.43
  • linux-ibm Ubuntu 24.04 LTS 6.8.0-1039.39
  • linux-azure Ubuntu 24.04 LTS 6.8.0-1041.47
  • linux-gkeop Ubuntu 24.04 LTS 6.8.0-1025.28
  • linux-raspi Ubuntu 24.04 LTS 6.8.0-1041.45

ubuntu advisories UBUNTU-CVE-2025-22036

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • kernel RHEL 10.0 6.12.0-55.21.1.el10_0
  • rv RHEL 10.0 6.12.0-55.21.1.el10_0
  • perf RHEL 10.0 6.12.0-55.21.1.el10_0
  • rtla RHEL 10.0 6.12.0-55.21.1.el10_0
  • libperf RHEL 10.0 6.12.0-55.21.1.el10_0
  • kernel-rt RHEL 10.0 6.12.0-55.21.1.el10_0
  • kernel-64k RHEL 10.0 6.12.0-55.21.1.el10_0
  • kernel-core RHEL 10.0 6.12.0-55.21.1.el10_0

red hat advisories RHSA-2025:10854

  • kernel-azure SLE Module for Public Cloud 15 SP7 6.4.0-150700.20.3.1
  • kernel-syms-azure SLE Module for Public Cloud 15 SP7 6.4.0-150700.20.3.1
  • kernel-source-azure SLE Module for Public Cloud 15 SP7 6.4.0-150700.20.3.1
  • kernel-rt Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.39.1
  • kernel-syms-rt Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.39.1
  • kernel-rt_debug Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.39.1
  • kernel-source-rt Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.39.1
  • kernel-64kb SLE Module for Basesystem 15 SP7 6.4.0-150700.53.3.1

suse advisories SUSE-SU-2025:01967-1SUSE-SU-2025:01964-1SUSE-SU-2025:01951-1SUSE-SU-2025:01919-1SUSE-SU-2025:01707-1SUSE-SU-2025:20344-1

  • kernel-abi-stablelists AlmaLinux 10 6.12.0-55.21.1.el10_0

almalinux advisories ALSA-2025:10854

  • kernel Rocky Linux 10 6.12.0-55.21.1.el10_0

rocky linux advisories RLSA-2025:10854

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-22036 updated cvss 4.7

kernel: exfat: fix random stack corruption after get_block

  • Red Hat Enterprise Linux AppStream (v. 10) rv 6.12.0-55.21.1.el10_0, perf 6.12.0-55.21.1.el10_0, rtla 6.12.0-55.21.1.el10_0, python3-perf 6.12.0-55.21.1.el10_0, kernel-devel-matched 6.12.0-55.21.1.el10_0, kernel-64k-devel-matched 6.12.0-55.21.1.el10_0, +7 more Red Hat Enterprise Linux BaseOS (v. 10) kernel 6.12.0-55.21.1.el10_0, kernel-64k 6.12.0-55.21.1.el10_0, kernel-core 6.12.0-55.21.1.el10_0, kernel-tools 6.12.0-55.21.1.el10_0, kernel-modules 6.12.0-55.21.1.el10_0, kernel-64k-core 6.12.0-55.21.1.el10_0, +27 more Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) libperf 6.12.0-55.21.1.el10_0, kernel-debuginfo-common-s390x 6.12.0-55.21.1.el10_0, kernel-debuginfo-common-x86_64 6.12.0-55.21.1.el10_0, kernel-debuginfo-common-aarch64 6.12.0-55.21.1.el10_0, kernel-debuginfo-common-ppc64le 6.12.0-55.21.1.el10_0 Red Hat Enterprise Linux Real Time (v. 10) kernel-rt 6.12.0-55.21.1.el10_0, kernel-rt-64k 6.12.0-55.21.1.el10_0, kernel-rt-core 6.12.0-55.21.1.el10_0, kernel-rt-modules 6.12.0-55.21.1.el10_0, kernel-rt-64k-core 6.12.0-55.21.1.el10_0, kernel-rt-debug-core 6.12.0-55.21.1.el10_0, +14 more Red Hat Enterprise Linux Real Time for NFV (v. 10) kernel-rt 6.12.0-55.21.1.el10_0, kernel-rt-kvm 6.12.0-55.21.1.el10_0, kernel-rt-core 6.12.0-55.21.1.el10_0, kernel-rt-modules 6.12.0-55.21.1.el10_0, kernel-rt-debug-kvm 6.12.0-55.21.1.el10_0, kernel-rt-debug-core 6.12.0-55.21.1.el10_0, +6 more
    fixed: vendor fix RHSA-2025:10854
  • Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
13 mo ago

Exploit prediction

0.20% chance of exploitation in the next 30 days, higher than 9% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA ADP 3.1 7.0 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 3.1 7.0 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CNA 3.1 7.0 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

  • Linux Linux

Classification

Weakness
  • CWE-416 Use After Free
  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.