Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-38069

HIGH 7.8EPSS 15%

PCI: endpoint: pci-epf-test: Fix double free that causes kernel to oops

Mitigation

  • Upgrade Linux to 934e9d137d937706004c325fa1474f9e3f1ba10a or later.

Who should check

  • Anyone running Linux >= 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < e2e43854ab72a9d4908ac2bf6087f80aa138a8b5; >= 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < 761db4ca3a469f2070757acd4e104dff5125ca99; >= 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < fe2329eff5bee461ebcafadb6ca1df0cbf5945fd; >= 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < 8b83893d1f6c6061a7d58169ecdf9d5ee9f306ee; >= 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < 934e9d137d937706004c325fa1474f9e3f1ba10a
  • Anyone running Linux 4.12

Vulnerability facts

Affected
Linux >= 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < e2e43854ab72a9d4908ac2bf6087f80aa138a8b5; >= 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < 761db4ca3a469f2070757acd4e104dff5125ca99; >= 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < fe2329eff5bee461ebcafadb6ca1df0cbf5945fd; >= 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < 8b83893d1f6c6061a7d58169ecdf9d5ee9f306ee; >= 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < 934e9d137d937706004c325fa1474f9e3f1ba10a; Linux 4.12
Fixed in
Linux 761db4ca3a469f2070757acd4e104dff5125ca99, Linux 8b83893d1f6c6061a7d58169ecdf9d5ee9f306ee, Linux 934e9d137d937706004c325fa1474f9e3f1ba10a
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.30% chance of exploitation in 30 days (percentile 15, 2026-11-26)
CWE
CWE-415
Published
Modified

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]

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < e2e43854ab72a9d4908ac2bf6087f80aa138a8b5; >= 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < 761db4ca3a469f2070757acd4e104dff5125ca99; >= 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < fe2329eff5bee461ebcafadb6ca1df0cbf5945fd; >= 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < 8b83893d1f6c6061a7d58169ecdf9d5ee9f306ee; >= 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < 934e9d137d937706004c325fa1474f9e3f1ba10a—cvelist
Linux4.12—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-38069. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38069.md
Affected: Linux >= 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < e2e43854ab72a9d4908ac2bf6087f80aa138a8b5; >= 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < 761db4ca3a469f2070757acd4e104dff5125ca99; >= 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < fe2329eff5bee461ebcafadb6ca1df0cbf5945fd; >= 349e7a85b25fa6ee82902d9…
Fixed in: Linux 761db4ca3a469f2070757acd4e104dff5125ca99, Linux 8b83893d1f6c6061a7d58169ecdf9d5ee9f306ee, Linux 934e9d137d937706004c325fa1474f9e3f1ba10a

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.

References

FAQ

Is CVE-2025-38069 being exploited?

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

How serious is CVE-2025-38069?

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

Which versions are affected by CVE-2025-38069?

Linux >= 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < e2e43854ab72a9d4908ac2bf6087f80aa138a8b5; >= 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < 761db4ca3a469f2070757acd4e104dff5125ca99; >= 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < fe2329eff5bee461ebcafadb6ca1df0cbf5945fd; >= 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < 8b83893d1f6c6061a7d58169ecdf9d5ee9f306ee; >= 349e7a85b25fa6ee82902d9be2cc5f3bec815120, < 934e9d137d937706004c325fa1474f9e3f1ba10a; Linux 4.12.

Is there a fix for CVE-2025-38069?

Yes. Fixed in Linux 761db4ca3a469f2070757acd4e104dff5125ca99, Linux 8b83893d1f6c6061a7d58169ecdf9d5ee9f306ee, Linux 934e9d137d937706004c325fa1474f9e3f1ba10a. Upgrade Linux to 934e9d137d937706004c325fa1474f9e3f1ba10a or later.

How do I check if I'm affected by CVE-2025-38069?

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.

Sponsors