Skip to main content

Linux Kernel CVE-2025-40117

HIGH
2025-11-12 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local low-privileged account
  2. Delivery
    Open pci-endpoint-test device node
  3. Exploit
    Issue ioctl with negative BAR index
  4. Execution
    Trigger array underflow in pci_endpoint_test_bar()
  5. Persist
    Corrupt/leak adjacent kernel memory
  6. Impact
    Crash kernel or escalate privileges

Vulnerability Assessment

Exploitation Conditions

Exploitation requires local access to the target system and the ability to open and issue ioctl() calls against the pci_endpoint_test driver's device node (typically /dev/pci-endpoint-test.N), which in turn requires that the kernel was built with and has loaded the CONFIG_PCI_ENDPOINT_TEST driver - a non-default, niche module used mainly on PCI-endpoint development/embedded platforms. The specific trigger is passing a negative BAR number into pci_endpoint_test_ioctl(), which reaches the unchecked array index in pci_endpoint_test_bar(). Limiting factors: the CVSS vector confirms local (AV:L) and authenticated low-privilege (PR:L) access is needed - this is not remotely reachable and not exploitable by fully unprivileged remote actors; realistic exposure further depends on the device node existing and being accessible to the attacker, so systems without the module loaded or with restricted node permissions are not practically vulnerable.

Impact

The signals are internally consistent but point to a real-yet-narrow risk. The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, base 7.8 HIGH) correctly reflects a local, low-privilege, low-complexity flaw with high impact - appropriate for a kernel OOB memory bug. Against this, EPSS is very low (0.03%, 10th percentile), the CVE is NOT in CISA KEV, and no POC is referenced, so there is no evidence of active or imminent widespread exploitation. The key mitigating reality - not captured by CVSS - is that exploitation requires access to the pci_endpoint_test device node, which is only present on systems that build and load this niche driver (largely PCI-endpoint development and embedded/test platforms), not on typical production servers or desktops. Bottom line: legitimately a High-severity local memory-corruption bug worth patching in normal cycles, but low real-world urgency for most fleets given the local-only vector and rare attack surface. No conflicting data was found; the CVSS vector and description agree on local access.

Exploit ScenarioDerived

A local user with permission to open the pci-endpoint-test character device issues an ioctl call supplying a negative BAR number; the driver passes this straight into pci_endpoint_test_bar(), indexing before the BAR array and triggering an out-of-bounds kernel memory access. In the simplest case this crashes the kernel (denial of service), and depending on adjacent memory layout it may be leveraged toward information disclosure or privilege escalation. No public exploit is identified at time of analysis, and the local, low-complexity vector (AV:L/AC:L) means the primary barrier is obtaining access to the device node.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – Jul 30, 2026

Local privilege escalation and memory corruption in the Linux kernel's pci_endpoint_test misc driver stems from an array underflow reachable through the driver's ioctl handler. A regression from commit eefb83790a0d (which added the doorbell test case and introduced NO_BAR = -1 into the pci_barno enum, silently converting it to a signed type) lets a user passing a negative BAR number in pci_endpoint_test_ioctl() drive pci_endpoint_test_bar() to index before the start of the BAR array. There is no public exploit identified at time of analysis and EPSS rates near-term mass exploitation at 0.03%, but the flaw affects the ubiquitous Linux kernel wherever the pci-endpoint-test device node is exposed.

Earlier versions of this analysis (2)
v2 Jul 30, 2026 - 09:15 cvss changed CVSS 7.8

Local memory corruption in the Linux kernel's pci_endpoint_test misc driver allows a low-privileged user with access to the driver's ioctl interface to trigger an array underflow in pci_endpoint_test_bar(). The flaw was introduced when commit eefb83790a0d added the NO_BAR (-1) value to the pci_barno enum, converting it to a signed type, so a negative BAR index supplied via pci_endpoint_test_ioctl() indexes before the start of the BAR array. EPSS is very low (0.03%, 10th percentile) and there is no public exploit identified at time of analysis; the fix has already been merged upstream in the stable kernel tree.

v1 Mar 28, 2026 - 19:21

In the Linux kernel, the following vulnerability has been resolved: misc: pci_endpoint_test: Fix array underflow in pci_endpoint_test_ioctl() Commit eefb83790a0d ("misc: pci_endpoint_test: Add. No vendor patch available.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - apply the stable-tree commits that add lower-bound validation on the user-supplied BAR index in pci_endpoint_test_ioctl()/pci_endpoint_test_bar() (git.kernel.org/stable/c/1ad82f9db13d85667366044acdfb02009d576c5a and git.kernel.org/stable/c/6df3687922570f753574c40b35e83b26b32292d0), or update to a distribution kernel that has backported them. Until a patched kernel is deployed, the most effective compensating control is to prevent the driver from being loaded on production systems that do not need PCI endpoint testing - blacklist the pci_endpoint_test module (e.g. via modprobe blacklist) and confirm no /dev/pci-endpoint-test.N nodes are present; the trade-off is loss of PCI EP test functionality, which is irrelevant on normal production hosts. Where the module must remain, restrict access to its device node to trusted administrators via strict file permissions/udev rules, accepting that this only narrows, not eliminates, the local attack surface. Cross-reference the VulDB advisory (https://vuldb.com/vuln/332123) for tracking.

Affected ProductsAI

The vulnerability affects the Linux kernel, specifically the drivers/misc/pci_endpoint_test.c driver, on versions that include commit eefb83790a0d ("misc: pci_endpoint_test: Add doorbell test case") which introduced the NO_BAR (-1) sentinel and the signed-enum regression. No CPE strings were provided in the input, so exact version ranges are not enumerated in NVD data available here; the fix is tracked upstream via the stable kernel git tree (git.kernel.org commits 1ad82f9db13d85667366044acdfb02009d576c5a and 6df3687922570f753574c40b35e83b26b32292d0). A third-party advisory is available at VulDB (https://vuldb.com/vuln/332123). Only kernels that actually build and load the pci_endpoint_test module and expose its device node are practically exposed.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is drivers/misc/pci_endpoint_test.c, a Linux misc-device driver used to exercise and validate PCI Endpoint (EP) controller functionality, typically via the /dev/pci-endpoint-test.N character device and its ioctl interface. The root cause is an unbounded/underflowed array index: pci_barno was an enumeration intended to index the six PCI Base Address Registers (BAR0-BAR5), but adding the sentinel NO_BAR = -1 changed the enum's underlying type from unsigned to signed. Because pci_endpoint_test_ioctl() takes a BAR number from userspace and passes it to pci_endpoint_test_bar() without a lower-bound check, a negative value indexes memory before the bar[] array - a classic out-of-bounds access (CWE-124 buffer underwrite / CWE-129 improper validation of array index), even though the input lists CWE as N/A. Depending on how the underflowed pointer is dereferenced, this yields out-of-bounds read/write against kernel memory adjacent to the device structure.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

Local device-node access with a low-privileged account (AV:L/PR:L), trivially triggered negative index (AC:L), yielding kernel OOB memory corruption with high confidentiality, integrity and availability impact.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 6.1 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Analysis Updated
Jul 30, 2026 - 09:17 vuln.today
v3 - CVSS changed
Analysis Updated
Jul 30, 2026 - 09:15 vuln.today
v2 - CVSS changed
CVSS changed
Jul 30, 2026 - 06:37 NVD
7.8 (HIGH)
CVE Published
Nov 12, 2025 - 11:15 nvd
N/A

DescriptionCVE.org

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

misc: pci_endpoint_test: Fix array underflow in pci_endpoint_test_ioctl()

Commit eefb83790a0d ("misc: pci_endpoint_test: Add doorbell test case") added NO_BAR (-1) to the pci_barno enum which, in practical terms, changes the enum from an unsigned int to a signed int. If the user passes a negative number in pci_endpoint_test_ioctl() then it results in an array underflow in pci_endpoint_test_bar().

Executive ViewAI

Why It Matters

A high-severity vulnerability in the Linux kernel's pci_endpoint_test driver (CVSS 7.8) allows unprivileged local users to escalate privileges and corrupt kernel memory. Organizations with exposed pci-endpoint-test device nodes face immediate risk to system integrity and confidentiality. The absence of vendor patches requires defensive mitigations focused on access control and module disablement.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable the pci_endpoint_test kernel module via blacklist configuration if not required for legitimate endpoint testing operations; (2) Restrict filesystem permissions on /dev/pci-endpoint-test to 0600 or stricter ACLs, limiting access to designated administrators only; (3) Ensure kernel address space layout randomization (ASLR) and control-flow integrity mechanisms are enabled to reduce memory corruption impact.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Prevalence
Ubiquitous
Linux kernel is ubiquitous, though the vulnerable pci_endpoint_test module is rarely loaded
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 16.0 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy