# CVE-2024-39490: ipv6: sr: fix missing sk\_buff release in seg6\_input\_core

- Priority: **Routine**
- Reason: Not severe (CVSS 6.2, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-07-10 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2024-39490, DEBIAN-CVE-2024-39490
- Record: https://cvemate.com/vulnerability/CVE-2024-39490 · JSON: https://cvemate.com/vulnerability/CVE-2024-39490/json

## Description

```text
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.
```

## Signals

- CVSS: 6.2 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.223%, percentile 13.7%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 131)

- debian linux (Debian): \< 6.1.94-1 \| \< 6.9.7-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-121.131 \| \< 6.8.0-44.44
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1069.75 \| \< 6.8.0-1015.16
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1069.75~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1015.16~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1069.75+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1072.81 \| \< 6.8.0-1014.16
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 22)

- <https://git.kernel.org/stable/c/e8688218e38111ace457509d8f0cad75f79c1a7a>
- <https://git.kernel.org/stable/c/8f1fc3b86eaea70be6abcae2e9aa7e7b99453864>
- <https://git.kernel.org/stable/c/f4df8c7670a73752201cbde215254598efdf6ce8>
- <https://git.kernel.org/stable/c/f5fec1588642e415a3d72e02140160661b303940>
- <https://git.kernel.org/stable/c/5447f9708d9e4c17a647b16a9cb29e9e02820bd9>
- <https://ubuntu.com/security/CVE-2024-39490>
- <https://www.cve.org/CVERecord?id=CVE-2024-39490>
- <https://git.kernel.org/linus/5447f9708d9e4c17a647b16a9cb29e9e02820bd9>
- <https://ubuntu.com/security/notices/USN-6999-1>
- <https://ubuntu.com/security/notices/USN-7004-1>
- <https://ubuntu.com/security/notices/USN-7005-1>
- <https://ubuntu.com/security/notices/USN-7007-1>
- <https://ubuntu.com/security/notices/USN-7008-1>
- <https://ubuntu.com/security/notices/USN-7005-2>
- <https://ubuntu.com/security/notices/USN-7009-1>
- <https://ubuntu.com/security/notices/USN-7019-1>
- <https://ubuntu.com/security/notices/USN-7007-2>
- <https://ubuntu.com/security/notices/USN-6999-2>
- <https://ubuntu.com/security/notices/USN-7007-3>
- <https://ubuntu.com/security/notices/USN-7029-1>

---

Data as of 2026-12-05T04:20:46.362Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
