Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5038B3ACA48 for ; Thu, 25 Jun 2026 09:46:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782380817; cv=none; b=id4IKJtogQvRd55EhNHbPaNCeAZBDKkZFj9sc4qWBudnt0RWBQN0VCAlsPqH7U3X9Kpwnmbw+5jHOlVQF8CsBgfK6xyBdkhiN6dNRYM85dLRkzasQMWiJANyZD74b1aUaXhY7YNeJWZ+oLrJmfyJeGT921Q9XDMmTKGoA89UOsY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782380817; c=relaxed/simple; bh=tvkbLrTeEx5+PnKS+i4r8wMwINO1hjUQRAP7lsDhIb8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TIn7dHMwNZQEPE+R0KZrAGiGUexjokUdmfTY+qT5CIihcw4TiSWTF9lWyGP8Jtvx81ku1P1Zu/5fVGyv80OcvXmjMsLGm4Dvd43hXLBbY99uS1xMbKKJJ2WOqg9khu/TcegI0MTGazfDtT7kpkSs3i7pVTxxjMBVwFERZ03wv4c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UWHadV48; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="UWHadV48" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64A561F000E9; Thu, 25 Jun 2026 09:46:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782380815; bh=wOiDos7MLL2KISffjl1jj74rQfrz22OaMFxcWig621c=; h=From:To:Cc:Subject:Date:Reply-To; b=UWHadV48i9gHh+g1tUVgOb3rz6u25gnmrUzOq+3OCOQHhMIN8H40zUCOIpFUbKjmc K/uAn9C3b/wWETZSaW04amcTtdSxF8jog7aP4FjotZXEGiziQEwNHyX5D5Azh2/t7j JcVqWbecGeHMGti9elZpstXh81vEocJ7vR2C4Tak= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53259: ipv6: anycast: insert aca into global hash under idev->lock Date: Thu, 25 Jun 2026 09:41:47 +0100 Message-ID: <2026062515-CVE-2026-53259-5758@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4436; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9LN8HAecE6wTs0lRvqod+LYL46LFC2XTw52Qk1bIOEQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2L/OfPqoWr5h1dktGvt6GF4ePTzeeUnXGcWbuxDRd1 jzp/O+hHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARh40M8yzbFoexP+O4z6e1 Uf8Rm3O51peLmxjmR/lfeC/hOmnzv5Q91afcnV9y/dr1DgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: ipv6: anycast: insert aca into global hash under idev->lock syzbot reported a splat [1]: a slab-use-after-free in ipv6_chk_acast_addr(), which walks the global inet6_acaddr_lst[] hash under RCU and dereferences a struct ifacaddr6 that has already been freed while still linked in the hash, so a later reader walks into a dangling node. In __ipv6_dev_ac_inc() the aca is allocated with refcount 1, then aca_get() bumps it to 2 to keep it alive across the unlocked region. It is published to idev->ac_list under idev->lock, but ipv6_add_acaddr_hash() runs after write_unlock_bh(). A concurrent teardown (ipv6_ac_destroy_dev() from addrconf_ifdown(), under RTNL) can slip into that window: CPU0 __ipv6_dev_ac_inc CPU1 ipv6_ac_destroy_dev (RTNL) ------------------------------ ------------------------------------ aca_alloc() refcnt 1 aca_get() refcnt 2 write_lock_bh(idev->lock) add aca to ac_list write_unlock_bh(idev->lock) write_lock_bh(idev->lock) pull aca off ac_list write_unlock_bh(idev->lock) ipv6_del_acaddr_hash(aca) hlist_del_init_rcu() is a no-op, aca is not in the hash yet aca_put() refcnt 2->1 ipv6_add_acaddr_hash(aca) aca now inserted into the hash aca_put() refcnt 1->0 call_rcu(aca_free_rcu) -> kfree(aca) The hash removal becomes a no-op because the insertion has not happened yet, so once CPU0 inserts and drops the last reference, the aca is freed while still linked in inet6_acaddr_lst[], and readers dereference freed memory after the slab slot is reused. This window opened once RTNL stopped serializing the join path against device teardown. Move ipv6_add_acaddr_hash() inside the idev->lock section so the ac_list and hash insertions are atomic with respect to teardown: a racing remover now either misses the aca entirely or finds it in both lists. acaddr_hash_lock is now nested under idev->lock, which is acquired in softirq context, so switch all acaddr_hash_lock sites to spin_lock_bh() to avoid the irq lock inversion reported in [2]. [1] https://syzkaller.appspot.com/bug?extid=a01df04303c131efbf3a [2] https://lore.kernel.org/netdev/6a194ef7.ba3b1513.1890b4.0000.GAE@google.com/ The Linux kernel CVE team has assigned CVE-2026-53259 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit eb1ac9ff6c4a5720b1a1476233be374c5dc44bff and fixed in 6.18.36 with commit 15be7e9fdbff831fb3e89b83cc337a4f85ad3310 Issue introduced in 6.17 with commit eb1ac9ff6c4a5720b1a1476233be374c5dc44bff and fixed in 7.0.13 with commit 3a967c498baa976b11d4800dda224c507416e97c Issue introduced in 6.17 with commit eb1ac9ff6c4a5720b1a1476233be374c5dc44bff and fixed in 7.1 with commit f723ccaff2fb72b71ae8a9fd283f0dee4d9ae7a3 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-53259 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/ipv6/anycast.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/15be7e9fdbff831fb3e89b83cc337a4f85ad3310 https://git.kernel.org/stable/c/3a967c498baa976b11d4800dda224c507416e97c https://git.kernel.org/stable/c/f723ccaff2fb72b71ae8a9fd283f0dee4d9ae7a3