# CVE-2024-56674: virtio\_net: correct netdev\_tx\_reset\_queue() invocation point

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.39% (percentile 25, 2026-11-28)
- **CWE:** CWE-672
- **Published:** 2024-12-27T15:06:35.160Z
- **Modified:** 2026-06-17T08:12:43.050Z

## Who should check

- Anyone running Linux \>= c8bd1f7f3e61fc6c562c806045f3ccd2cc819c01, \< b4294d4ac61fbb382811a1d64eaf81f446ce2af4; \>= c8bd1f7f3e61fc6c562c806045f3ccd2cc819c01, \< 3ddccbefebdbe0c4c72a248676e4d39ac66a8e26
- Anyone running Linux 6.11

## Description

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

virtio\_net: correct netdev\_tx\_reset\_queue() invocation point

When virtnet\_close is followed by virtnet\_open, some TX completions can
possibly remain unconsumed, until they are finally processed during the
first NAPI poll after the netdev\_tx\_reset\_queue(), resulting in a crash
\[1\]. Commit b96ed2c97c79 ("virtio\_net: move netdev\_tx\_reset\_queue() call
before RX napi enable") was not sufficient to eliminate all BQL crash
cases for virtio-net.

This issue can be reproduced with the latest net-next master by running:
\`while :; do ip l set DEV down; ip l set DEV up; done\` under heavy network
TX load from inside the machine.

netdev\_tx\_reset\_queue() can actually be dropped from virtnet\_open path;
the device is not stopped in any case. For BQL core part, it's just like
traffic nearly ceases to exist for some period. For stall detector added
to BQL, even if virtnet\_close could somehow lead to some TX completions
delayed for long, followed by virtnet\_open, we can just take it as stall
as mentioned in commit 6025b9135f7a ("net: dqs: add NIC stall detector
based on BQL"). Note also that users can still reset stall\_max via sysfs.

So, drop netdev\_tx\_reset\_queue() from virtnet\_enable\_queue\_pair(). This
eliminates the BQL crashes. As a result, netdev\_tx\_reset\_queue() is now
explicitly required in freeze/restore path. This patch adds it to
immediately after free\_unused\_bufs(), following the rule of thumb:
netdev\_tx\_reset\_queue() should follow any SKB freeing not followed by
netdev\_tx\_completed\_queue(). This seems the most consistent and
streamlined approach, and now netdev\_tx\_reset\_queue() runs whenever
free\_unused\_bufs() is done.

\[1\]:
------------\[ cut here \]------------
kernel BUG at lib/dynamic\_queue\_limits.c:99!
Oops: invalid opcode: 0000 \[\#1\] PREEMPT SMP NOPTI
CPU: 7 UID: 0 PID: 1598 Comm: ip Tainted: G    N 6.12.0net-next\_main+ \#2
Tainted: \[N\]=TEST
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), \\
BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
RIP: 0010:dql\_completed+0x26b/0x290
Code: b7 c2 49 89 e9 44 89 da 89 c6 4c 89 d7 e8 ed 17 47 00 58 65 ff 0d
4d 27 90 7e 0f 85 fd fe ff ff e8 ea 53 8d ff e9 f3 fe ff ff \<0f\> 0b 01
d2 44 89 d1 29 d1 ba 00 00 00 00 0f 48 ca e9 28 ff ff ff
RSP: 0018:ffffc900002b0d08 EFLAGS: 00010297
RAX: 0000000000000000 RBX: ffff888102398c80 RCX: 0000000080190009
RDX: 0000000000000000 RSI: 000000000000006a RDI: 0000000000000000
RBP: ffff888102398c00 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000000000ca R11: 0000000000015681 R12: 0000000000000001
R13: ffffc900002b0d68 R14: ffff88811115e000 R15: ffff8881107aca40
FS:  00007f41ded69500(0000) GS:ffff888667dc0000(0000)
knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000556ccc2dc1a0 CR3: 0000000104fd8003 CR4: 0000000000772ef0
PKRU: 55555554
Call Trace:
 \<IRQ\>
 ? die+0x32/0x80
 ? do\_trap+0xd9/0x100
 ? dql\_completed+0x26b/0x290
 ? dql\_completed+0x26b/0x290
 ? do\_error\_trap+0x6d/0xb0
 ? dql\_completed+0x26b/0x290
 ? exc\_invalid\_op+0x4c/0x60
 ? dql\_completed+0x26b/0x290
 ? asm\_exc\_invalid\_op+0x16/0x20
 ? dql\_completed+0x26b/0x290
 \_\_free\_old\_xmit+0xff/0x170 \[virtio\_net\]
 free\_old\_xmit+0x54/0xc0 \[virtio\_net\]
 virtnet\_poll+0xf4/0xe30 \[virtio\_net\]
 ? \_\_update\_load\_avg\_cfs\_rq+0x264/0x2d0
 ? update\_curr+0x35/0x260
 ? reweight\_entity+0x1be/0x260
 \_\_napi\_poll.constprop.0+0x28/0x1c0
 net\_rx\_action+0x329/0x420
 ? enqueue\_hrtimer+0x35/0x90
 ? trace\_hardirqs\_on+0x1d/0x80
 ? kvm\_sched\_clock\_read+0xd/0x20
 ? sched\_clock+0xc/0x30
 ? kvm\_sched\_clock\_read+0xd/0x20
 ? sched\_clock+0xc/0x30
 ? sched\_clock\_cpu+0xd/0x1a0
 handle\_softirqs+0x138/0x3e0
 do\_softirq.part.0+0x89/0xc0
 \</IRQ\>
 \<TASK\>
 \_\_local\_bh\_enable\_ip+0xa7/0xb0
 virtnet\_open+0xc8/0x310 \[virtio\_net\]
 \_\_dev\_open+0xfa/0x1b0
 \_\_dev\_change\_flags+0x1de/0x250
 dev\_change\_flags+0x22/0x60
 do\_setlink.isra.0+0x2df/0x10b0
 ? rtnetlink\_rcv\_msg+0x34f/0x3f0
 ? netlink\_rcv\_skb+0x54/0x100
 ? netlink\_unicas
---truncated---

## Affected and fixed versions

- Linux: \>= c8bd1f7f3e61fc6c562c806045f3ccd2cc819c01, \< b4294d4ac61fbb382811a1d64eaf81f446ce2af4; \>= c8bd1f7f3e61fc6c562c806045f3ccd2cc819c01, \< 3ddccbefebdbe0c4c72a248676e4d39ac66a8e26 (cvelist)
- Linux: 6.11 (cvelist)

## Mitigation

- Upgrade Linux to 3ddccbefebdbe0c4c72a248676e4d39ac66a8e26 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-56674.md
Affected: Linux >= c8bd1f7f3e61fc6c562c806045f3ccd2cc819c01, < b4294d4ac61fbb382811a1d64eaf81f446ce2af4; >= c8bd1f7f3e61fc6c562c806045f3ccd2cc819c01, < 3ddccbefebdbe0c4c72a248676e4d39ac66a8e26; Linux 6.11
Fixed in: Linux 3ddccbefebdbe0c4c72a248676e4d39ac66a8e26

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-2024-56674 being exploited?

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

### How serious is CVE-2024-56674?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-56674?

Linux \>= c8bd1f7f3e61fc6c562c806045f3ccd2cc819c01, \< b4294d4ac61fbb382811a1d64eaf81f446ce2af4; \>= c8bd1f7f3e61fc6c562c806045f3ccd2cc819c01, \< 3ddccbefebdbe0c4c72a248676e4d39ac66a8e26; Linux 6.11.

### Is there a fix for CVE-2024-56674?

Yes. Fixed in Linux 3ddccbefebdbe0c4c72a248676e4d39ac66a8e26. Upgrade Linux to 3ddccbefebdbe0c4c72a248676e4d39ac66a8e26 or later.

### How do I check if I'm affected by CVE-2024-56674?

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/b4294d4ac61fbb382811a1d64eaf81f446ce2af4>
- patch: <https://git.kernel.org/stable/c/3ddccbefebdbe0c4c72a248676e4d39ac66a8e26>

## 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-2024-56674>

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