7.8

CVE-2025-38069: linux Double Free

CVSS: 7.8v3.1HighAnalyzed
AliasesUBUNTU-CVE-2025-38069DEBIAN-CVE-2025-38069
Published 18-06-2025Last modified 11-05-2026

Vulnerability summary

CVE-2025-38069 is a high (CVSS 7.8) Double Free vulnerability in linux. EPSS estimates a 0.18% chance of exploitation in the next 30 days, higher than 7.4% of scored vulnerabilities.

Overall risk
31/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.8/10
010
High · v3.1 (NVD)
EPSS score
0.18%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 10 · Related 10

Timeline

  1. 18-06-2025
    PublishedVulnerability first disclosed.
  2. 11-05-2026
    Last modifiedVulnerability information updated.

Description

In the Linux kernel, the following vulnerability has been resolved: PCI: endpoint: pci-epf-test: Fix double free that causes kernel to oops Fix a kernel oops found while testing the stm32_pcie Endpoint driver with handling of PERST# deassertion: During EP initialization, pci_epf_test_alloc_space() allocates all BARs, which are further freed if epc_set_bar() fails (for instance, due to no free inbound window). However, when pci_epc_set_bar() fails, the error path: pci_epc_set_bar() -> pci_epf_free_space() does not clear the previous assignment to epf_test->reg[bar]. Then, if the host reboots, the PERST# deassertion restarts the BAR allocation sequence with the same allocation failure (no free inbound window), creating a double free situation since epf_test->reg[bar] was deallocated and is still non-NULL. Thus, make sure that pci_epf_alloc_space() and pci_epf_free_space() invocations are symmetric, and as such, set epf_test->reg[bar] to NULL when memory is freed. [kwilczynski: commit log]

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.18%

Chance of exploitation in the next 30 days

Percentile

7%

Versus all other CVEs

30-day change

0.00 pp

From 0.18% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.18%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Ubuntu147 products
  • linuxAll versions (No fix recorded) | < 6.8.0-147.147
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-awsAll versions (No fix recorded) | < 6.8.0-1067.70
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Linux2 products
  • linux≥ 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < fe2329eff5bee461ebcafadb6ca1df0cbf5945fd | ≥ 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < 8b83893d1f6c6061a7d58169ecdf9d5ee9f306ee | ≥ 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < 934e9d137d937706004c325fa1474f9e3f1ba10a | 4.12
  • linux_kernel< 6.12.31 | ≥ 6.13, < 6.14.9
Debian1 product
  • linuxAll versions (No fix recorded) | < 6.12.32-1

3 vendors · 150 products

References

17 links
Show all 17 references