CVE-2025-40117
JSON

7.8high

misc: pci_endpoint_test: Fix array underflow in pci_endpoint_test_ioctl()

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.15% (higher than 4% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Affected

Product or packageVersionsReported by
Linux Linuxfrom eefb83790a0dda112d1755e4f5e213738d717e76 before 6df3687922570f753574c40b35e83b26b32292d0, from eefb83790a0dda112d1755e4f5e213738d717e76 before 1ad82f9db13d85667366044acdfb02009d576c5a, 6.17
Not affected: before 6.17, from 6.17.3 up to 6.17.*, from 6.18 up to *
CVE List

What each source says

CVE List

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

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: misc: pci_endpoint_test: Corrección de subdesbordamiento de array en pci_endpoint_test_ioctl() El commit eefb83790a0d (“misc: pci_endpoint_test: Add doorbell test case”) añadió NO_BAR (-1) al enum pci_barno, lo que, en términos prácticos, cambia el enum de un entero sin signo a un entero con signo. Si el usuario pasa un número negativo en pci_endpoint_test_ioctl(), entonces provoca un subdesbordamiento de array en pci_endpoint_test_bar().

References

Sources

SourceRecordLicence
CVE ListCVE-2025-40117 changed 2026-08-05CVE Terms of Use
NVDCVE-2025-40117 changed 2026-10-19Public domain