# CVE-2022-50679: i40e: Fix DMA mappings leak

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-12-09T01:29:32.925Z
- **Modified:** 2026-11-10T12:10:00.177Z

## Who should check

- Anyone running Linux \>= be1222b585fdc410b8c1dbcc57dd03a00f04eff5, \< ed5baf3d0a33caaca4cd4073ebb0854cc77a616d; \>= be1222b585fdc410b8c1dbcc57dd03a00f04eff5, \< 94a171c982b8a8137a00721c1e62bc2713435bca; \>= be1222b585fdc410b8c1dbcc57dd03a00f04eff5, \< 5f499596dfa3db9b3172645b6de9e1096a669c95; \>= be1222b585fdc410b8c1dbcc57dd03a00f04eff5, \< aae425efdfd1b1d8452260a3cb49344ebf20b1f5
- Anyone running Linux 5.8

## Description

In the Linux kernel, the following vulnerability has been resolved:

i40e: Fix DMA mappings leak

During reallocation of RX buffers, new DMA mappings are created for
those buffers.

steps for reproduction:
while :
do
for ((i=0; i\<=8160; i=i+32))
do
ethtool -G enp130s0f0 rx $i tx $i
sleep 0.5
ethtool -g enp130s0f0
done
done

This resulted in crash:
i40e 0000:01:00.1: Unable to allocate memory for the Rx descriptor ring, size=65536
Driver BUG
WARNING: CPU: 0 PID: 4300 at net/core/xdp.c:141 xdp\_rxq\_info\_unreg+0x43/0x50
Call Trace:
i40e\_free\_rx\_resources+0x70/0x80 \[i40e\]
i40e\_set\_ringparam+0x27c/0x800 \[i40e\]
ethnl\_set\_rings+0x1b2/0x290
genl\_family\_rcv\_msg\_doit.isra.15+0x10f/0x150
genl\_family\_rcv\_msg+0xb3/0x160
? rings\_fill\_reply+0x1a0/0x1a0
genl\_rcv\_msg+0x47/0x90
? genl\_family\_rcv\_msg+0x160/0x160
netlink\_rcv\_skb+0x4c/0x120
genl\_rcv+0x24/0x40
netlink\_unicast+0x196/0x230
netlink\_sendmsg+0x204/0x3d0
sock\_sendmsg+0x4c/0x50
\_\_sys\_sendto+0xee/0x160
? handle\_mm\_fault+0xbe/0x1e0
? syscall\_trace\_enter+0x1d3/0x2c0
\_\_x64\_sys\_sendto+0x24/0x30
do\_syscall\_64+0x5b/0x1a0
entry\_SYSCALL\_64\_after\_hwframe+0x65/0xca
RIP: 0033:0x7f5eac8b035b
Missing register, driver bug
WARNING: CPU: 0 PID: 4300 at net/core/xdp.c:119 xdp\_rxq\_info\_unreg\_mem\_model+0x69/0x140
Call Trace:
xdp\_rxq\_info\_unreg+0x1e/0x50
i40e\_free\_rx\_resources+0x70/0x80 \[i40e\]
i40e\_set\_ringparam+0x27c/0x800 \[i40e\]
ethnl\_set\_rings+0x1b2/0x290
genl\_family\_rcv\_msg\_doit.isra.15+0x10f/0x150
genl\_family\_rcv\_msg+0xb3/0x160
? rings\_fill\_reply+0x1a0/0x1a0
genl\_rcv\_msg+0x47/0x90
? genl\_family\_rcv\_msg+0x160/0x160
netlink\_rcv\_skb+0x4c/0x120
genl\_rcv+0x24/0x40
netlink\_unicast+0x196/0x230
netlink\_sendmsg+0x204/0x3d0
sock\_sendmsg+0x4c/0x50
\_\_sys\_sendto+0xee/0x160
? handle\_mm\_fault+0xbe/0x1e0
? syscall\_trace\_enter+0x1d3/0x2c0
\_\_x64\_sys\_sendto+0x24/0x30
do\_syscall\_64+0x5b/0x1a0
entry\_SYSCALL\_64\_after\_hwframe+0x65/0xca
RIP: 0033:0x7f5eac8b035b

This was caused because of new buffers with different RX ring count should
substitute older ones, but those buffers were freed in
i40e\_configure\_rx\_ring and reallocated again with i40e\_alloc\_rx\_bi,
thus kfree on rx\_bi caused leak of already mapped DMA.

Fix this by reallocating ZC with rx\_bi\_zc struct when BPF program loads. Additionally
reallocate back to rx\_bi when BPF program unloads.

If BPF program is loaded/unloaded and XSK pools are created, reallocate
RX queues accordingly in XSP\_SETUP\_XSK\_POOL handler.

## Affected and fixed versions

- Linux: \>= be1222b585fdc410b8c1dbcc57dd03a00f04eff5, \< ed5baf3d0a33caaca4cd4073ebb0854cc77a616d; \>= be1222b585fdc410b8c1dbcc57dd03a00f04eff5, \< 94a171c982b8a8137a00721c1e62bc2713435bca; \>= be1222b585fdc410b8c1dbcc57dd03a00f04eff5, \< 5f499596dfa3db9b3172645b6de9e1096a669c95; \>= be1222b585fdc410b8c1dbcc57dd03a00f04eff5, \< aae425efdfd1b1d8452260a3cb49344ebf20b1f5 (cvelist)
- Linux: 5.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50679. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50679.md
Affected: Linux >= be1222b585fdc410b8c1dbcc57dd03a00f04eff5, < ed5baf3d0a33caaca4cd4073ebb0854cc77a616d; >= be1222b585fdc410b8c1dbcc57dd03a00f04eff5, < 94a171c982b8a8137a00721c1e62bc2713435bca; >= be1222b585fdc410b8c1dbcc57dd03a00f04eff5, < 5f499596dfa3db9b3172645b6de9e1096a669c95; >= be1222b585fdc410b8c1dbc…
Fixed in: Linux 94a171c982b8a8137a00721c1e62bc2713435bca, Linux 5f499596dfa3db9b3172645b6de9e1096a669c95

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50679 being exploited?

There is no confirmed exploitation: CVE-2022-50679 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50679?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50679?

Linux \>= be1222b585fdc410b8c1dbcc57dd03a00f04eff5, \< ed5baf3d0a33caaca4cd4073ebb0854cc77a616d; \>= be1222b585fdc410b8c1dbcc57dd03a00f04eff5, \< 94a171c982b8a8137a00721c1e62bc2713435bca; \>= be1222b585fdc410b8c1dbcc57dd03a00f04eff5, \< 5f499596dfa3db9b3172645b6de9e1096a669c95; \>= be1222b585fdc410b8c1dbcc57dd03a00f04eff5, \< aae425efdfd1b1d8452260a3cb49344ebf20b1f5; Linux 5.8.

### Is there a fix for CVE-2022-50679?

Yes. Fixed in Linux 94a171c982b8a8137a00721c1e62bc2713435bca, Linux 5f499596dfa3db9b3172645b6de9e1096a669c95. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50679?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/ed5baf3d0a33caaca4cd4073ebb0854cc77a616d>
- other: <https://git.kernel.org/stable/c/94a171c982b8a8137a00721c1e62bc2713435bca>
- other: <https://git.kernel.org/stable/c/5f499596dfa3db9b3172645b6de9e1096a669c95>
- other: <https://git.kernel.org/stable/c/aae425efdfd1b1d8452260a3cb49344ebf20b1f5>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50679>

HTML: <https://flawdb.com/CVE-2022-50679> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50679>
