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 6C57915A864 for ; Mon, 29 Jul 2024 14:34:02 +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=1722263642; cv=none; b=J7HG17TbwKIOfKbuEiX0nMMpuusHhIFOSj5ErRRhwCUBK9G3FPDzZxd/Pmo5JE1vy+NqPQRo4F+e7MVct01AmlbHRvqCNgWtOyHbLx/I1JHIA751QBs71NL80xNxs9JEtHY3Vs0jJuOxr4kooTrWIOHRe/yLICMU/W5O38F967I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722263642; c=relaxed/simple; bh=kA8vCef8VKqlI2N1NUTikFWs3Z8nsX9akoso6/em0Bw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=a6E9IJJIsFP5Mz9ARk5Ab5GUIdRyvz7w5G/LzqucwcUnvIWdMR8e/4/mJP5ksRwIF/SLAvcYS/pZeHS7TkUJ45wHcrctNFf3qK09vmNTJhfHtwtviNnp5gCpg/hrOLXe1gQg3ps+6zkuMv/HXhzlzlEnpKRs93z9mqg1Rs5SIas= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qxCGU6WV; 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="qxCGU6WV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D00BEC32786; Mon, 29 Jul 2024 14:34:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722263642; bh=kA8vCef8VKqlI2N1NUTikFWs3Z8nsX9akoso6/em0Bw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qxCGU6WVm/LeAue67ILGwR7kczT5Axh4fElgI9isfNWVNLHaNKi0+XDIReBuE9RhD kWAwlkFhrMav1uet08xOnyU0kZgmqh8oHXWY8TQFw4ysIVa+cK/7+RgtnX0GmkgEFZ 2UIzOfr6zVhyXOXDGcTP0qQQi28Al0Ir0cYI1J8o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-41029: nvmem: core: limit cell sysfs permissions to main attribute ones Date: Mon, 29 Jul 2024 16:32:24 +0200 Message-ID: <2024072921-CVE-2024-41029-18c6@gregkh> X-Mailer: git-send-email 2.45.2 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=1935; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kA8vCef8VKqlI2N1NUTikFWs3Z8nsX9akoso6/em0Bw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnLl381el81u33JZJ+We6XHXdS2z54yjcH/64+pFVHnu aOV19xk74hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJvG9kWHBVx70l5ur86we7 F95n+7Ay9erDj0sZFuxJUO/keCXSWXll3nt1qTANzX017wE= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: nvmem: core: limit cell sysfs permissions to main attribute ones The cell sysfs attribute should not provide more access to the nvmem data than the main attribute itself. For example if nvme_config::root_only was set, the cell attribute would still provide read access to everybody. Mask out permissions not available on the main attribute. The Linux kernel CVE team has assigned CVE-2024-41029 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 0331c611949f and fixed in 6.9.10 with commit aa066afaaac3 Issue introduced in 6.8 with commit 0331c611949f and fixed in 6.10 with commit 6bef98bafd82 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-2024-41029 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/nvmem/core.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/aa066afaaac32caf2160d58d4e3010ee04421c62 https://git.kernel.org/stable/c/6bef98bafd82903a8d461463f9594f19f1fd6a85