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 E46133B1013 for ; Thu, 28 May 2026 09:44:02 +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=1779961444; cv=none; b=JPB9Jss/ISGQsLyQ7ICNvFKGYlOSiucjBkyMjysiiLvUBkInz0nec9GNter73eoRDQUV0fWfcy/1Zn+6U4BkBT0W5i8Vd0MKHQHJvIUlzgrSUDT6vAonUFklPA5WGztjMSrAuvaOtF49H7Pg6mZTGgro7cJ5NvuUxFNooXFE8Nw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961444; c=relaxed/simple; bh=2yLaWEiJbwRRfSEqoCQ9JAKyJKsro80HCgSL84fauTQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=knnqcf4Am3nC77L5itT7URclRjCSGgYJHqQSz13gpsEiwY69K162pjk1mmkdtGz8AKpSSIeMGXHqlvGfvlFSkZXTLJo7QINPIMgnAh1wTx6B+4kHVXxevaaVSdYSx+ARhpzJ+TY3wAh/f+QzOXHyltoRDENneEd9WtTMb3+OVI8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=O7UOJWNQ; 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="O7UOJWNQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43ABE1F000E9; Thu, 28 May 2026 09:44:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779961442; bh=+dWAMz7a9AQBPHYkurae/fJInuphRhaYl6jFq/vQQoc=; h=From:To:Cc:Subject:Date:Reply-To; b=O7UOJWNQGv1o9LpwkgpKruXNr0fIRvZhbCZDYUPEFn6SPRpXS1gO3q0W8fPgdaa3W DK3nSdWGrBa6FaK0I8UJlkx/K+HrV4E4rlQ7jeYG4Wy5mQx+HFfvlCWKyo2DBR7pOl h0GsIy8ylokl1lfumPP2cRa6QNKZ+4nl4TgQE3TE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46221: EDAC/versalnet: Fix device name memory leak Date: Thu, 28 May 2026 11:40:56 +0200 Message-ID: <2026052837-CVE-2026-46221-f13a@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=2341; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mb/787VDvZnDRxrY5DyWh/xN9jfL+A5vO4ylK+CIqbU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkSvFOnPJ/p75MSkGJq4Fx4ZsaBP29fsRz4fuqD04bpG Zb2Vstnd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEbE4yzBUsXBaWIepfq6I3 a5FlRONrP/vlcQwLrumyvzyhceXsf/8AiSVy0QW88bOrAQ== 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: EDAC/versalnet: Fix device name memory leak The device name allocated via kzalloc() in init_one_mc() is assigned to dev->init_name but never freed on the normal removal path. device_register() copies init_name and then sets dev->init_name to NULL, so the name pointer becomes unreachable from the device. Thus leaking memory. Use a stack-local char array instead of using kzalloc() for name. The Linux kernel CVE team has assigned CVE-2026-46221 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit d5fe2fec6c40dda03df8cc9b4a97de0b7e39f984 and fixed in 6.18.32 with commit 24d2912962d087ebff7c4984f8ac34a5f23c8dbf Issue introduced in 6.18 with commit d5fe2fec6c40dda03df8cc9b4a97de0b7e39f984 and fixed in 7.0.9 with commit b16033c8774f5fb4c0cb9b445a1dfc68f499ae6a Issue introduced in 6.18 with commit d5fe2fec6c40dda03df8cc9b4a97de0b7e39f984 and fixed in 7.1-rc3 with commit 8cf5dd235eff6008cb04c3d8064d2acfa90616f1 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-46221 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/edac/versalnet_edac.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/24d2912962d087ebff7c4984f8ac34a5f23c8dbf https://git.kernel.org/stable/c/b16033c8774f5fb4c0cb9b445a1dfc68f499ae6a https://git.kernel.org/stable/c/8cf5dd235eff6008cb04c3d8064d2acfa90616f1