# CVE-2025-71080: ipv6: fix a BUG in rt6_get_pcpu_route() under PREEMPT_RT

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-01-13T15:34:44.832Z
- Modified: 2026-08-05T12:11:55.485Z
- Weaknesses: CWE-617
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from d2d6422f8bd17c6bb205133e290625a564194496 before 1dc33ad0867325f8d2c6d7b2a6f542d4f3121f66; from d2d6422f8bd17c6bb205133e290625a564194496 before 787515ccb2292f82eb0876993129154629a49651; from d2d6422f8bd17c6bb205133e290625a564194496 before 1adaea51c61b52e24e7ab38f7d3eba023b2d050d; 6.12 (not affected: before 6.12; from 6.12.64 up to 6.12.*; from 6.18.4 up to 6.18.*; from 6.19 up to *)
- linux linux_kernel: from 6.12.1 before 6.12.64; from 6.13 before 6.18.4; 6.12; 6.19

## Every score

- Linux: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/1dc33ad0867325f8d2c6d7b2a6f542d4f3121f66> (patch)
- <https://git.kernel.org/stable/c/787515ccb2292f82eb0876993129154629a49651> (patch)
- <https://git.kernel.org/stable/c/1adaea51c61b52e24e7ab38f7d3eba023b2d050d> (patch)

## Sources

- CVE List: [CVE-2025-71080](https://www.cve.org/CVERecord?id=CVE-2025-71080), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-71080](https://nvd.nist.gov/vuln/detail/CVE-2025-71080), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2025-71080 · Whole record: https://cve.day/CVE-2025-71080.json · Rebuilt by cve.day 2026-11-25T22:59:10.561Z
