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

  ipv6: use RCU in ip6_output()

  Use RCU in ip6_output() in order to use dst_dev_rcu() to prevent
  possible UAF.

  We can remove rcu_read_lock()/rcu_read_unlock() pairs
  fro…
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  ipv6: use RCU in ip6_output()

  Use RCU in ip6_output() in order to use dst_dev_rcu() to prevent
  possible UAF.

  We can remove rcu_read_lock()/rcu_read_unlock() pairs
  fro…
severity: high
cvss: 8.1
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 <
    92803b826e40e49a5e8a6e208f4b4574e9d19426
  - >-
    Linux >= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 <
    0393f85c3241c19ba8550f04a812e7d19f6b3082
  - >-
    Linux >= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 <
    11709573cc4e48dc34c80fc7ab9ce5b159e29695
  - Linux 4.13
published: '2025-11-12'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T11:17:16.923'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-40158'
references:
  - url: 'https://git.kernel.org/stable/c/0393f85c3241c19ba8550f04a812e7d19f6b3082'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/11709573cc4e48dc34c80fc7ab9ce5b159e29695'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/92803b826e40e49a5e8a6e208f4b4574e9d19426'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
  - cve.org
epss: 0.00472
epssPercentile: 0.39263
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-06-16T20:00:29.008533Z'
ingestedAt: '2026-10-15T11:00:41.716Z'
---

## Overview

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

ipv6: use RCU in ip6_output()

Use RCU in ip6_output() in order to use dst_dev_rcu() to prevent
possible UAF.

We can remove rcu_read_lock()/rcu_read_unlock() pairs
from ip6_finish_output2().

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
