KernelScan.io

HIGH Introduced in 5.13

dpaa2-switch RxErrorPath UAF

CVE-2026-98911

CVSS 7.5 / 10.0 NVD

CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

KernelScan AI9.8CRITICAL

01

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.

02

Engine v0.9.0

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.

Affecteddrivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c (dpaa2-switch driver)

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.

03

BranchIntroducedFixed inPatch commit
5.155.135.15.222791068c96246
6.15.136.1.189ee54f8d7e642
6.125.136.12.111f4ceb8e3d6d5
6.185.136.18.53fa232b4496cb
6.65.136.6.158259ad6093204
mainline5.137.274c1c9f5c0c3
cip/6.15.136.1.189-cip61ee54f8d7e642
cip/6.1-rt5.136.1.189-cip61-rt32ee54f8d7e642
cip/6.125.136.12.111-cip32f4ceb8e3d6d5

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.111-cip32
cip/6.1Fixed in 6.1.189-cip61
cip/6.1-rtFixed in 6.1.189-cip61-rt32