From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 CF2EA3C8718 for ; Fri, 3 Apr 2026 15:25:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775229959; cv=none; b=qTrPHfcn10ggTLg0C+r38e73ieovDMTS8bG8GDuLDKcpYfIT8FAJse8+NbGrdVpkgR6lFU2hnhkSQq9rQ9qMB6PJr9qup21QcYwy2mFGmnLZatHiT/SRzeBN+dpBrweT69t7O8JByx6gqfYP+d6FsFnv+dTTjYJKDoPpGLg/z30= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775229959; c=relaxed/simple; bh=lDnkwnMm/iT8O6Qm+U4Y7zDCdH7OlcQj9DXChk1QMwY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=h8/aL/dCvxfUzxOQMrLqFtY60ZFuSiw4u2UWa29Uc7/QIiN81LuikXv2I6SVgQZoPuBHrqairjTPEAX26WG8/OZBfkG8w8JC6CYVIpNFfOT3ujiIsI9RHkDIYyvRe9ubVCg/PgFh4wpGbrKCW8Mp6/SuvwMpagP/OenK8q+Oz3Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jMfmM0kO; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="jMfmM0kO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E614C4CEF7; Fri, 3 Apr 2026 15:25:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775229959; bh=lDnkwnMm/iT8O6Qm+U4Y7zDCdH7OlcQj9DXChk1QMwY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=jMfmM0kO7F3IJPvZLA/bOldYtYCj8GjSMR5n2yPvT/hiiNxYGhw0sCN50OC38HsJ5 5N4nrbth33LxKLAzL+C0TawXrYqA2jYZW+8+6fmCMzFN4Sq/vk2tcqY0bjEmk7f4zh dsXoyRjsasOURd7GVLyNJrfocjYCAgfCh9p7DguY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23463: soc: fsl: qbman: fix race condition in qman_destroy_fq Date: Fri, 3 Apr 2026 17:18:44 +0200 Message-ID: <2026040320-CVE-2026-23463-e730@gregkh> X-Mailer: git-send-email 2.53.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=3826; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nNgYxDTfNdlGVD4c0iwkEAnWVzKTdNHOFBd0RL707Qk=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnnb9n056kv69xhue3I1qY1Gx45zXizInZ+21pmCTG5A IY9dVund8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBElvUwzM+M9BI8YiHc2CRp t2xt3rYlS5LeTmKYzXJp2pRnEn7/vAv5n9eVfLsd8pDzPQA= 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: soc: fsl: qbman: fix race condition in qman_destroy_fq When QMAN_FQ_FLAG_DYNAMIC_FQID is set, there's a race condition between fq_table[fq->idx] state and freeing/allocating from the pool and WARN_ON(fq_table[fq->idx]) in qman_create_fq() gets triggered. Indeed, we can have: Thread A Thread B qman_destroy_fq() qman_create_fq() qman_release_fqid() qman_shutdown_fq() gen_pool_free() -- At this point, the fqid is available again -- qman_alloc_fqid() -- so, we can get the just-freed fqid in thread B -- fq->fqid = fqid; fq->idx = fqid * 2; WARN_ON(fq_table[fq->idx]); fq_table[fq->idx] = fq; fq_table[fq->idx] = NULL; And adding some logs between qman_release_fqid() and fq_table[fq->idx] = NULL makes the WARN_ON() trigger a lot more. To prevent that, ensure that fq_table[fq->idx] is set to NULL before gen_pool_free() is called by using smp_wmb(). The Linux kernel CVE team has assigned CVE-2026-23463 to this issue. Affected and fixed versions =========================== Issue introduced in 4.9 with commit c535e923bb97a4b361e89a6383693482057f8b0c and fixed in 6.1.167 with commit 9e3d47904b8153c8c3ad2f9b66d5008aad677aa8 Issue introduced in 4.9 with commit c535e923bb97a4b361e89a6383693482057f8b0c and fixed in 6.6.130 with commit d21923a8059fa896bfef016f55dd769299335cb4 Issue introduced in 4.9 with commit c535e923bb97a4b361e89a6383693482057f8b0c and fixed in 6.12.78 with commit 751f60bd48edaf03f9d84ab09e5ce6705757d50f Issue introduced in 4.9 with commit c535e923bb97a4b361e89a6383693482057f8b0c and fixed in 6.18.20 with commit 85dbbf7dc88b0a54f2e334daedf6f3f31fd004fa Issue introduced in 4.9 with commit c535e923bb97a4b361e89a6383693482057f8b0c and fixed in 6.19.10 with commit 265e56714635c5dd1e5964bfd97fa6e73f62cde5 Issue introduced in 4.9 with commit c535e923bb97a4b361e89a6383693482057f8b0c and fixed in 7.0-rc5 with commit 014077044e874e270ec480515edbc1cadb976cf2 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-23463 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/soc/fsl/qbman/qman.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/9e3d47904b8153c8c3ad2f9b66d5008aad677aa8 https://git.kernel.org/stable/c/d21923a8059fa896bfef016f55dd769299335cb4 https://git.kernel.org/stable/c/751f60bd48edaf03f9d84ab09e5ce6705757d50f https://git.kernel.org/stable/c/85dbbf7dc88b0a54f2e334daedf6f3f31fd004fa https://git.kernel.org/stable/c/265e56714635c5dd1e5964bfd97fa6e73f62cde5 https://git.kernel.org/stable/c/014077044e874e270ec480515edbc1cadb976cf2