PoC Monitor
← All CVEs
CVE-2025-40117published 12 Nov 2025 10:23 UTCData: JSON · API

Linux

misc: pci_endpoint_test: Fix array underflow in pci_endpoint_test_ioctl()

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

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.8high · scored by CNA
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

Linux Linux
  • >= eefb83790a0dda112d1755e4f5e213738d717e76, < 6df3687922570f753574c40b35e83b26b32292d0
  • >= eefb83790a0dda112d1755e4f5e213738d717e76, < 1ad82f9db13d85667366044acdfb02009d576c5a

Fixed in 6df3687922570f753574c40b35e83b26b32292d0, 1ad82f9db13d85667366044acdfb02009d576c5a

Linux Linux
  • 6.17

Fixed in 0, 6.17.3, 6.18

Mitigation

Upgrade Linux to 6df3687922570f753574c40b35e83b26b32292d0 or 1ad82f9db13d85667366044acdfb02009d576c5a or later.

Upgrade Linux to 0 or 6.17.3 or 6.18 or later.

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published12 Nov 2025 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.