Advisory Published
Updated

CVE-2024-56638: netfilter: nft_inner: incorrect percpu area handling under softirq

First published: Fri Dec 27 2024(Updated: )

In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_inner: incorrect percpu area handling under softirq Softirq can interrupt ongoing packet from process context that is walking over the percpu area that contains inner header offsets. Disable bh and perform three checks before restoring the percpu inner header offsets to validate that the percpu area is valid for this skbuff: 1) If the NFT_PKTINFO_INNER_FULL flag is set on, then this skbuff has already been parsed before for inner header fetching to register. 2) Validate that the percpu area refers to this skbuff using the skbuff pointer as a cookie. If there is a cookie mismatch, then this skbuff needs to be parsed again. 3) Finally, validate if the percpu area refers to this tunnel type. Only after these three checks the percpu area is restored to a on-stack copy and bh is enabled again. After inner header fetching, the on-stack copy is stored back to the percpu area.

Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Affected SoftwareAffected VersionHow to fix
Red Hat Kernel-devel
debian/linux
5.10.223-1
5.10.234-1
6.1.129-1
6.1.128-1
6.12.20-1
6.12.21-1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-56638?

    CVE-2024-56638 is considered a moderate severity vulnerability in the Linux kernel.

  • How do I fix CVE-2024-56638?

    To fix CVE-2024-56638, it is recommended to upgrade to the latest stable version of the Linux kernel that has addressed the vulnerability.

  • What impact does CVE-2024-56638 have on kernel performance?

    CVE-2024-56638 can lead to instability in packet processing under certain conditions in the Linux kernel.

  • What versions of the Linux kernel are affected by CVE-2024-56638?

    CVE-2024-56638 affects the Linux kernel versions prior to its fix implementation.

  • Is CVE-2024-56638 exploitable remotely?

    Yes, CVE-2024-56638 can be exploited by an attacker with access to the network, affecting the handling of packets.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203