CVE-2024-39490

ipv6: sr: fix missing sk_buff release in seg6_input_core

MEDIUM
6.2
CVSS Score
Published: July 10, 2024 at 07:14 AM UTC
Updated: June 17, 2026 at 07:42 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.2
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: ipv6: sr: fix missing sk_buff release in seg6_input_core The seg6_input() function is responsible for adding the SRH into a packet, delegating the operation to the seg6_input_core(). This function uses the skb_cow_head() to ensure that there is sufficient headroom in the sk_buff for accommodating the link-layer header. In the event that the skb_cow_header() function fails, the seg6_input_core() catches the error but it does not release the sk_buff, 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 seg6_input() code was refactored to deal with netfilter hooks. The proposed patch addresses the identified memory leak by requiring the seg6_input_core() function to release the sk_buff in the event that skb_cow_head() fails.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.12 ≤ v < 5.15.1614.12 ≤ v < 6.1.934.12 ≤ v < 6.104.12 ≤ v < 6.6.334.12 ≤ v < 6.9.45.16 ≤ v < 6.1.936.2 ≤ v < 6.6.336.7 ≤ v < 6.9.44.12af3b5158b89d3bab9be881113417558c71b71ca4
Vendor states this is fixed in 5447f9708d9e4c17a647b16a9cb29e9e02820bd9 (fixed)
Vendor states this is fixed in 8f1fc3b86eaea70be6abcae2e9aa7e7b99453864 (fixed)
Vendor states this is fixed in e8688218e38111ace457509d8f0cad75f79c1a7a (fixed)
Vendor states this is fixed in f4df8c7670a73752201cbde215254598efdf6ce8 (fixed)
Vendor states this is fixed in f5fec1588642e415a3d72e02140160661b303940 (fixed)
Vendor states this is fixed in 4.12 (unaffected)
Vendor states this is fixed in 5.15.161 (unaffected)
Vendor states this is fixed in 6.1.93 (unaffected)
Vendor states this is fixed in 6.10 (unaffected)
Vendor states this is fixed in 6.6.33 (unaffected)
Vendor states this is fixed in 6.9.4 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5447f9708d9e4c17a647b16a9cb29e9e02820bd9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8f1fc3b86eaea70be6abcae2e9aa7e7b99453864
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e8688218e38111ace457509d8f0cad75f79c1a7a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f4df8c7670a73752201cbde215254598efdf6ce8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f5fec1588642e415a3d72e02140160661b303940

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

6.2MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card