{"id":"CVE-2025-40117","aliases":["CVE-2025-40117"],"related":[],"kind":"vulnerability","state":"published","title":"misc: pci_endpoint_test: Fix array underflow in pci_endpoint_test_ioctl()","summary":"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().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nmisc: pci_endpoint_test: Corrección de subdesbordamiento de array en pci_endpoint_test_ioctl()\n\nEl 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().","source":"nvd"}],"published":"2025-11-12T10:23:17.851Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"eefb83790a0dda112d1755e4f5e213738d717e76","fixed":"6df3687922570f753574c40b35e83b26b32292d0","status":"affected"},{"type":"git","introduced":"eefb83790a0dda112d1755e4f5e213738d717e76","fixed":"1ad82f9db13d85667366044acdfb02009d576c5a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.17","status":"unaffected"},{"type":"semver","introduced":"6.17.3","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/6df3687922570f753574c40b35e83b26b32292d0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1ad82f9db13d85667366044acdfb02009d576c5a","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40117","url":"https://www.cve.org/CVERecord?id=CVE-2025-40117","licence":"CVE Terms of Use","modified":"2026-08-05T12:07:53.958Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40117","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40117","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:07.541Z","epss":{"score":0.00153,"percentile":0.04689,"date":"2026-12-01T12:00:22.000Z"}}