Linux hwe edge: In the Linux kernel, the following vulnerability has been resolved: misc: pci_endpoint_test: Fix array underflow in pci_endpoint_test_ioctl() Commit… (CVE-2025-40117)
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().
AI Analysis
Technical Summary
The Linux kernel's pci_endpoint_test_ioctl() function contained a vulnerability where passing a negative number, specifically the NO_BAR value (-1) added to the pci_barno enum, caused an array underflow in pci_endpoint_test_bar(). This was due to the enum changing from unsigned to signed, allowing negative indices to access memory before the array bounds. The vulnerability has been fixed by correcting this logic in the kernel code.
Potential Impact
Successful exploitation of this vulnerability could lead to memory corruption resulting in high impact on confidentiality, integrity, and availability of the affected system. The CVSS vector indicates local attack vector with low complexity and low privileges required, no user interaction, and high impact on all security properties (C, I, A).
Mitigation Recommendations
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.
Linux hwe edge: In the Linux kernel, the following vulnerability has been resolved: misc: pci_endpoint_test: Fix array underflow in pci_endpoint_test_ioctl() Commit… (CVE-2025-40117)
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().
CVSS v3.1
Score 7.8high
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's pci_endpoint_test_ioctl() function contained a vulnerability where passing a negative number, specifically the NO_BAR value (-1) added to the pci_barno enum, caused an array underflow in pci_endpoint_test_bar(). This was due to the enum changing from unsigned to signed, allowing negative indices to access memory before the array bounds. The vulnerability has been fixed by correcting this logic in the kernel code.
Potential Impact
Successful exploitation of this vulnerability could lead to memory corruption resulting in high impact on confidentiality, integrity, and availability of the affected system. The CVSS vector indicates local attack vector with low complexity and low privileges required, no user interaction, and high impact on all security properties (C, I, A).
Mitigation Recommendations
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.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-5623-gpcg-4jj7
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-40117"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a6b72d69c2644c7f847abfb
Added to database: 07/30/2026, 15:50:46 UTC
Last enriched: 07/30/2026, 16:38:42 UTC
Last updated: 09/10/2026, 19:24:56 UTC
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.