Linux Kernel PCI Endpoint NULL Pointer Dereference Vulnerability in DMA Channel Handling

Vulnerability

A vulnerability in the Linux kernel's PCI endpoint function can lead to a NULL pointer dereference, causing a kernel panic. This issue arises in the 'pci-epf-test' function, where the DMA channel fields 'dma_chan_tx' and 'dma_chan_rx' can be NULL even after initialization. The vulnerability affects the Linux kernel stable tree.

Impact

The vulnerability can cause a NULL pointer dereference, leading to a kernel panic, which disrupts system operations and can cause a denial of service.

Reproduction

The vulnerability can be reproduced by initializing a PCI endpoint function that supports DMA, without properly checking the DMA channel fields before releasing them. This can be done by creating a PCI endpoint function with NULL DMA channel fields, and then triggering the cleanup process that releases the DMA channels.

Remediation

Users can upgrade to the latest version of the Linux kernel stable tree, where this vulnerability has been addressed. Instructions for downloading the patched version are available in the Linux kernel Git repository.

Added: Oct 28, 2025, 1:33 PM
Updated: Oct 28, 2025, 1:33 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
7.7
relevance
0.9
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.