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 E090C36A369 for ; Sat, 15 Aug 2026 06:21:01 +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=1786774863; cv=none; b=LI0YPlRmzvGH+pI0TQ79riiIU5MOVCDu4eP9HEH/Jo8+bGtjP7FEEDo91HP0gc6HRlZ9B2li70Krb8/TPu5ufXVUafMYNkf4VAeeoSfRAAsSSAxdy2KkzbbBruWYQYfr6OXQRMz+qXGeltYIsvqZdQqMVaUFO968MMXaJK20LyE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774863; c=relaxed/simple; bh=0FYB5bk6cXgItxG0CGyjRKTn1HhZb46hZs6Wj/L18jk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=F2TiD0We12UhbRBwBveaghqivNdEqYGnRjJJ/s1z+LrjTAb92dt1nNL3FreEYMVcHVHS7bGivTLsgSaMKcu4Rsz1mzDxfTKiE3avsjombrIbz8MEXSwKaJ8SejrzmF6Sc0sQulvYiowi3C5wqju7QpgXMcAzIuioKhKBxH3kBiE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=A7e1cWrw; 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="A7e1cWrw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CADA01F000E9; Sat, 15 Aug 2026 06:21:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774861; bh=ObcIZqreosLtK4CWfRG1d6gj8BuJR839AjDM+qoLgbY=; h=From:To:Cc:Subject:Date:Reply-To; b=A7e1cWrwq7sJjS+G2EjBq4Lj/ZFMvd+/qH57BLtxYUnrzWgiPrRCpHFuMxToRrxXh wFVSfjyd7dmYEr4gM4wws/bhFI6P4MIuEGSVNgJHOSDv+q0/uTHRgqTWooHLxpiwlQ O8Wyx0MVJ0+Uwk+xbifAcLgxvuSg87dyeIlN6IPg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72257: ASoC: qcom: q6apm: fix NULL pointer dereference in graph_callback Date: Sat, 15 Aug 2026 15:05:36 +0900 Message-ID: <2026081554-CVE-2026-72257-6572@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=3450; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=d2B/8wxnMBPUmHPxwUuIBA+xQ6WJaSTS4biBuHeADdU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDJc+TPo9a8IuX+ndvn4MjyWa/sRONC7Kvbvuh6jaP n7BNb8zO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiEmkMC/rb5aSFde/E/PU7 yHA7PfFZ7DkOBYYF02vOKG5JbTrEr3lm+0P95V0ss7dFAAA= 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: ASoC: qcom: q6apm: fix NULL pointer dereference in graph_callback When q6apm_free_fragments() is called it frees rx_data.buf/tx_data.buf and sets them to NULL under graph->lock. A late DSP buffer-done response can race with this: graph_callback() passes the !graph->ar_graph guard (not yet NULL), acquires the lock, but then dereferences a now-NULL buf pointer to read buf[token].phys, crashing at virtual address 0x10. Add a NULL check for buf inside the mutex-protected section in both the write-done (DATA_CMD_RSP_WR_SH_MEM_EP_DATA_BUFFER_DONE_V2) and read-done (DATA_CMD_RSP_RD_SH_MEM_EP_DATA_BUFFER_V2) handlers and bail out cleanly if buffers have already been freed. This problem is only shown up recently while apr bus was updated to process the commands per service rather from single global queue. The Linux kernel CVE team has assigned CVE-2026-72257 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit 5477518b8a0e8a45239646acd80c9bafc4401522 and fixed in 6.1.178 with commit a164e744d8de1c41049bd9a1452a4b6bbf5bd8bc Issue introduced in 5.16 with commit 5477518b8a0e8a45239646acd80c9bafc4401522 and fixed in 6.6.145 with commit ec369eac0795cfa8f4d3a0cd35a1e8e15f780331 Issue introduced in 5.16 with commit 5477518b8a0e8a45239646acd80c9bafc4401522 and fixed in 6.12.97 with commit 2c715f8a1e644ce4c3e8be5b0fd3f1f4704b73b3 Issue introduced in 5.16 with commit 5477518b8a0e8a45239646acd80c9bafc4401522 and fixed in 6.18.40 with commit ca028334343a140efda4b22e53cbce2c5e94a489 Issue introduced in 5.16 with commit 5477518b8a0e8a45239646acd80c9bafc4401522 and fixed in 7.1.5 with commit 214af790e3a33ab73587de4c925c60a550eae9c6 Issue introduced in 5.16 with commit 5477518b8a0e8a45239646acd80c9bafc4401522 and fixed in 7.2-rc1 with commit 2e9261761b35f0b67b7487688cd1365f535be0b3 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-72257 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: sound/soc/qcom/qdsp6/q6apm.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/a164e744d8de1c41049bd9a1452a4b6bbf5bd8bc https://git.kernel.org/stable/c/ec369eac0795cfa8f4d3a0cd35a1e8e15f780331 https://git.kernel.org/stable/c/2c715f8a1e644ce4c3e8be5b0fd3f1f4704b73b3 https://git.kernel.org/stable/c/ca028334343a140efda4b22e53cbce2c5e94a489 https://git.kernel.org/stable/c/214af790e3a33ab73587de4c925c60a550eae9c6 https://git.kernel.org/stable/c/2e9261761b35f0b67b7487688cd1365f535be0b3