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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.2
- **CVSS:** 6.2 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2024-07-10T07:14:09.667Z
- **Modified:** 2026-06-17T07:42:01.920Z

## Who should check

- Anyone running Linux \>= af3b5158b89d3bab9be881113417558c71b71ca4, \< e8688218e38111ace457509d8f0cad75f79c1a7a; \>= af3b5158b89d3bab9be881113417558c71b71ca4, \< 8f1fc3b86eaea70be6abcae2e9aa7e7b99453864; \>= af3b5158b89d3bab9be881113417558c71b71ca4, \< f4df8c7670a73752201cbde215254598efdf6ce8; \>= af3b5158b89d3bab9be881113417558c71b71ca4, \< f5fec1588642e415a3d72e02140160661b303940; \>= af3b5158b89d3bab9be881113417558c71b71ca4, \< 5447f9708d9e4c17a647b16a9cb29e9e02820bd9
- Anyone running Linux 4.12

## 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 and fixed versions

- Linux: \>= af3b5158b89d3bab9be881113417558c71b71ca4, \< e8688218e38111ace457509d8f0cad75f79c1a7a; \>= af3b5158b89d3bab9be881113417558c71b71ca4, \< 8f1fc3b86eaea70be6abcae2e9aa7e7b99453864; \>= af3b5158b89d3bab9be881113417558c71b71ca4, \< f4df8c7670a73752201cbde215254598efdf6ce8; \>= af3b5158b89d3bab9be881113417558c71b71ca4, \< f5fec1588642e415a3d72e02140160661b303940; \>= af3b5158b89d3bab9be881113417558c71b71ca4, \< 5447f9708d9e4c17a647b16a9cb29e9e02820bd9 (cvelist)
- Linux: 4.12 (cvelist)

## Mitigation

- Upgrade Linux to 5447f9708d9e4c17a647b16a9cb29e9e02820bd9 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-39490. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-39490.md
Affected: Linux >= af3b5158b89d3bab9be881113417558c71b71ca4, < e8688218e38111ace457509d8f0cad75f79c1a7a; >= af3b5158b89d3bab9be881113417558c71b71ca4, < 8f1fc3b86eaea70be6abcae2e9aa7e7b99453864; >= af3b5158b89d3bab9be881113417558c71b71ca4, < f4df8c7670a73752201cbde215254598efdf6ce8; >= af3b5158b89d3bab9be8811…
Fixed in: Linux 8f1fc3b86eaea70be6abcae2e9aa7e7b99453864, Linux 5447f9708d9e4c17a647b16a9cb29e9e02820bd9

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-39490 being exploited?

There is no confirmed exploitation: CVE-2024-39490 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-39490?

Medium: CVSS 6.2 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-39490?

Linux \>= af3b5158b89d3bab9be881113417558c71b71ca4, \< e8688218e38111ace457509d8f0cad75f79c1a7a; \>= af3b5158b89d3bab9be881113417558c71b71ca4, \< 8f1fc3b86eaea70be6abcae2e9aa7e7b99453864; \>= af3b5158b89d3bab9be881113417558c71b71ca4, \< f4df8c7670a73752201cbde215254598efdf6ce8; \>= af3b5158b89d3bab9be881113417558c71b71ca4, \< f5fec1588642e415a3d72e02140160661b303940; \>= af3b5158b89d3bab9be881113417558c71b71ca4, \< 5447f9708d9e4c17a647b16a9cb29e9e02820bd9; Linux 4.12.

### Is there a fix for CVE-2024-39490?

Yes. Fixed in Linux 8f1fc3b86eaea70be6abcae2e9aa7e7b99453864, Linux 5447f9708d9e4c17a647b16a9cb29e9e02820bd9. Upgrade Linux to 5447f9708d9e4c17a647b16a9cb29e9e02820bd9 or later.

### How do I check if I'm affected by CVE-2024-39490?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/e8688218e38111ace457509d8f0cad75f79c1a7a>
- patch: <https://git.kernel.org/stable/c/8f1fc3b86eaea70be6abcae2e9aa7e7b99453864>
- patch: <https://git.kernel.org/stable/c/f4df8c7670a73752201cbde215254598efdf6ce8>
- patch: <https://git.kernel.org/stable/c/f5fec1588642e415a3d72e02140160661b303940>
- patch: <https://git.kernel.org/stable/c/5447f9708d9e4c17a647b16a9cb29e9e02820bd9>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-39490>

HTML: <https://flawdb.com/CVE-2024-39490> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-39490>
