From mboxrd@z Thu Jan 1 00:00:00 1970 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 6B75D313523 for ; Wed, 24 Jun 2026 16:34:35 +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=1782318876; cv=none; b=dPaKk+Ax/IyLomIEbx/oSjAi6A25/pMk9S/Gc+dQB0uaciqBwhlYerjhPNXNRl1drogzruNphVdblvCPZZ0ppJ4v6N5JrWOfpX05CXpNgxiZ79HtBQ7cLuw8cgD9ZFI0cczJHLimK/ySOF/1vLprqWNNgqe00JtyC+YTwoj5J4g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782318876; c=relaxed/simple; bh=71B1Ttr4vJ1Gf6gdjQJzk0J8qJ+qQL+TsJKxY6SemGE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=quzjYGWLBY6J3zuYzL5aRCdxoX8/RZKkt/gem7hkPk3pBys2dzyKYc1dmB0zK6knfnVG7alFZ9BbSEadYUaj3qM979hZ8pgQc4fBTTW7HiA38bOn2fAm+/gyz0Yzorgpik1maD86toPwmYeh9857IAZaB+lceBq15a1bIrrJwpc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OJ7p1fjk; 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="OJ7p1fjk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B6601F000E9; Wed, 24 Jun 2026 16:34:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782318875; bh=J8duaNYCyqOzHGG6bDyTispGaxohewnrdeBlcooUVlM=; h=From:To:Cc:Subject:Date:Reply-To; b=OJ7p1fjkC1ctvkrvdK96Z/Cq3KuYyiW9GjiF8abardmDPkSd5oJyUTRrLIEW4l3VC U2qbRpjzruz2hil8DMUpfLQaNKLLgLsWR4H40vNM5Ofe1xdVD5pwZORl27bGl1JfNc 3atlhfAB5K0H33xeNQIJogZG1SFsYMaBtaAAka3k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-52971: net: ena: PHC: Fix potential use-after-free in get_timestamp Date: Wed, 24 Jun 2026 17:29:55 +0100 Message-ID: <2026062439-CVE-2026-52971-0bf1@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=2635; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xjf2V0RhHZWoadIrqwdzVbeRQ+U5lXchbftfIjBQfWo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2rJ+/sj680lVqLGzZ1CmYFDuVx03rlPHFncWng797h cnP1b3aEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOZfZdhwQK1RY2bGgVr+UsL I03D+dyCJ2wsYphfwKlo/WfLkbVTw86L9m0OZ048J3wAAA== 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: net: ena: PHC: Fix potential use-after-free in get_timestamp Move the phc->active check and resp pointer assignment to after acquiring the spinlock. Previously, phc->active was checked without holding the lock, and resp was cached from ena_dev->phc.virt_addr before the lock was acquired. If ena_com_phc_destroy() runs between the lockless active check and the lock acquisition, it sets active=false, releases the lock, frees the DMA memory, and sets virt_addr=NULL. The get_timestamp path would then read a NULL virt_addr and dereference it. With both the active check and the pointer read under the lock, destroy cannot free the memory while get_timestamp is using it. The Linux kernel CVE team has assigned CVE-2026-52971 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit e0ea34158ee8c4f7536cd781010339ff28c0d24c and fixed in 6.18.33 with commit 95e8ae9af2a61b4e72f5c585bf4c7d8aaf2a2c98 Issue introduced in 6.17 with commit e0ea34158ee8c4f7536cd781010339ff28c0d24c and fixed in 7.0.10 with commit ca9ed40f28949353911dcb524ff8fff2f3409c97 Issue introduced in 6.17 with commit e0ea34158ee8c4f7536cd781010339ff28c0d24c and fixed in 7.1 with commit e42c755582f0960e684298762f0ab927b3778376 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-52971 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: drivers/net/ethernet/amazon/ena/ena_com.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/95e8ae9af2a61b4e72f5c585bf4c7d8aaf2a2c98 https://git.kernel.org/stable/c/ca9ed40f28949353911dcb524ff8fff2f3409c97 https://git.kernel.org/stable/c/e42c755582f0960e684298762f0ab927b3778376