dpaa2-switch: fix the error path in dpaa2_switch_rx() (Linux Linux)

CVE-2026-98911
HIGH 7.5

At a glance

Source
NVD
EPSS
EPSS 0.32 % · percentile 27 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
Affected products
Linux · Linux
NVD status
Received

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.

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.5CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.5CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected products

ProductAffected versions
Linux · Linux
affected : ≥ 613c0a5810b79610db8535c3816b0c149675f8ee < 791068c962469af0090e1a1ee63657fb9eef40db
affected : ≥ 613c0a5810b79610db8535c3816b0c149675f8ee < ee54f8d7e642c44cfcc2dcb390b4c50e145d81b8
affected : ≥ 613c0a5810b79610db8535c3816b0c149675f8ee < 259ad6093204b999d41e7e6d0ad90ef9a71a44ab
affected : ≥ 613c0a5810b79610db8535c3816b0c149675f8ee < f4ceb8e3d6d5becb4cda7a7098a8638e18c835a1
affected : ≥ 613c0a5810b79610db8535c3816b0c149675f8ee < fa232b4496cb59503ae5108c756cbe10e59b0bc3
affected : ≥ 613c0a5810b79610db8535c3816b0c149675f8ee < 74c1c9f5c0c30bbd0c2cf87b6e3507e7ea46c13d
Other versions : unaffected
Linux · Linux
affected : 5.13
unaffected : ≥ 0 < 5.13
unaffected : ≥ 5.15.222 ≤ 5.15.*
unaffected : ≥ 6.1.189 ≤ 6.1.*
unaffected : ≥ 6.6.158 ≤ 6.6.*
unaffected : ≥ 6.12.111 ≤ 6.12.*
unaffected : ≥ 6.18.53 ≤ 6.18.*
unaffected : ≥ 7.2 ≤ *
Other versions : affected

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD