CVE-2024-43835
virtio_net: Fix napi_skb_cache_put warning
Reported by linux · Published August 17, 2024
In the Linux kernel, the following vulnerability has been resolved: virtio_net: Fix napi_skb_cache_put warning After the commit bdacf3e34945 ("net: Use nested-BH locking for napi_alloc_cache.") was merged, the following warning began to appear: WARNING: CPU: 5 PID: 1 at net/core/skbuff.c:1451 napi_skb_cache_put+0x82/0x4b0 __warn+0x12f/0x340 napi_skb_cache_put+0x82/0x4b0 napi_skb_cache_put+0x82/0x4b0 report_bug+0x165/0x370 handle_bug+0x3d/0x80 exc_invalid_op+0x1a/0x50 asm_exc_invalid_op+0x1a/0x20 __free_old_xmit+0x1c8/0x510 napi_skb_cache_put+0x82/0x4b0 __free_old_xmit+0x1c8/0x510 __free_old_xmit+0x1c8/0x510 __pfx___free_old_xmit+0x10/0x10 The issue arises because virtio is assuming it's running in NAPI context even when it's not, such as in the netpoll case. To resolve this, modify virtnet_poll_tx() to only set NAPI when budget is available. Same for virtnet_poll_cleantx(), which always assumed that it was in a NAPI context.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| bpftool | Amazon Linux | 6.1.109-118.189.amzn2023 |
| perf | Amazon Linux | 6.1.109-118.189.amzn2023 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | df133f3f96257ee29696c0ed8bd198ec801dc810, df133f3f96257ee29696c0ed8bd198ec801dc810, df133f3f96257ee29696c0ed8bd198ec801dc810 |
| Linux | Linux | 5.0, 0, 5.4.284 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | perf | 0 |
| linux | linux_kernel | 5.0, 5.0, 5.0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-livepatch-6.1.109-118.189 | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| Linux | Linux | *, *, 5.10.226 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-devel | 0 |
Timeline
- Aug 17, 2024 CVE Published
- Aug 18, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (11 in total, the first dated here)
- Jan 6, 2025 CVE Updated
- Jan 5, 2026 Security Advisory (141 in total, the first dated here)
- Mar 30, 2026 Distribution Patch (127 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-43835
vulnetix vdb fixes CVE-2024-43835
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-43835/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart