CVE-2024-43835

virtio_net: Fix napi_skb_cache_put warning

No CVSS score yet EPSS 0.25%

Published 17 Aug 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2024-43835

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-43835 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Exploitation

EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 17.4% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Sep 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from df133f3f96257ee29696c0ed8bd198ec801dc810, before d3af435e8ace119e58d8e21d3d2d6a4e7c4a4baa
affected from df133f3f96257ee29696c0ed8bd198ec801dc810, before 842a97b5e44f0c8a9fc356fe976e0e13ddcf7783
affected from df133f3f96257ee29696c0ed8bd198ec801dc810, before cc7340f18e45886121c131227985d64ef666012f
affected from df133f3f96257ee29696c0ed8bd198ec801dc810, before 6b5325f2457521bbece29499970c0117a648c620
affected from df133f3f96257ee29696c0ed8bd198ec801dc810, before f5e9a22d19bb98a7e86034db85eb295e94187caa
affected from df133f3f96257ee29696c0ed8bd198ec801dc810, before 468a729b78895893d0e580ceea49bed8ada2a2bd
affected from df133f3f96257ee29696c0ed8bd198ec801dc810, before f8321fa75102246d7415a6af441872f6637c93ab
Other versions: unaffected
Linux
affected 5.0
unaffected before 5.0
unaffected from 5.4.284 up to and including 5.4.*
unaffected from 5.10.226 up to and including 5.10.*
unaffected from 5.15.167 up to and including 5.15.*
unaffected from 6.1.109 up to and including 6.1.*
unaffected from 6.6.50 up to and including 6.6.*
unaffected from 6.10.3 up to and including 6.10.*
unaffected 6.11 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-43835 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-43835

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-43835
trivy image --scanners vuln IMAGE | grep CVE-2024-43835

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-43835 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.