Bug 2414502 (CVE-2025-40117) - CVE-2025-40117 kernel: misc: pci_endpoint_test: Fix array underflow in pci_endpoint_test_ioctl()
Summary: CVE-2025-40117 kernel: misc: pci_endpoint_test: Fix array underflow in pci_en...
Keywords:
Status: NEW
Alias: CVE-2025-40117
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-11-12 11:03 UTC by OSIDB Bzimport
Modified: 2025-11-13 14:14 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-11-12 11:03:57 UTC
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().


Note You need to log in before you can comment on or make changes to this bug.