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 D075F380FDD for ; Sat, 15 Aug 2026 06:30:53 +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=1786775455; cv=none; b=iEO2rPQ2sm/PdWOvsmmC3fyCIh4+2Trs6xXBkO/fDtAGSdzLhj6Kw4xN3K9bRVA/ArR/z5qDak6u7BanciZYSVTcGVHp9Fu39fg9zj3YhIK5u0bEd5uoUawf3B+Ax4jQo68IjFEEtCRyirKDU+wFF0n3fY/AlTDGnEAzCcXoDg0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775455; c=relaxed/simple; bh=TiL4MjnWjdk6IxZT7MWk9lIY73+lwWDgBbzkBooqhHI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=n8trkPRpP5dYrdlgwgHQDxFEyQ4VCPQ/CUT4r/xTsKmgM7qu2eIdxZqVNvCjZSB3l9I4W8K60PYD/LDEjpdyy07CgM5Zw3nCtCwDq2MK1BjWPQP9BY6LN1w6sUIWQsbSRY7w2FaGJD6SQr2sHAoVALcLC35haHqWZVhUsyMdiQg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=csGdlDrd; 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="csGdlDrd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 307AE1F000E9; Sat, 15 Aug 2026 06:30:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775453; bh=Ys21uG3e/q2tmoWimdQhUrAfU0YXsXdTrfmiCB/zSo4=; h=From:To:Cc:Subject:Date:Reply-To; b=csGdlDrd80bVMOn8WEov2Iq/ghsB9OCSKHwqa95dvvyrGo7H5w7CUZpBX+vdp6Lqa ydFPrm2qG3Dq2J5tw5Tly2VTp86HKM6woXLx+2ZswLNUuLTg+fJR9GztS2DsTnVqk2 sTc11RP9mA74cckXQ9lJzznVgnzDoddX/Digx6eU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72489: staging: nvec: fix use-after-free in nvec_rx_completed() Date: Sat, 15 Aug 2026 15:09:28 +0900 Message-ID: <2026081538-CVE-2026-72489-64a2@gregkh> X-Mailer: git-send-email 2.55.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=3803; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yQjYRz7wYimuyuDXyQG3tI4QfuCUR+MHRRaMIM+z4Kw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDP+2Jj123p0fIXaV6Wa2cOd89V88+4WmBnf6exrpy VkIHdXviGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIl8Z2GYn+P4Iu4c15MioX8/ OW5sbe/fLxOayLCg0ZihepJvy+y0Bfkn9+0WlvlncnsRAA== 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: staging: nvec: fix use-after-free in nvec_rx_completed() In nvec_rx_completed(), when an incomplete RX transfer is detected, nvec_msg_free() is called to return the message back to the pool by clearing its 'used' atomic flag. Immediately after this, the code accesses nvec->rx->data[0] to check the message type. Since nvec_msg_free() marks the pool slot as available via atomic_set(), any concurrent or subsequent call to nvec_msg_alloc() could claim that same slot and overwrite its data[] array. Reading nvec->rx->data[0] after freeing the message is therefore a use-after-free. Fix this by saving the message type byte before calling nvec_msg_free(), then using the saved value for the battery quirk check. The Linux kernel CVE team has assigned CVE-2026-72489 to this issue. Affected and fixed versions =========================== Issue introduced in 3.2 with commit d6bdcf2e1019351cbc176e963b7756766bdd8721 and fixed in 5.10.261 with commit 6b2ea886ebdae44a2394029844a4e78f58e1587d Issue introduced in 3.2 with commit d6bdcf2e1019351cbc176e963b7756766bdd8721 and fixed in 5.15.212 with commit a37625c7b688fcf68a54263528eccbabfd7fa17a Issue introduced in 3.2 with commit d6bdcf2e1019351cbc176e963b7756766bdd8721 and fixed in 6.1.178 with commit 9f7fe4165a1f1014bdadc8e744c0fd3c2d8c0b89 Issue introduced in 3.2 with commit d6bdcf2e1019351cbc176e963b7756766bdd8721 and fixed in 6.6.145 with commit 08626fcfe12308ca3f8b22c538ba7dee0b2dce7a Issue introduced in 3.2 with commit d6bdcf2e1019351cbc176e963b7756766bdd8721 and fixed in 6.12.97 with commit f19a5bc059051143c489dd6f79a0f9c3bfd13aea Issue introduced in 3.2 with commit d6bdcf2e1019351cbc176e963b7756766bdd8721 and fixed in 6.18.40 with commit bb3d592c7d6c4ec8ac6640c690ca13298e7e8e90 Issue introduced in 3.2 with commit d6bdcf2e1019351cbc176e963b7756766bdd8721 and fixed in 7.1.5 with commit 5de04caa46b635e180cecbd164e333eca535db94 Issue introduced in 3.2 with commit d6bdcf2e1019351cbc176e963b7756766bdd8721 and fixed in 7.2-rc1 with commit 26813881181deb3a32fbb59eadb2599cbe8423f6 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-72489 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/staging/nvec/nvec.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/6b2ea886ebdae44a2394029844a4e78f58e1587d https://git.kernel.org/stable/c/a37625c7b688fcf68a54263528eccbabfd7fa17a https://git.kernel.org/stable/c/9f7fe4165a1f1014bdadc8e744c0fd3c2d8c0b89 https://git.kernel.org/stable/c/08626fcfe12308ca3f8b22c538ba7dee0b2dce7a https://git.kernel.org/stable/c/f19a5bc059051143c489dd6f79a0f9c3bfd13aea https://git.kernel.org/stable/c/bb3d592c7d6c4ec8ac6640c690ca13298e7e8e90 https://git.kernel.org/stable/c/5de04caa46b635e180cecbd164e333eca535db94 https://git.kernel.org/stable/c/26813881181deb3a32fbb59eadb2599cbe8423f6