CVE-2025-40117

published 12 Nov 2025 · updated 5 Aug 2026

misc: pci_endpoint_test: Fix array underflow in pci_endpoint_test_ioctl()

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 1ad82f9db13d85667366044acdfb02009d576c5a and Kernel 6df3687922570f753574c40b35e83b26b32292d0.

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

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.17, >=eefb83790a0dda112d1755e4f5e213738d717e76 <1ad82f9db13d85667366044acdfb02009d576c5a, >=eefb83790a0dda112d1755e4f5e213738d717e76 <6df3687922570f753574c40b35e83b26b32292d01ad82f9db13d85667366044acdfb02009d576c5a, 6df3687922570f753574c40b35e83b26b32292d0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-40117 severity on Zeptric[![CVE-2025-40117](https://zeptric.io/badge/cve/CVE-2025-40117.svg)](https://zeptric.io/cve/CVE-2025-40117)