Skip to main content
EPSS 0.1%top 96%

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)

0
Low
Published: 11/12/2025 (11/12/2025, 11:15:00 UTC)
Source: GCVE Database
Product: linux-hwe-edge

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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected software

Affected versions
<6.17.0-1007.7~24.04.1<6.17.0-1008.8~24.04.1<6.17.0-1008.8<6.17.0-1011.11

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/30/2026, 16:38:42 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses