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

  net: openvswitch: Fix Use-After-Free in ovs_ct_exit

  Since kfree_rcu, which is called in the hlist_for_each_entry_rcu traversal
  of ovs_ct_limit_exit, is not part of the…
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  net: openvswitch: Fix Use-After-Free in ovs_ct_exit

  Since kfree_rcu, which is called in the hlist_for_each_entry_rcu traversal
  of ovs_ct_limit_exit, is not part of the…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-416
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 4.18, < 4.19.313'
  - 'linux_kernel >= 4.20, < 5.4.275'
  - 'linux_kernel >= 5.5, < 5.10.216'
  - 'linux_kernel >= 5.11, < 5.15.158'
  - 'linux_kernel >= 5.16, < 6.1.90'
  - 'linux_kernel >= 6.2, < 6.6.30'
  - 'linux_kernel >= 6.7, < 6.8.9'
  - linux_kernel = 6.9
  - debian_linux = 10.0
patched:
  - linux_kernel 6.8.9
published: '2024-05-14'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T01:17:39.990'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-27395'
references:
  - url: 'https://git.kernel.org/stable/c/2db9a8c0a01fa1c762c1e61a13c212c492752994'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/35880c3fa6f8fe281a19975d2992644588ca33d3'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/589523cf0b384164e445dd5db8d5b1bf97982424'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/5ea7b72d4fac2fdbc0425cd8f2ea33abe95235b2'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/9048616553c65e750d43846f225843ed745ec0d4'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/bca6fa2d9a9f560e6b89fd5190b05cc2f5d422c1'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/eaa5e164a2110d2fb9e16c8a29e4501882235137'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/edee0758747d7c219e29db9ed1d4eb33e8d32865'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/2db9a8c0a01fa1c762c1e61a13c212c492752994'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/35880c3fa6f8fe281a19975d2992644588ca33d3'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/589523cf0b384164e445dd5db8d5b1bf97982424'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/5ea7b72d4fac2fdbc0425cd8f2ea33abe95235b2'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/9048616553c65e750d43846f225843ed745ec0d4'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/bca6fa2d9a9f560e6b89fd5190b05cc2f5d422c1'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/eaa5e164a2110d2fb9e16c8a29e4501882235137'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/edee0758747d7c219e29db9ed1d4eb33e8d32865'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html'
    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-613116.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.00244
epssPercentile: 0.14673
ingestedAt: '2026-10-15T03:30:12.676Z'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-09-10T15:43:26.319846Z'
---

## Overview

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

net: openvswitch: Fix Use-After-Free in ovs_ct_exit

Since kfree_rcu, which is called in the hlist_for_each_entry_rcu traversal
of ovs_ct_limit_exit, is not part of the RCU read critical section, it
is possible that the RCU grace period will pass during the traversal and
the key will be free.

To prevent this, it should be changed to hlist_for_each_entry_safe.

## Affected

- `linux_kernel >= 4.18, < 4.19.313`
- `linux_kernel >= 4.20, < 5.4.275`
- `linux_kernel >= 5.5, < 5.10.216`
- `linux_kernel >= 5.11, < 5.15.158`
- `linux_kernel >= 5.16, < 6.1.90`
- `linux_kernel >= 6.2, < 6.6.30`
- `linux_kernel >= 6.7, < 6.8.9`
- `linux_kernel = 6.9`
- `debian_linux = 10.0`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.8.9`
