{"id":"CVE-2025-40117","summary":"misc: pci_endpoint_test: Fix array underflow in pci_endpoint_test_ioctl()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: pci_endpoint_test: Fix array underflow in pci_endpoint_test_ioctl()\n\nCommit eefb83790a0d (\"misc: pci_endpoint_test: Add doorbell test case\")\nadded NO_BAR (-1) to the pci_barno enum which, in practical terms,\nchanges the enum from an unsigned int to a signed int.  If the user\npasses a negative number in pci_endpoint_test_ioctl() then it results in\nan array underflow in pci_endpoint_test_bar().","modified":"2026-04-02T12:48:17.345755Z","published":"2025-11-12T10:23:17.851Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40117.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1ad82f9db13d85667366044acdfb02009d576c5a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6df3687922570f753574c40b35e83b26b32292d0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40117.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40117"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"eefb83790a0dda112d1755e4f5e213738d717e76"},{"fixed":"6df3687922570f753574c40b35e83b26b32292d0"},{"fixed":"1ad82f9db13d85667366044acdfb02009d576c5a"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40117.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.17.0"},{"fixed":"6.17.3"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40117.json"}}],"schema_version":"1.7.5"}