net: xilinx: axienet: Add error handling for RX metadata pointer retrieval
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.12.466.16.66.17In the Linux kernel, the following vulnerability has been resolved:
net: xilinx: axienet: Add error handling for RX metadata pointer retrieval
Add proper error checking for dmaengine_desc_get_metadata_ptr() which can return an error pointer and lead to potential crashes or undefined behaviour if the pointer retrieval fails.
Properly handle the error by unmapping DMA buffer, freeing the skb and returning early to prevent further processing with invalid data.
From the CVE record · Linux
The Linux kernel's xilinx axienet driver did not check whether RX metadata pointer retrieval failed. Using the resulting error pointer could cause a crash or undefined behavior. The input does not specify attacker access requirements or whether user interaction is needed.
Engineers running Linux kernels with the xilinx axienet driver should check their versions; affected versions are not specified.