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 A95CE299952 for ; Thu, 3 Jul 2025 07:44:45 +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=1751528685; cv=none; b=GXRpzEHEPsSUH4V4tiGSGhWhVwFo2xlNws0QyRoytNGHNeM2EUl4yngJ9yhoRCXiSeBLgtfq9gTemYuCUFrvRIJqmR+Y93xKPNGAIYYDtxECqVywdE+pIzStHHkXlGLAUu3PaEuXwiVcCOJeOV/OAWcjE0tXLTCYAKVQ8vQ4ptY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751528685; c=relaxed/simple; bh=ATz5n6X6MW4bpjERgNAVTWhStMwWqC4OHyqhZroaO5Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LFrq4HGIQXtUC4a3B5G6Gq0O+kkUF+Jpx6JqY0Pn7B4O2G7tzoS3nzxY27dnuxSOri7CWhUdONTJn9CPynaHn+0lzoJQ6eSBUBi/ilhQmrD48fZk7VBWBDXoxaI2ZJiX/NKfQkUzSGK9qrCdZv/Do2dYULxjNx9OxDHuF9TQMNI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ATZpi6EE; 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="ATZpi6EE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B09EC4CEE3; Thu, 3 Jul 2025 07:44:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751528685; bh=ATz5n6X6MW4bpjERgNAVTWhStMwWqC4OHyqhZroaO5Y=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ATZpi6EECdV6LeogkQ+Cz7cv8GQwk89theMs3U6IOjsEHi0Wir3p/sRVZT+hi/755 tIPgjeVbown4YvD9bzI/GlYolRroJ3Xl7nd2zwQbbJWnwSf8oT4MTjYrQPzqaW0E7r skubtc3nuoqBD7MbSFjZQpr+r6s/pnTUHcD6pCnU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38095: dma-buf: insert memory barrier before updating num_fences Date: Thu, 3 Jul 2025 09:44:26 +0200 Message-ID: <2025070340-CVE-2025-38095-6596@gregkh> X-Mailer: git-send-email 2.50.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2646; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=t66ztzUdFFJGwotZG2A8qJoin+YMm8bZCNSKAn0BOOo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlpJi8KTlya+1tXd/GdxOsXz2/29XhQNuNhjOBPQWaN+ ucaFqc2dcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEss8zzGadpvB1g8bRK8df Tbba6zUptub+XiOGeXq2KpXfw1dOs2z+3L3g6cHsP58ZpQA= 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: dma-buf: insert memory barrier before updating num_fences smp_store_mb() inserts memory barrier after storing operation. It is different with what the comment is originally aiming so Null pointer dereference can be happened if memory update is reordered. The Linux kernel CVE team has assigned CVE-2025-38095 to this issue. Affected and fixed versions =========================== Issue introduced in 5.0 with commit a590d0fdbaa56f482ff515e1040b6d9b1b200d63 and fixed in 6.1.140 with commit 3becc659f9cb76b481ad1fb71f54d5c8d6332d3f Issue introduced in 5.0 with commit a590d0fdbaa56f482ff515e1040b6d9b1b200d63 and fixed in 6.6.92 with commit c9d2b9a80d06a58f37e0dc8c827075639b443927 Issue introduced in 5.0 with commit a590d0fdbaa56f482ff515e1040b6d9b1b200d63 and fixed in 6.12.30 with commit fe1bebd0edb22e3536cbc920ec713331d1367ad4 Issue introduced in 5.0 with commit a590d0fdbaa56f482ff515e1040b6d9b1b200d63 and fixed in 6.14.8 with commit 08680c4dadc6e736c75bc2409d833f03f9003c51 Issue introduced in 5.0 with commit a590d0fdbaa56f482ff515e1040b6d9b1b200d63 and fixed in 6.15 with commit 72c7d62583ebce7baeb61acce6057c361f73be4a 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-2025-38095 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/dma-buf/dma-resv.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/3becc659f9cb76b481ad1fb71f54d5c8d6332d3f https://git.kernel.org/stable/c/c9d2b9a80d06a58f37e0dc8c827075639b443927 https://git.kernel.org/stable/c/fe1bebd0edb22e3536cbc920ec713331d1367ad4 https://git.kernel.org/stable/c/08680c4dadc6e736c75bc2409d833f03f9003c51 https://git.kernel.org/stable/c/72c7d62583ebce7baeb61acce6057c361f73be4a