VDB

CVE-2024-43835

CVE-2024-43835 PUBLISHED

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.

PackageEcosystemFixed in
bpftoolAmazon Linux6.1.109-118.189.amzn2023
perfAmazon Linux6.1.109-118.189.amzn2023

Affected products

VendorProductVersions
LinuxLinuxdf133f3f96257ee29696c0ed8bd198ec801dc810, df133f3f96257ee29696c0ed8bd198ec801dc810, df133f3f96257ee29696c0ed8bd198ec801dc810
LinuxLinux5.0, 0, 5.4.284
amazon:2023bpftool0
amazon:2023perf0
linuxlinux_kernel5.0, 5.0, 5.0
amazon:2023kernel-libbpf0
amazon:2023kernel-livepatch-6.1.109-118.1890
amazon:2023kernel0
amazon:2023kernel-tools-devel0
amazon:2023kernel-tools0
amazon:2023kernel-modules-extra0
amazon:2023kernel-headers0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-modules-extra-common0
LinuxLinux*, *, 5.10.226
amazon:2023python3-perf0
amazon:2023kernel-devel0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›