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 59C0313A87C for ; Fri, 13 Sep 2024 05:30:57 +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=1726205457; cv=none; b=SCSt2kmg0ruC4Z3+uLEwsM9OoCiFJEmhLrF3mJGBgdiDdvQ/6Pff6DkMAtfhqrxZU/2k66+IvgZjA6ZFsuFr/+aC6MKPrpUsUnfSgSZRLrw7VNHImnAKKE87yko/tEkZo7r4OJpJP9XaHEjTFe2OKToqgAC8oydGMCpz4q84Qlk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726205457; c=relaxed/simple; bh=Li/29MIIjX33TGAXA57wHDUd2AmVUhflwmnDFju38Og=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Y2gYvp/BVVBm4kkDv/h33Dwr0XtQO0C96csxmihqFFVFSnxNWhldG1CSRnuWr7u5ccqeT3VqP3b5wEM6Saex6bHiOZ5CedyQGC9qtsPPbHo3ZhXqKbblegW1tBV3x797DFGHeQpfI+rIS+pc3b0HRmSr22+KaV7zfn7K5tC1yqo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XMQQWZJy; 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="XMQQWZJy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83102C4CEC0; Fri, 13 Sep 2024 05:30:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726205456; bh=Li/29MIIjX33TGAXA57wHDUd2AmVUhflwmnDFju38Og=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XMQQWZJyKJ+zXO4d1JXS9b+5KiBbdrjJSkvhu1iiVututPJGTf1UDZ5mb+C5GrnEu eXZBt5pzNj/mBQjGYXFvxNHvWQjUPq2T7z9rXf7yRgPMb4kXr5o9UrfRWscnUnDqzl M2TJh/JVeSQNaTq4nNpuDlCmAZVywiJBOI8bgtQA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46684: binfmt_elf_fdpic: fix AUXV size calculation when ELF_HWCAP2 is defined Date: Fri, 13 Sep 2024 07:30:45 +0200 Message-ID: <2024091337-CVE-2024-46684-d492@gregkh> X-Mailer: git-send-email 2.46.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=2083; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Li/29MIIjX33TGAXA57wHDUd2AmVUhflwmnDFju38Og=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmPz/5T++c0b55cemOPdcPJPT+Nb2xqPmKx1JA94F94x 2WtyNoVHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR/iqG+bEyCVu1elWy2Z79 3l4r7fL6iwMHA8P8bMXi/1MPL1kzueTq3cA9QRufc7/ZAAA= 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: binfmt_elf_fdpic: fix AUXV size calculation when ELF_HWCAP2 is defined create_elf_fdpic_tables() does not correctly account the space for the AUX vector when an architecture has ELF_HWCAP2 defined. Prior to the commit 10e29251be0e ("binfmt_elf_fdpic: fix /proc//auxv") it resulted in the last entry of the AUX vector being set to zero, but with that change it results in a kernel BUG. Fix that by adding one to the number of AUXV entries (nitems) when ELF_HWCAP2 is defined. The Linux kernel CVE team has assigned CVE-2024-46684 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 10e29251be0e and fixed in 6.10.8 with commit c507da85e4f8 Issue introduced in 6.10 with commit 10e29251be0e and fixed in 6.11-rc6 with commit c6a09e342f8e 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-46684 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: fs/binfmt_elf_fdpic.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/c507da85e4f80c630deb9e98222ccf4118cbe6f8 https://git.kernel.org/stable/c/c6a09e342f8e6d3cac7f7c5c14085236aca284b9