---
id: CVE-2024-39489
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  ipv6: sr: fix memleak in seg6_hmac_init_algo

  seg6_hmac_init_algo returns without cleaning up the previous allocations
  if one fails, so it's going to leak all that memo…
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  ipv6: sr: fix memleak in seg6_hmac_init_algo

  seg6_hmac_init_algo returns without cleaning up the previous allocations
  if one fails, so it's going to leak all that memo…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-401
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 4.10, < 4.19.316'
  - 'linux_kernel >= 4.20, < 5.4.278'
  - 'linux_kernel >= 5.5, < 5.10.219'
  - 'linux_kernel >= 5.11, < 5.15.161'
  - 'linux_kernel >= 5.16, < 6.1.93'
  - 'linux_kernel >= 6.2, < 6.6.33'
  - 'linux_kernel >= 6.7, < 6.9.4'
patched:
  - linux_kernel 6.9.4
published: '2024-07-10'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T01:18:34.287'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-39489'
references:
  - url: 'https://git.kernel.org/stable/c/0e44d6cbe8de983470c3d2f978649783384fdcb6'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/4a3fcf53725b70010d1cf869a2ba549fed6b8fb3'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/599a5654215092ac22bfc453f4fd3959c55ea821'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/61d31ac85b4572d11f8071855c0ccb4f32d76c0c'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/afd5730969aec960a2fee4e5ee839a6014643976'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/daf341e0a2318b813427d5a78788c86f4a7f02be'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/efb9f4f19f8e37fde43dfecebc80292d179f56c6'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/f6a99ef4e056c20a138a95cc51332b2b96c8f383'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/0e44d6cbe8de983470c3d2f978649783384fdcb6'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/4a3fcf53725b70010d1cf869a2ba549fed6b8fb3'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/599a5654215092ac22bfc453f4fd3959c55ea821'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/61d31ac85b4572d11f8071855c0ccb4f32d76c0c'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/afd5730969aec960a2fee4e5ee839a6014643976'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/daf341e0a2318b813427d5a78788c86f4a7f02be'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/efb9f4f19f8e37fde43dfecebc80292d179f56c6'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/f6a99ef4e056c20a138a95cc51332b2b96c8f383'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-265688.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-398330.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-613116.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.00239
epssPercentile: 0.14895
ingestedAt: '2026-10-15T03:30:12.718Z'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-07-10T15:29:00.880316Z'
---

## Overview

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

ipv6: sr: fix memleak in seg6_hmac_init_algo

seg6_hmac_init_algo returns without cleaning up the previous allocations
if one fails, so it's going to leak all that memory and the crypto tfms.

Update seg6_hmac_exit to only free the memory when allocated, so we can
reuse the code directly.

## Affected

- `linux_kernel >= 4.10, < 4.19.316`
- `linux_kernel >= 4.20, < 5.4.278`
- `linux_kernel >= 5.5, < 5.10.219`
- `linux_kernel >= 5.11, < 5.15.161`
- `linux_kernel >= 5.16, < 6.1.93`
- `linux_kernel >= 6.2, < 6.6.33`
- `linux_kernel >= 6.7, < 6.9.4`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.9.4`
