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 4494A31F986 for ; Wed, 24 Jun 2026 16:37:58 +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=1782319079; cv=none; b=IWFi2xla+YU2hM5pwALVCUf58AmIKKlrUh9N0WumdRAeJQU1fWStfSDV6Ntt/yKIlwNxbGzc2R/3TEPFRqGhrgq7/9n3DBWg9L95BRrWWDHeLC5KE/V1t+nb0qwXsN9nebDoFFLNTXWVOo+iZhgtxR308+zYzbgC3c6cdNvzRVw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782319079; c=relaxed/simple; bh=wMpxWWOFWMZh0O3B5kBnmEELcVZ72r3JSVAE2zTsLQU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=d478McBEpAgydaOTGikNggNogYdXDDLyDXpYjSFsKtK8lUWRrbSCJNqNYjIfMZp+phn/g9j/lPwiM5TaIVuEuzotYWjWn6fgKhlUG7njtJ19GByXvzAkGMMYfnvNFLBAjt4Cb3cX/97fbEd5f1mz5b1ROUI3fArwhS75TLQPCJ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BvkcoAf/; 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="BvkcoAf/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A9A71F000E9; Wed, 24 Jun 2026 16:37:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782319078; bh=6Shp10jRa2EYFlH0SsBFBC2TOyT/qcdjwhDp5fTAkQs=; h=From:To:Cc:Subject:Date:Reply-To; b=BvkcoAf/qPKXCYrcmou9mBPIMb47WbhmqLj9rylYZ+cX1kuB9wvmmtYHlwS106cT4 /YOkczGtp+JOzQzxG+7kTFY00vA6kgQSozuszRFSe9SUmk9cghVow4zWWZL7XXe+0/ KpWKi72APVDlIbpPyXZIjJor8jE3SgDbm7G/6xwM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53024: greybus: raw: fix use-after-free if write is called after disconnect Date: Wed, 24 Jun 2026 17:30:48 +0100 Message-ID: <2026062453-CVE-2026-53024-6347@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=3011; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=te9Nota1GHl6MQ7ERDtTr5oX7c0Ei8G+Yf/kHrxjYzk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2bIzulaw/npkcv73DPie6Qzzz+6ldy6YyztvxxWZdn wLDg8W7OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi9lsZ5lfH5MWzaVyJP/sq PbYp9ceUC+V/FjLMz1GY/Wtl9FHOvLffXiyaEN4qaG8gAQA= 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: greybus: raw: fix use-after-free if write is called after disconnect If a user writes to the chardev after disconnect has been called, the kernel panics with the following trace (with CONFIG_INIT_ON_FREE_DEFAULT_ON=y): BUG: kernel NULL pointer dereference, address: 0000000000000218 ... Call Trace: gb_operation_create_common+0x61/0x180 gb_operation_create_flags+0x28/0xa0 gb_operation_sync_timeout+0x6f/0x100 raw_write+0x7b/0xc7 [gb_raw] vfs_write+0xcf/0x420 ? task_mm_cid_work+0x136/0x220 ksys_write+0x63/0xe0 do_syscall_64+0xa4/0x290 entry_SYSCALL_64_after_hwframe+0x77/0x7f Disconnect calls gb_connection_destroy, which ends up freeing the connection object. When gb_operation_sync is called in the write file operations, its gets a freed connection as parameter and the kernel panics. The gb_connection_destroy cannot be moved out of the disconnect function, as the Greybus subsystem expect all connections belonging to a bundle to be destroyed when disconnect returns. To prevent this bug, use a rw lock to synchronize access between write and disconnect. This guarantees that the write function doesn't try to use a disconnected connection. The Linux kernel CVE team has assigned CVE-2026-53024 to this issue. Affected and fixed versions =========================== Issue introduced in 4.9 with commit e806c7fb8e9bae87fc23958c3789f2c2f96f54a4 and fixed in 7.0.10 with commit 48d6c32bc049abd114e8f0836c0e7d7cbfba7827 Issue introduced in 4.9 with commit e806c7fb8e9bae87fc23958c3789f2c2f96f54a4 and fixed in 7.1 with commit 84265cbd96b97058ef67e3f8be3933667a000835 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-53024 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/greybus/raw.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/48d6c32bc049abd114e8f0836c0e7d7cbfba7827 https://git.kernel.org/stable/c/84265cbd96b97058ef67e3f8be3933667a000835