Bug 2508326 - CVE-2026-64538 kernel: ipv6: Fix null-ptr-deref in fib6_nh_mtu_change() [fedora-all]
Summary: CVE-2026-64538 kernel: ipv6: Fix null-ptr-deref in fib6_nh_mtu_change() [fedo...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Justin M. Forbes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["ad53b408-6ee4-4b7a-abcd-8...
Depends On:
Blocks: CVE-2026-64538
TreeView+ depends on / blocked
 
Reported: 2026-07-29 09:11 UTC by jkelly
Modified: 2026-07-29 13:55 UTC (History)
15 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-07-29 13:55:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description jkelly 2026-07-29 09:11:55 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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

ipv6: Fix null-ptr-deref in fib6_nh_mtu_change().

fib6_nh_mtu_change() re-fetches idev via __in6_dev_get(arg->dev) and
dereferences idev->cnf.mtu6 without a NULL check. addrconf_ifdown()
clears dev->ip6_ptr with RCU_INIT_POINTER() after rt6_disable_ip() has
released tb6_lock, so the RA-driven MTU walk can observe a NULL idev and
oops. The caller rt6_mtu_change_route() guards its own __in6_dev_get(),
but this re-fetch is unguarded; nexthop-backed routes survive
addrconf_ifdown()'s flush, so the walk still reaches it after ip6_ptr is
nulled.

Return 0 when idev is NULL, matching rt6_mtu_change_route() and the
fib6_mtu() fix in commit 5ad509c1fdad ("ipv6: Fix null-ptr-deref in
fib6_mtu().").

  Oops: general protection fault, ... KASAN: null-ptr-deref in range
        [0x00000000000002a8-0x00000000000002af]
  RIP: 0010:fib6_nh_mtu_change+0x203/0x990
   rt6_mtu_change_route+0x141/0x1d0
   __fib6_clean_all+0xd0/0x160
   rt6_mtu_change+0xb4/0x100
   ndisc_router_discovery+0x24b5/0x2cb0
   icmpv6_rcv+0x12e9/0x1710
   ipv6_rcv+0x39b/0x410

Reproducers, if any, will remain confidential and never be made public, unless done so by the security team.

Comment 1 Justin M. Forbes 2026-07-29 13:55:14 UTC
fixed in 7.1.5 with commit 6428634f7a0b7878144b4925c37856bef3224967


Note You need to log in before you can comment on or make changes to this bug.