HIGH Introduced in 5.13
dpaa2-switch RxErrorPath UAF
CVE-2026-98911
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
KernelScan AI9.8CRITICAL
01Description
In the Linux kernel, the following vulnerability has been resolved: dpaa2-switch: fix the error path in dpaa2_switch_rx() In case of an error in dpaa2_switch_rx(), the dpaa2_switch_free_fd() function is called in order to free the FD. This is incorrect since the dpaa2_switch_free_fd() is intended to be used on Tx frame descriptors, meaning that it expects in the software annotation area of the FD data to find a valid skb pointer on which to call dev_kfree_skb(). Fix this by extracting the dma_unmap_page() from dpaa2_switch_build_linear_skb() directly into the dpaa2_switch_rx() function. This allows us to directly use free_pages() in case of an error before an SKB was created and kfree_skb() afterwards.
02KernelScan AI Analysis
Risk summary
The DPAA2 switch driver incorrectly uses a Tx-oriented free function in the Rx error path, causing an invalid free of an uninitialized pointer when processing malformed or unexpected frames. An attacker on the same network segment can trigger this by sending crafted packets, leading to kernel memory corruption, potential privilege escalation, and denial of service.
Vulnerability analysis
In the DPAA2 switch receive path, error handling incorrectly calls dpaa2_switch_free_fd() — a function designed for transmit descriptors that expects a valid skb pointer in the frame descriptor's software annotation area. For receive frames that have not yet been converted to an skb, this area contains no valid pointer, so the free operation corrupts kernel memory. The fix moves DMA unmapping into the receive function itself, allowing the error path to call free_pages() before an skb exists and kfree_skb() afterward, matching the actual allocation state. The vulnerability is reachable by any attacker who can transmit frames to a DPAA2 switch port, requiring no privileges or user interaction.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.15 | 5.13 | 5.15.222 | 791068c96246 |
| 6.1 | 5.13 | 6.1.189 | ee54f8d7e642 |
| 6.12 | 5.13 | 6.12.111 | f4ceb8e3d6d5 |
| 6.18 | 5.13 | 6.18.53 | fa232b4496cb |
| 6.6 | 5.13 | 6.6.158 | 259ad6093204 |
| mainline | 5.13 | 7.2 | 74c1c9f5c0c3 |
| cip/6.1 | 5.13 | 6.1.189-cip61 | ee54f8d7e642 |
| cip/6.1-rt | 5.13 | 6.1.189-cip61-rt32 | ee54f8d7e642 |
| cip/6.12 | 5.13 | 6.12.111-cip32 | f4ceb8e3d6d5 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.111-cip32 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |