CVE Catalog

CVE-2025-40117

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.14%

4th percentile - higher than 4% of all known CVEs

Summary

In the pci_endpoint_test driver of the Linux kernel, adding NO_BAR (-1) to the pci_barno enum changed it from unsigned to signed int, allowing a user to pass a negative value in ioctl, leading to an array underflow in pci_endpoint_test_bar().

Risk Assessment

An attacker can trigger an array underflow, leading to out-of-bounds memory read or write, potentially causing system crashes or privilege escalation.

Recommendation

Update the Linux kernel to a version containing the fix that properly validates ioctl arguments.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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

Vulnerability data from NVD (NIST) · CISA KEV · EPSS