CVE-2025-40117: Linux kernel · misc: pci_endpoint_test: Fix array underflow in pci_endpoint_test_ioctl()
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 7.8 High · fixed in 6.17.0-1011.11 : patch Linux kernel soon.
Data as of 26 Oct 2026, 12:29 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 4% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 6.17.0-1011.11, 6.17.0-1008.8~24.04.1, 6.17.0-1008.8 +1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 12 Nov 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade Linux kernel to 6.17.0-1011.11, 6.17.0-1008.8~24.04.1, 6.17.0-1008.8 or 6.17.0-1007.7~24.04.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| linux-hwe-edge | Affected
| Fixed in
|
AI-suggested
A fix has been implemented in the Linux kernel source to address this vulnerability. Users should apply the official kernel updates that include this patch. Since this is not a cloud service, remediation depends on deploying the fixed kernel version. Patch status is not explicitly confirmed in the provided data; check the vendor advisory or kernel mailing lists for the exact fixed version and update accordingly.
Description
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().
References
- nvd.nist.gov/vuln/detail/CVE-2025-40117 (opens in a new tab)
- git.kernel.org/stable/c/1ad82f9db13d85667366044acdfb02009d576c5a (opens in a new tab)
- git.kernel.org/stable/c/6df3687922570f753574c40b35e83b26b32292d0 (opens in a new tab)
- ubuntu.com/security/CVE-2025-40117 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-40117 (opens in a new tab)
- git.kernel.org/linus/1ad82f9db13d85667366044acdfb02009d576c5a (opens in a new tab)
- ubuntu.com/security/notices/USN-8029-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8030-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8029-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-8048-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8029-3 (opens in a new tab)