# CVE-2026-98911: dpaa2-switch: fix the error path in dpaa2_switch_rx()

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 21% of CVEs (2026-11-30)
- Published: 2026-10-23T11:54:57.029Z
- Modified: 2026-10-26T07:17:16.467Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 613c0a5810b79610db8535c3816b0c149675f8ee before 791068c962469af0090e1a1ee63657fb9eef40db; from 613c0a5810b79610db8535c3816b0c149675f8ee before ee54f8d7e642c44cfcc2dcb390b4c50e145d81b8; from 613c0a5810b79610db8535c3816b0c149675f8ee before 259ad6093204b999d41e7e6d0ad90ef9a71a44ab; from 613c0a5810b79610db8535c3816b0c149675f8ee before f4ceb8e3d6d5becb4cda7a7098a8638e18c835a1; from 613c0a5810b79610db8535c3816b0c149675f8ee before fa232b4496cb59503ae5108c756cbe10e59b0bc3; from 613c0a5810b79610db8535c3816b0c149675f8ee before 74c1c9f5c0c30bbd0c2cf87b6e3507e7ea46c13d; 5.13 (not affected: before 5.13; from 5.15.222 up to 5.15.*; from 6.1.189 up to 6.1.*; from 6.6.158 up to 6.6.*; from 6.12.111 up to 6.12.*; from 6.18.53 up to 6.18.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/791068c962469af0090e1a1ee63657fb9eef40db>
- <https://git.kernel.org/stable/c/ee54f8d7e642c44cfcc2dcb390b4c50e145d81b8>
- <https://git.kernel.org/stable/c/259ad6093204b999d41e7e6d0ad90ef9a71a44ab>
- <https://git.kernel.org/stable/c/f4ceb8e3d6d5becb4cda7a7098a8638e18c835a1>
- <https://git.kernel.org/stable/c/fa232b4496cb59503ae5108c756cbe10e59b0bc3>
- <https://git.kernel.org/stable/c/74c1c9f5c0c30bbd0c2cf87b6e3507e7ea46c13d>

## Sources

- CVE List: [CVE-2026-98911](https://www.cve.org/CVERecord?id=CVE-2026-98911), CVE Terms of Use, modified 2026-10-26
- NVD: [CVE-2026-98911](https://nvd.nist.gov/vuln/detail/CVE-2026-98911), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-98911 · Whole record: https://cve.day/CVE-2026-98911.json · Rebuilt by cve.day 2026-11-25T22:59:46.893Z
