CVE-2022-49452
published high CVSS 3.1 · 7.5dpaa2-eth: retrieve the virtual address before dma_unmap
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux3dc709e0cd47c602a8d1a6747f1a91e9737eeed3 to < ba5fe3dd4833bbc03609c5c0c2dd2cea5fa5addf · 3dc709e0cd47c602a8d1a6747f1a91e9737eeed3 to < 06d129946a71f3159b3b40ee95549183edf2c79d · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.18 (affected) · 0 to < 5.18 (unaffected · semver) · 5.18.3 through 5.18.* (unaffected · semver) · 5.19 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: dpaa2-eth: retrieve the virtual address before dma_unmap The TSO header was DMA unmapped before the virtual address was retrieved and then used to free the buffer. This meant that we were actually removing the DMA map and then trying to search for it to help in retrieving the virtual address. This lead to a invalid virtual address being used in the kfree call. Fix this by calling dpaa2_iova_to_virt() prior to the dma_unmap call. [ 487.231819] Unable to handle kernel paging request at virtual address fffffd9807000008 (...) [ 487.354061] Hardware name: SolidRun LX2160A Honeycomb (DT) [ 487.359535] pstate: a0400005 (NzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 487.366485] pc : kfree+0xac/0x304 [ 487.369799] lr : kfree+0x204/0x304 [ 487.373191] sp : ffff80000c4eb120 [ 487.376493] x29: ffff80000c4eb120 x28: ffff662240c46400 x27: 0000000000000001 [ 487.383621] x26: 0000000000000001 x25: ffff662246da0cc0 x24: ffff66224af78000 [ 487.390748] x23: ffffad184f4ce008 x22: ffffad1850185000 x21: ffffad1838d13cec [ 487.397874] x20: ffff6601c0000000 x19: fffffd9807000000 x18: 0000000000000000 [ 487.405000] x17: ffffb910cdc49000 x16: ffffad184d7d9080 x15: 0000000000004000 [ 487.412126] x14: 0000000000000008 x13: 000000000000ffff x12: 0000000000000000 [ 487.419252] x11: 0000000000000004 x10: 0000000000000001 x9 : ffffad184d7d927c [ 487.426379] x8 : 0000000000000000 x7 : 0000000ffffffd1d x6 : ffff662240a94900 [ 487.433505] x5 : 0000000000000003 x4 : 0000000000000009 x3 : ffffad184f4ce008 [ 487.440632] x2 : ffff662243eec000 x1 : 0000000100000100 x0 : fffffc0000000000 [ 487.447758] Call trace: [ 487.450194] kfree+0xac/0x304 [ 487.453151] dpaa2_eth_free_tx_fd.isra.0+0x33c/0x3e0 [fsl_dpaa2_eth] [ 487.459507] dpaa2_eth_tx_conf+0x100/0x2e0 [fsl_dpaa2_eth] [ 487.464989] dpaa2_eth_poll+0xdc/0x380 [fsl_dpaa2_eth]
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Scenarios
- en: AV:N - On DPAA2-based routers/gateways (NXP Layerscape appliances), remote TCP traffic that is GRO-coalesced and forwarded egresses as GSO skbs into dpaa2_eth_tx → dpaa2_eth_build_gso_fd → dpaa2_eth_tx_conf → dpaa2_eth_free_tx_fd, so an unauthenticated network peer reaches the buggy free path without a local login. AC:L - Any GSO/TSO transmit with software TSO enabled (default NETIF_F_TSO) deterministically hits the SW_TSO branch that unmaps then looks up the TSO header; IOMMU use is common on LX2160A (as in the reported panic), not a rare attacker-uncontrollable condition. PR:N - In the highest-impact forwarding deployment the attacker only sends unauthenticated packets on the wire; no host credentials or capabilities are required once IP forwarding and the dpaa2 interface are operational. UI:N - Packet receive, GRO, forward, driver TSO, and NAPI TX confirmation run automatically in softirq with no separate victim action such as mounting a device or opening a file. S:U - Impact is a host-kernel oops/panic inside the same OS authority as the dpaa2 driver; the bad IOMMU lookup does not bypass IOMMU isolation or cross a VM/sandbox boundary. C:N - After dma_unmap, iommu_iova_to_phys yields an unmapped/garbage address and kfree faults with a level-2 translation fault (observed pointers outside the live heap); there is no UAF reclaim or OOB read disclosure primitive. I:N - The invalid kfree aborts on an unmapped linear-map address before slab freelist corruption or control of a live object, so there is no exploitable write or control-flow hijack primitive—only the crash. A:H - kfree of the invalid post-unmap virtual address oopses and escalates to "Kernel panic - not syncing: Oops: Fatal exception in interrupt," fully taking down the system and re-triggerable by further TSO traffic.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 3dc709e0cd47c602a8d1a6747f1a91e9737eeed3 to < ba5fe3dd4833bbc03609c5c0c2dd2cea5fa5addf (affected · git)3dc709e0cd47c602a8d1a6747f1a91e9737eeed3 to < 06d129946a71f3159b3b40ee95549183edf2c79d (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.18 (affected)0 to < 5.18 (unaffected · semver)5.18.3 through 5.18.* (unaffected · semver)5.19 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
dpaa2-eth: retrieve the virtual address before dma_unmap
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ca1c95e24df0cf96761a68df96258109d2bb978c9af59fbbde475e793dc42834
- Ingested
- 23 Sep 2026, 08:04:12 UTC
- Source record
- Official CVE record