CVE-2024-43835: virtio_net: Fix napi_skb_cache_put warning

Published Aug 17, 2024
·
Updated

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

virtionet: Fix napiskbcacheput warning

After the commit bdacf3e34945 ("net: Use nested-BH locking for napialloccache.") was merged, the following warning began to appear:

WARNING: CPU: 5 PID: 1 at net/core/skbuff.c:1451 napiskbcacheput+0x82/0x4b0

warn+0x12f/0x340 napiskbcacheput+0x82/0x4b0 napiskbcacheput+0x82/0x4b0 reportbug+0x165/0x370 handlebug+0x3d/0x80 excinvalidop+0x1a/0x50 asmexcinvalidop+0x1a/0x20 freeoldxmit+0x1c8/0x510 napiskbcacheput+0x82/0x4b0 freeoldxmit+0x1c8/0x510 freeoldxmit+0x1c8/0x510 pfxfreeoldxmit+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 virtnetpolltx() to only set NAPI when budget is available. Same for virtnetpollcleantx(), which always assumed that it was in a NAPI context.

Affected Software

8 affected componentsFixes available
Linux Linux kernel>=5.0<6.10.3
debian/linux<=5.10.223-1
5.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
debian/linux-6.1
6.1.129-1~deb11u1
Microsoft cbl2 kernel 5.15.180.1-1
Microsoft cbl2 kernel 5.15.180.1-1<5.15.176.3-1
5.15.176.3-1
Microsoft azl3 kernel 6.6.92.2-1<6.6.64.2-9
6.6.64.2-9
Microsoft cbl2 kernel 5.15.176.3-1<5.15.176.3-1
5.15.176.3-1
Microsoft azl3 kernel 6.6.64.2-9<6.6.64.2-9
6.6.64.2-9

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1
  2. Upgrade

    Upgrade debian/linux-6.1 to a version that resolves this vulnerability.

    Fixed in 6.1.129-1~deb11u1
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.15.176.3-1
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.6.64.2-9
  5. Configuration

    Modify virtnet_poll_tx() so NAPI is only set when budget is available, addressing the WARNING in napi_skb_cache_put when virtio incorrectly assumes it is running in NAPI context (including the netpoll case). Also apply the equivalent correction for virtnet_poll_cleantx(), which always assumed it was in a NAPI context.

    Linux kernel virtio_net (virtnet_poll_tx / virtnet_poll_cleantx) NAPI enablement in virtio poll routines = Only set NAPI when budget is available (and adjust virtnet_poll_cleantx to not always assume NAPI context)

Event History

Aug 17, 2024
CVE Published
via MITRE·09:21 AM
Data Sourced
via MITRE·09:21 AM
Description
Data Sourced
via NVD·10:15 AM
RemedyDescriptionSeverityAffected Software
Apr 27, 2025
Data Sourced
via Ubuntu·12:34 AM
RemedyDescriptionSeverityAffected Software
Sep 4, 2025
Data Sourced
via Microsoft·04:45 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·04:45 AM
Description
Updated
via Microsoft·04:45 AM
Affected Software
Updated
via Microsoft·04:45 AM
SeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-43835?

CVE-2024-43835 is classified as a high severity vulnerability affecting the Linux kernel.

2

How do I fix CVE-2024-43835?

To fix CVE-2024-43835, upgrade to the recommended versions of the Linux kernel, specifically those equal to or higher than 5.10.226-1, 6.1.123-1, or 6.12.12-1.

3

Which versions of the Linux kernel are affected by CVE-2024-43835?

CVE-2024-43835 affects all Linux kernel versions from 5.0 up to 6.10.3 inclusive.

4

What type of vulnerability is CVE-2024-43835?

CVE-2024-43835 is a warning issue related to the virtio_net component in the Linux kernel.

5

Is there a workaround for CVE-2024-43835?

There is no known workaround for CVE-2024-43835, and the recommended action is to update the kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203