CVE-2025-71080

ipv6: fix a BUG in rt6_get_pcpu_route() under PREEMPT_RT

State
Published
Severity
7.5 High
Published
Jan 13, 2026
Updated
Aug 5, 2026
Reserved
Jan 13, 2026

Read the record on cve.org

Description

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

ipv6: fix a BUG in rt6_get_pcpu_route() under PREEMPT_RT

On PREEMPT_RT kernels, after rt6_get_pcpu_route() returns NULL, the current task can be preempted. Another task running on the same CPU may then execute rt6_make_pcpu_route() and successfully install a pcpu_rt entry. When the first task resumes execution, its cmpxchg() in rt6_make_pcpu_route() will fail because rt6i_pcpu is no longer NULL, triggering the BUG_ON(prev). It's easy to reproduce it by adding mdelay() after rt6_get_pcpu_route().

Using preempt_disable/enable is not appropriate here because ip6_rt_pcpu_alloc() may sleep.

Fix this by handling the cmpxchg() failure gracefully on PREEMPT_RT: free our allocation and return the existing pcpu_rt installed by another task. The BUG_ON is replaced by WARN_ON_ONCE for non-PREEMPT_RT kernels where such races should not occur.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • d2d6422f8bd17c6bb205133e290625a564194496 to before 1dc33ad0867325f8d2c6d7b2a6f542d4f3121f66Affected
  • d2d6422f8bd17c6bb205133e290625a564194496 to before 787515ccb2292f82eb0876993129154629a49651Affected
  • d2d6422f8bd17c6bb205133e290625a564194496 to before 1adaea51c61b52e24e7ab38f7d3eba023b2d050dAffected
LinuxLinux
  • 6.12Affected
  • before 6.12Not affected
  • 6.12.64 through 6.12.*Not affected
  • 6.18.4 through 6.18.*Not affected
  • 6.19 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.