CVE-2024-39490: ipv6: sr: fix missing sk_buff release in seg6_input_core

Published Jul 10, 2024
·
Updated

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

ipv6: sr: fix missing skbuff release in seg6inputcore

The seg6input() function is responsible for adding the SRH into a packet, delegating the operation to the seg6inputcore(). This function uses the skbcowhead() to ensure that there is sufficient headroom in the skbuff for accommodating the link-layer header. In the event that the skbcowheader() function fails, the seg6inputcore() catches the error but it does not release the skbuff, which will result in a memory leak.

This issue was introduced in commit af3b5158b89d ("ipv6: sr: fix BUG due to headroom too small after SRH push") and persists even after commit 7a3f5b0de364 ("netfilter: add netfilter hooks to SRv6 data plane"), where the entire seg6input() code was refactored to deal with netfilter hooks.

The proposed patch addresses the identified memory leak by requiring the seg6inputcore() function to release the skbuff in the event that skbcowhead() fails.

Affected Software

5 affected componentsFixes available
Linux Linux kernel>=4.12<5.15.161
Linux Linux kernel>=5.16<6.1.93
Linux Linux kernel>=6.2<6.6.33
Linux Linux kernel>=6.7<6.9.4
debian/linux<=5.10.223-1, <=5.10.234-1
6.1.129-16.1.135-16.12.25-16.12.27-1

Event History

Jul 10, 2024
CVE Published
via MITRE·07:14 AM
Data Sourced
via MITRE·07:14 AM
Description
Apr 27, 2025
Data Sourced
via Ubuntu·05:19 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-39490?

CVE-2024-39490 is classified as a medium-severity vulnerability affecting the Linux kernel.

2

How do I fix CVE-2024-39490?

To fix CVE-2024-39490, update your Linux kernel to a version that is patched, such as 6.1.123-1 or higher.

3

Which versions of Linux are affected by CVE-2024-39490?

CVE-2024-39490 affects Linux kernel versions up to 5.10.226-1.

4

Is CVE-2024-39490 related to Linux IPv6 functionality?

Yes, CVE-2024-39490 pertains to vulnerabilities in the IPv6 segment routing handling within the Linux kernel.

5

What can happen if CVE-2024-39490 is exploited?

Exploitation of CVE-2024-39490 could lead to resource leaks or denial of service in the affected Linux systems.

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