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 99C3043CEEA for ; Wed, 6 May 2026 11:36:25 +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=1778067385; cv=none; b=XtA0tfd1z+ZgbubuvRhdpRbeALtI6NnVWq+yIO+2tl/Wx2njzYNrRo5I3x7IJK3R+UdJ97ug+UWocDMaSqmAQmrPSuk+o76JgLS5/PBR2RIAeLSPxzu4kM4QDn9u8tG0GZT+IjTvSpzymbH7bFDmaMU+KMXOF2wEtqNFy+Xy5z0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067385; c=relaxed/simple; bh=q+E2GNBnNbV6rI9ZUufeYeNbaxp7XX0LGnmpClonNIs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eB71Zujrw4VYCLnSvJZcgroiOqO9L9+lQTY2V96IV/euuvRFhjAB7PcbXPhoZHmTl4QL6YKh5LLo518T7SWjQpZJHaDXTzrDJLf/0ympr5V8Wl4axv+WdqvyuhgK2uHUzBdLjIeW8+D1c2WF3Nb8qII5zWXcTc9kIb9JGBxngc8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=e3np7Zie; 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="e3np7Zie" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F9A8C2BCB8; Wed, 6 May 2026 11:36:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778067385; bh=q+E2GNBnNbV6rI9ZUufeYeNbaxp7XX0LGnmpClonNIs=; h=From:To:Cc:Subject:Date:Reply-To:From; b=e3np7Ziex9Kt5wFKTa0iJ/Z5cMP/XlzUWzSuQFJ87cD3W07h2eHoj1+UFQikDhLui CBpCZRB2LqceC2rr8XqWGQuHxkvEihewqiIlQ6hDhxfRP6ieRwzeCm7LHdK2GeCjUK nxrlFjmk025B8r2YzQsZkr0MG6vmc+yCZO/Zc/hM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71291: misc: bcm_vk: Fix possible null-pointer dereferences in bcm_vk_read() Date: Wed, 6 May 2026 13:32:36 +0200 Message-ID: <2026050632-CVE-2025-71291-0029@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=2792; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uo9TogXbHURz60UtogxYPDAVqQsSNb93oIka13JIZto=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/1S4ozLv62mDWS53ijw4PkjaxBMXesLj3Jm/VbfaKb rXvVntvd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEuPIZFpz6ZWfdabQskbf7 +fQ2sVM3Qov5dBgWdE44IXnukLMn53lmD5uKL5KT0pq3AQA= 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: misc: bcm_vk: Fix possible null-pointer dereferences in bcm_vk_read() In the function bcm_vk_read(), the pointer entry is checked, indicating that it can be NULL. If entry is NULL and rc is set to -EMSGSIZE, the following code may cause null-pointer dereferences: struct vk_msg_blk tmp_msg = entry->to_h_msg[0]; set_msg_id(&tmp_msg, entry->usr_msg_id); tmp_msg.size = entry->to_h_blks - 1; To prevent these possible null-pointer dereferences, copy to_h_msg, usr_msg_id, and to_h_blks from iter into temporary variables, and return these temporary variables to the application instead of accessing them through a potentially NULL entry. The Linux kernel CVE team has assigned CVE-2025-71291 to this issue. Affected and fixed versions =========================== Fixed in 6.1.165 with commit 741c5a3a0cd893a4218fc0fc8c18403e54fcfb22 Fixed in 6.6.128 with commit ece3722169ba93734bfd1f06255e8ab7f19fe964 Fixed in 6.12.75 with commit aa97ccc3dc1eba9f4537f0410e9dbb0b05ccf2fb Fixed in 6.18.16 with commit 3842f93e6e29d5cc1dcb9e5bda70587b444bed69 Fixed in 6.19.6 with commit 20f2d9dbe5e972516f8f9948d7ae5b95d1ad77bd Fixed in 7.0 with commit ba75ecb97d3f4e95d59002c13afb6519205be6cb 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-71291 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/misc/bcm-vk/bcm_vk_msg.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/741c5a3a0cd893a4218fc0fc8c18403e54fcfb22 https://git.kernel.org/stable/c/ece3722169ba93734bfd1f06255e8ab7f19fe964 https://git.kernel.org/stable/c/aa97ccc3dc1eba9f4537f0410e9dbb0b05ccf2fb https://git.kernel.org/stable/c/3842f93e6e29d5cc1dcb9e5bda70587b444bed69 https://git.kernel.org/stable/c/20f2d9dbe5e972516f8f9948d7ae5b95d1ad77bd https://git.kernel.org/stable/c/ba75ecb97d3f4e95d59002c13afb6519205be6cb