# CVE-2022-49201: ibmvnic: fix race between xmit and reset

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.55% (percentile 39, 2026-11-26)
- **CWE:** CWE-362, CWE-476
- **Published:** 2025-02-26T01:55:43.263Z
- **Modified:** 2026-08-05T08:54:22.016Z

## Who should check

- Anyone running Linux \>= 7ed5b31f4a6695a21f617df07646e9b15c6c1d29, \< 1bd58abf595b6cf1ba6dd47ec887c4c009155fc9; \>= 7ed5b31f4a6695a21f617df07646e9b15c6c1d29, \< 475f9cce98b63bc145b4efa66fa51175d4cb345f; \>= 7ed5b31f4a6695a21f617df07646e9b15c6c1d29, \< 8507c6ade73cdbbbda5c3d31d67f52f2e1cf03fe; \>= 7ed5b31f4a6695a21f617df07646e9b15c6c1d29, \< 4219196d1f662cb10a462eb9e076633a3fc31a15
- Anyone running Linux 5.4

## Description

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

ibmvnic: fix race between xmit and reset

There is a race between reset and the transmit paths that can lead to
ibmvnic\_xmit() accessing an scrq after it has been freed in the reset
path. It can result in a crash like:

	Kernel attempted to read user page (0) - exploit attempt? (uid: 0)
	BUG: Kernel NULL pointer dereference on read at 0x00000000
	Faulting instruction address: 0xc0080000016189f8
	Oops: Kernel access of bad area, sig: 11 \[\#1\]
	...
	NIP \[c0080000016189f8\] ibmvnic\_xmit+0x60/0xb60 \[ibmvnic\]
	LR \[c000000000c0046c\] dev\_hard\_start\_xmit+0x11c/0x280
	Call Trace:
	\[c008000001618f08\] ibmvnic\_xmit+0x570/0xb60 \[ibmvnic\] (unreliable)
	\[c000000000c0046c\] dev\_hard\_start\_xmit+0x11c/0x280
	\[c000000000c9cfcc\] sch\_direct\_xmit+0xec/0x330
	\[c000000000bfe640\] \_\_dev\_xmit\_skb+0x3a0/0x9d0
	\[c000000000c00ad4\] \_\_dev\_queue\_xmit+0x394/0x730
	\[c008000002db813c\] \_\_bond\_start\_xmit+0x254/0x450 \[bonding\]
	\[c008000002db8378\] bond\_start\_xmit+0x40/0xc0 \[bonding\]
	\[c000000000c0046c\] dev\_hard\_start\_xmit+0x11c/0x280
	\[c000000000c00ca4\] \_\_dev\_queue\_xmit+0x564/0x730
	\[c000000000cf97e0\] neigh\_hh\_output+0xd0/0x180
	\[c000000000cfa69c\] ip\_finish\_output2+0x31c/0x5c0
	\[c000000000cfd244\] \_\_ip\_queue\_xmit+0x194/0x4f0
	\[c000000000d2a3c4\] \_\_tcp\_transmit\_skb+0x434/0x9b0
	\[c000000000d2d1e0\] \_\_tcp\_retransmit\_skb+0x1d0/0x6a0
	\[c000000000d2d984\] tcp\_retransmit\_skb+0x34/0x130
	\[c000000000d310e8\] tcp\_retransmit\_timer+0x388/0x6d0
	\[c000000000d315ec\] tcp\_write\_timer\_handler+0x1bc/0x330
	\[c000000000d317bc\] tcp\_write\_timer+0x5c/0x200
	\[c000000000243270\] call\_timer\_fn+0x50/0x1c0
	\[c000000000243704\] \_\_run\_timers.part.0+0x324/0x460
	\[c000000000243894\] run\_timer\_softirq+0x54/0xa0
	\[c000000000ea713c\] \_\_do\_softirq+0x15c/0x3e0
	\[c000000000166258\] \_\_irq\_exit\_rcu+0x158/0x190
	\[c000000000166420\] irq\_exit+0x20/0x40
	\[c00000000002853c\] timer\_interrupt+0x14c/0x2b0
	\[c000000000009a00\] decrementer\_common\_virt+0x210/0x220
	--- interrupt: 900 at plpar\_hcall\_norets\_notrace+0x18/0x2c

The immediate cause of the crash is the access of tx\_scrq in the following
snippet during a reset, where the tx\_scrq can be either NULL or an address
that will soon be invalid:

	ibmvnic\_xmit()
	{
		...
		tx\_scrq = adapter-\>tx\_scrq\[queue\_num\];
		txq = netdev\_get\_tx\_queue(netdev, queue\_num);
		ind\_bufp = &tx\_scrq-\>ind\_buf;

		if (test\_bit(0, &adapter-\>resetting)) {
		...
	}

But beyond that, the call to ibmvnic\_xmit() itself is not safe during a
reset and the reset path attempts to avoid this by stopping the queue in
ibmvnic\_cleanup(). However just after the queue was stopped, an in-flight
ibmvnic\_complete\_tx() could have restarted the queue even as the reset is
progressing.

Since the queue was restarted we could get a call to ibmvnic\_xmit() which
can then access the bad tx\_scrq (or other fields).

We cannot however simply have ibmvnic\_complete\_tx() check the -\>resetting
bit and skip starting the queue. This can race at the "back-end" of a good
reset which just restarted the queue but has not cleared the -\>resetting
bit yet. If we skip restarting the queue due to -\>resetting being true,
the queue would remain stopped indefinitely potentially leading to transmit
timeouts.

IOW -\>resetting is too broad for this purpose. Instead use a new flag
that indicates whether or not the queues are active. Only the open/
reset paths control when the queues are active. ibmvnic\_complete\_tx()
and others wake up the queue only if the queue is marked active.

So we will have:
	A. reset/open thread in ibmvnic\_cleanup() and \_\_ibmvnic\_open()

		-\>resetting = true
		-\>tx\_queues\_active = false
		disable tx queues
		...
		-\>tx\_queues\_active = true
		start tx queues

	B. Tx interrupt in ibmvnic\_complete\_tx():

		if (-\>tx\_queues\_active)
			netif\_wake\_subqueue();

To ensure that -\>tx\_queues\_active and state of the queues are consistent,
we need a lock which:

	- must also be taken in the interrupt path (ibmvnic\_complete\_tx())
	- shared across the multiple
---truncated---

## Affected and fixed versions

- Linux: \>= 7ed5b31f4a6695a21f617df07646e9b15c6c1d29, \< 1bd58abf595b6cf1ba6dd47ec887c4c009155fc9; \>= 7ed5b31f4a6695a21f617df07646e9b15c6c1d29, \< 475f9cce98b63bc145b4efa66fa51175d4cb345f; \>= 7ed5b31f4a6695a21f617df07646e9b15c6c1d29, \< 8507c6ade73cdbbbda5c3d31d67f52f2e1cf03fe; \>= 7ed5b31f4a6695a21f617df07646e9b15c6c1d29, \< 4219196d1f662cb10a462eb9e076633a3fc31a15 (cvelist)
- Linux: 5.4 (cvelist)

## Mitigation

- Upgrade Linux to 4219196d1f662cb10a462eb9e076633a3fc31a15 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-49201.md
Affected: Linux >= 7ed5b31f4a6695a21f617df07646e9b15c6c1d29, < 1bd58abf595b6cf1ba6dd47ec887c4c009155fc9; >= 7ed5b31f4a6695a21f617df07646e9b15c6c1d29, < 475f9cce98b63bc145b4efa66fa51175d4cb345f; >= 7ed5b31f4a6695a21f617df07646e9b15c6c1d29, < 8507c6ade73cdbbbda5c3d31d67f52f2e1cf03fe; >= 7ed5b31f4a6695a21f617df…
Fixed in: Linux 1bd58abf595b6cf1ba6dd47ec887c4c009155fc9, Linux 475f9cce98b63bc145b4efa66fa51175d4cb345f, Linux 8507c6ade73cdbbbda5c3d31d67f52f2e1cf03fe, Linux 4219196d1f662cb10a462eb9e076633a3fc31a15

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-49201 being exploited?

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

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

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 7ed5b31f4a6695a21f617df07646e9b15c6c1d29, \< 1bd58abf595b6cf1ba6dd47ec887c4c009155fc9; \>= 7ed5b31f4a6695a21f617df07646e9b15c6c1d29, \< 475f9cce98b63bc145b4efa66fa51175d4cb345f; \>= 7ed5b31f4a6695a21f617df07646e9b15c6c1d29, \< 8507c6ade73cdbbbda5c3d31d67f52f2e1cf03fe; \>= 7ed5b31f4a6695a21f617df07646e9b15c6c1d29, \< 4219196d1f662cb10a462eb9e076633a3fc31a15; Linux 5.4.

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

Yes. Fixed in Linux 1bd58abf595b6cf1ba6dd47ec887c4c009155fc9, Linux 475f9cce98b63bc145b4efa66fa51175d4cb345f, Linux 8507c6ade73cdbbbda5c3d31d67f52f2e1cf03fe, Linux 4219196d1f662cb10a462eb9e076633a3fc31a15. Upgrade Linux to 4219196d1f662cb10a462eb9e076633a3fc31a15 or later.

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

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

- patch: <https://git.kernel.org/stable/c/1bd58abf595b6cf1ba6dd47ec887c4c009155fc9>
- patch: <https://git.kernel.org/stable/c/475f9cce98b63bc145b4efa66fa51175d4cb345f>
- patch: <https://git.kernel.org/stable/c/8507c6ade73cdbbbda5c3d31d67f52f2e1cf03fe>
- patch: <https://git.kernel.org/stable/c/4219196d1f662cb10a462eb9e076633a3fc31a15>

## 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-49201>

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